Displaying 1 result from an estimated 1 matches for "tp4276821p4280750".
2012 Jan 08
3
Conditional Loop For Data Frame Columns
Hi,
I am trying to create a script that will evaluate each column of a data
frame, regardless of # columns, using some function and sorting the results
by an index vector:
#upload data (112 rows x 73 columns)
SD <- read.csv("/Users/johnjacob/Desktop/StudentsData_RInput.csv",
header=TRUE)
#assign index vector
ID <- SD[ ,2]
#write indexed mean function
meanfun <- function(x) {