search for: 1_504_d0

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

2008 Apr 08
1
Combining many csv files into one and adding a column with an id of each csv file read
...; basically, it reads the csv file, then deletes the first 3 rows and some columns that we don't need and finally I add another column that identifies all the rows of the csv file as belonging to one subject only, I have to do this for further manipulations with all the data: filename<-'1_504_d0.csv' dat<-read.csv(filename, header=F) dat<-dat[c(-1:-3),c(-1,-4,-5,-6,-7,-9,-10,-11,-12)] names(dat)<-c('time','T1','T2') dat<-dat[,1:3] dat$id<-as.character(filename) Since I have multiple csv files to read and I need to have them consolidated in on...