search for: currentcsvfil

Displaying 1 result from an estimated 1 matches for "currentcsvfil".

Did you mean: currentcsvfile
2012 May 14
2
Error in names(x) <- value: 'names' attribute must be the same length as the vector
...c in csvfiles) { #A DF (prevdf) was created based on an initial csv file.. #so the condition below states that if there are rows with NAs or the number of rows in prevdf is zero if( (apply(prevdf, 1, function(y) !sum(!is.na(y))==1) > 0) || (nrow(prevdf) == 0) ) { #Open a new file currentCSVFile <- read.csv(c, header=TRUE) #pick only the few columns we want from the file currentCSVFile <- data.frame(currentCSVFile$Item, currentCSVFile$Color..type , currentCSVFile$Number..owned, currentCSVFile$Size..shirt) #rename the column names colnames(currentCSVFile) <- c(&quo...