Re: [R] combine words and dataframe

2009-04-09 Thread Dieter Menne
Ravi S. Shankar ambaresearch.com> writes: > I am trying to get an output like this > Hi > Hello > 1 a b # The easy way: good for logging of results, but commands print too, # depending how you run it df = data.frame(a=rep("a",3),b=rep("b",3)) sink(file="a.txt") cat("Hello\n")

[R] combine words and dataframe

2009-04-08 Thread Ravi S. Shankar
Hi R, I am trying to get an output like this Hi Hello 1 a b 2 a b 3 a b 4 a b 5 a b And write it as a text file cat(paste("Hi",sep='\n',"Hello")) gives me Hi Hello And whe