dataMatrix <- data.frame(matrix(rnorm(1000),ncol=5))
colnames(dataMatrix) <- c("u1","u2","y1","y2","y3")
tmpfile <- file.path(tempdir(),"test.csv")
write.csv(dataMatrix,file=tmpfile,row.names=FALSE)
data <- read.table.idframe(tmpfile,ninputs=2,unit="minutes")
Run the code above in your browser using DataLab