Hi Steve,
You can use write.table:
write.table(x, file="/Users/Desktop/Data.txt",
sep="",row.names=F,col.names=F)
Cheers,
Julian
Stropharia wrote:
Dear R users,
I've had no joy finding a solution to this online or in any of my R books.
Many thanks in advance for any help you can give.
I
Steve,
I think you can use:
write.table(x, file = "/Users/Desktop/Data.txt", sep = "", append=T,
row.names = F, col.names = F)
I used that for the data
PERSHRUB DISTX AGE RODENTSP
166 2100 501
290 914 201
375 1676 341
475 24
try:
write.table(x, file="/Users/Desktop/Data.txt", row.names= FALSE, col.names=
FALSE, sep="", append=TRUE)
this should do it. If you don't want to append, just turn that opion off.
Stropharia wrote:
>
> Dear R users,
>
> I've had no joy finding a solution to this online or in any of my R
Dear R users,
I've had no joy finding a solution to this online or in any of my R books.
Many thanks in advance for any help you can give.
I'm seeking to output a data frame (or matrix - it doesn't matter which for
my purposes) to a .txt file, but omit any row or column names. The data
frame tha
4 matches
Mail list logo