Marco Bianchi
2004-Sep-14 13:08 UTC
[R] overwriting a line in existing .csv file with new data
Dear R-users, I have a data matrix with 20 rows and 10 columns which is stored in the hard drive as .csv file called c:\DataFile.csv and a 10 elements vector called xVec. I would like to be able to copy and paste the information contained in xVec into (say) the 2nd row of DataFile.csv Obviously, one way of doing this would be to read the matrix using read.csv() command, implement the copy and paste manipulation and save the new matrix again using write.table(). However, has anyone used an alternative method which does not require use of the read.csv() command? Regards Marco Bianchi ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The\ s...{{dropped}}