Re: [R] Question about expand.grid function in R

2012-05-01 Thread peter dalgaard
On May 1, 2012, at 15:36 , R. Michael Weylandt wrote: > I don't think you can do it within expand.grid() but something like > this might work: > > rownames(x) <- apply(x, 1, paste, collapse = "") > Also rownames(x) <- do.call(paste, c(x, sep="")) or, in recent versions, rownames(x) <- do.ca

Re: [R] Question about expand.grid function in R

2012-05-01 Thread R. Michael Weylandt
I don't think you can do it within expand.grid() but something like this might work: rownames(x) <- apply(x, 1, paste, collapse = "") Michael On Tue, May 1, 2012 at 5:05 AM, Kelly Cool wrote: > Hi, > > I am extremely new to R, and was wondering if someone would be able to help > me with a ques