I have a series of functions in MATLAB that need to be converted into R. Unfortunately I do not know R all that well.
A major hurdle is loading csv 100 files that are each 50x86069 into a 100, 50, 86069 array.
I have the code set up to open/write an array, and then read each 50x86069 csv file as part of a loop.
l <- list.files(inputs)
data.array<-array(0,dim=c(100,50,86069))
# loop through the input files to get the data loaded into an array
for(i in 1:5)
in.file <- read.csv(paste(inputs,"/",l[[i]], sep = ""))
in.file = in.file[,-1] ## remove the first column
Now I need to put in.file into data.array(i,50,86069).
Any help would be greatly appreciated!
Thanks-