Skip to content
Prev 10854 / 398502 Next

Reading and writing data

On Tue, 24 Apr 2001, Dermot MacSweeney wrote:

            
See ?write.table, especially the row.names argument (and set it to false).
Well, you could fake this by duplicating `what' and ignoring the extra
cols. But, indexing is far easier.

df <- read.table(...)
df <- df[seq(1, length=nrow(df), by=2), ]