[R] Order function
John Kane
jrkrideau at inbox.com
Wed Nov 28 14:46:04 CET 2012
Are you asking how to create a variable in each data set so that data set 1 has the idenfier 1 and so on?
It's not clear from what you say if you have 20 different data sets (say data frame or file for each ) or if you have one file with the data.
As a brute force approach in either case I'd just create a vector of appropriate length and cbind it to the data frame or whatever.
John Kane
Kingston ON Canada
> -----Original Message-----
> From: linda_007 at hotmail.co.uk
> Sent: Tue, 27 Nov 2012 12:47:15 -0800 (PST)
> To: r-help at r-project.org
> Subject: [R] Order function
>
> I have a set of data with 2 columns: time, size.
> There are 20 sets of data. The data is looking at whether the size of a
> seed
> affects the time it takes to germinate.
>
> How do I then create a numerical variable called 'order' with values 1 to
> 20
> in order to plot a graph or order against time?
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Order-function-tp4651022.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
More information about the R-help
mailing list