Re: [R-sig-eco] How to remove space among columns

2013-03-27 Thread Manuel Spínola
Thank you very much to all that answered my question, some one of you asked me to be more specific, here is my question again: I hava a data frame: col1 col2 col3 col4 col5 col6 01 1 0 ac 10 0 0 ad 01 1 1 bd I want to

Re: [R-sig-eco] How to remove space among columns

2013-03-27 Thread Yu-Chun Kao
Hi Manuel, You can use the function paste paste(col1,col2.col3,col4, sep = ) in a new data frame. data.frame( col1 = paste(col1,col2.col3,col4, sep = ), col2 = col5, col3 = col6) I think it will work Yu-Chun 2013/3/27 Manuel Spínola mspinol...@gmail.com: Thank you very much to all that

Re: [R-sig-eco] How to remove space among columns

2013-03-27 Thread Roman Luštrik
Manuel, you've been provided by a few alternatives. Here's mine. x - read.table(text =col1 col2 col3 col4 col5 col6 01 1 0 ac 10 0 0 ad 01 1 1 bd, header = TRUE) x$newx - apply(x[, 1:4], 1, paste, collapse = ) x

Re: [R-sig-eco] How to remove space among columns

2013-03-27 Thread Bret Collier
l=data.frame(col1=c(0,1,0), col2=c(1,0,1), col3=c(1, 0, 1), col4=c(0, 0, 1), col5=c(a, a, b), col6=c(c, d, d)) ll=paste(l$col1, l$col2, l$col3, l$col4, sep=) data.frame(ll, a=l$col5, b=l$col6) see ?paste bret On 3/27/2013 8:15 AM, Manuel Spínola wrote: Thank you very much to all that

Re: [R-sig-eco] Adonis and Random Effects

2013-03-27 Thread Erin Nuccio
Hi Steve, You mentioned that nested.npmanova won't test GrasslandPlot correctly for a split-plot design. However, does adonis test GrasslandPlot correctly, since it's using the split-plot error term to test all effects? Here are the formulas again. adonis(community_dist ~