diff --git a/Exercise09code.R b/Exercise09code.R new file mode 100644 index 0000000..e471f4f --- /dev/null +++ b/Exercise09code.R @@ -0,0 +1,33 @@ +# Usage: (directory_path, specified_column) +coeffOfVar <- function(dir,colName){ + fileList <- list.files(path = dir) + vectorOutput <- c() + for(i in fileList){ + data <- read.table(i,header=TRUE,sep=",",stringsAsFactors=FALSE) + rows <- length(data$colName) + minRow <- 50 + if(rows