Displaying 1 result from an estimated 1 matches for "june03".
Did you mean:
june01
2009 Jun 12
2
Automate a data load and merge
...) # preallocate an index of all items in datasets
for(i in 1:length(files)){
X<-read.csv(files[i])
item<-union(item, X$Item_Name)
assign(labels[i], X)
}
# What is loaded
ls()
# [1] "files" "i" "item" "June01" "June02" "June03"
"labels"
# What does everything look like?
str(June03)
#'data.frame': 992 obs. of 8 variables:
# $ Item_Name : Factor w/ 992 levels "Birds","Fish",..: 1 2 3 4
5 6 7 8 9 10 ...
# $ Occurance : int 30 30 50 450 75 550 100 500 250 75 ......