Description Usage Arguments Value Author(s) Examples
View source: R/subjectDataToGroupDataFrame.R
SubjectDataToGroupDataFrames take a list of subject-level csv files of the same type and converts them to a data frame with consistent column naming for the values and where rows correspond to subjects.
1 | subjectDataToGroupDataFrame(csvlist, usecol, mycolname = NA, datarownames = NA)
|
csvlist |
input list of csv files eg by Sys.glob ... |
usecol |
a column name or number e.g. 1 or 'Volume' |
mycolname |
rename the column by this string (optional) |
datarownames |
the desired now names (optional) |
data frame is output
Avants BB
1 2 3 4 5 6 7 8 | ## Not run:
# data(aal,package="ANTsR")
# csvlist<-Sys.glob("*md*csv")
# mypopulationdataframe<-subjectDataToGroupDataFrame( csvlist , "Mean" ,
# datarownames=aal$label_name )
# should have each ROI value for each subject listed in a large data frame
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.