write table in R -


i'm trying data r.
when type: write.table(c, "~/xxx/xxx.txt", sep="\t"). this:

"x" "1" 3011.5648786606 "2" 15654.1820393584 "3" 12368.7319176159 "4" 3055.2054987339 "5" 4590.9390484852 "6" 15472.0519755823 "7" 22142.4386253643 "8" 43684.1996516822 "9" 20931.0908837875 "10" 15165.4255765957 "11" 21790.7749747969 "12" 42362.7562956186 ............................. 

how rid of "x", "1", "2",...?
thanks!

some of arguments in write.table default true. change false , should work

write.table(c, "~/xxx/xxx.txt", sep="\t", quote=false,                            row.names=false, col.names=false) 

note: c function. so, better give object names not functions.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -