Re: [R] List creation based on matrix

2012-09-24 Thread benrgillespie
V2 4 5 b V2 5 6 c V2 6 Gives probably what you want Petr > -Original Message- > From: Benjamin Gillespie [mailto:[hidden > email]] > Sent: Monday, September 24, 2012 2:53 PM > To: PIKAL Petr; [hidden email] > Subject: RE: [R] List cr

Re: [R] List creation based on matrix

2012-09-24 Thread Benjamin Gillespie
15:35 To: Benjamin Gillespie; arun Cc: R help Subject: Re: [R] List creation based on matrix If you don't have paste0() then you should upgrade to the current version of R. --- Jeff Newmiller

Re: [R] List creation based on matrix

2012-09-24 Thread arun
   1 #2 1   3 #3 1   5 #4 2   1 #5 2   3 #6 2   4 #7 2   6 #8 3   2 #9 4   4 #10    4   5 A.K. - Original Message - From: Benjamin Gillespie To: PIKAL Petr ; "r-help@r-project.org" Cc: Sent: Monday, September 2

Re: [R] List creation based on matrix

2012-09-24 Thread Rui Barradas
Hello, Like this your data example is unusable, how can we reproduce it? Please use dput() to post data. Example: # Make up some data. x <- data.frame(A = letters[1:5], X = 1:5) # Paste the output of this in a post dput(x) structure(list(A = structure(1:5, .Label = c("a", "b", "c", "d", "e"), c

Re: [R] List creation based on matrix

2012-09-24 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of benrgillespie > Sent: Monday, September 24, 2012 1:20 PM > To: r-help@r-project.org > Subject: [R] List creation based on matrix > > Hi guys, >

Re: [R] List creation based on matrix

2012-09-24 Thread Benjamin Gillespie
dat4 # Site Species #1 1 1 #2 1 3 #3 1 5 #4 2 1 #5 2 3 #6 2 4 #7 2 6 #8 3 2 #9 4 4 #104 5 A.K. - Original Message - From: Benjamin Gillespie To: PIKAL Petr ; "r-help@r-project.org&qu

Re: [R] List creation based on matrix

2012-09-24 Thread PIKAL Petr
.@leeds.ac.uk] > Sent: Monday, September 24, 2012 2:53 PM > To: PIKAL Petr; r-help@r-project.org > Subject: RE: [R] List creation based on matrix > > Please see the attached .csv files for further info, > > Thanks guys, > > Ben Gillespie > Research Postgraduate > &

[R] List creation based on matrix

2012-09-24 Thread benrgillespie
Hi guys, It would be great if you could help me with this one... I'm looking to create a script to convert a matrix of species abundance e.g: into two vectors e.g:

Re: [R] List creation based on matrix

2012-09-24 Thread Benjamin Gillespie
[petr.pi...@precheza.cz] Sent: 24 September 2012 13:39 To: Benjamin Gillespie; r-help@r-project.org Subject: RE: [R] List creation based on matrix Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of benrgillespie >