Re: [R] How to output text to sink from data frame line by line without column names

2010-06-13 Thread Joris Meys
col1<-c(2,45,67) col2<-c("a","B","C") col3<-c(234,44,566) mydf<-as.data.frame(cbind(col1,col2,col3),stringsAsFactors=F) n<-ncol(mydf) nr<-nrow(mydf) #sink("test.txt") cat("I will be including text of various sorts in this file so cannot use print table or similar command") for (i in 1:n){ cat(coln

Re: [R] How to output text to sink from data frame line by line without column names

2010-06-12 Thread Nevil Amos
OK I see how to remove the line numbers[1] etc by using cat instead of print, but cannot work out how to remove the column names from the data frame output On 13/06/2010 4:21 PM, Nevil Amos wrote: I want to output a text file assembeld from various soruces within r ( actually as a genepop file