Thanks for a patient reply...

I feel really stupid about this other problem dput(). What I didn't
understand is how I can make the same thing with my data. You use rnorm and
rpois which generates random poisson ditribution and normal distribution
purhaps just to create a data.frame? Should I just take some of my rows from
my dataframe?

I took five rows rows:

df <- skogTemp_1[5000:5004,]   
dput(df)   
(and before the end I for some reason got thousands of numbers I cant relate
to)
...     
 class = "factor")), .Names = c("DateHour", 
"TcuvInt.A", "TcuvInt.B", "TcuvInt.C"), reshapeWide = structure(list(
    v.names = NULL, timevar = "TreeID", idvar = "DateHour", times =
structure(2:4, .Label = c("", 
    "A", "B", "C"), class = "factor"), varying = structure(c("TcuvInt.A", 
    "TcuvInt.B", "TcuvInt.C"), .Dim = c(1L, 3L))), .Names = c("v.names", 
"timevar", "idvar", "times", "varying")), row.names = 5035:5039, class =
"data.frame")
                              

df <- data.frame(x = 1:4, y = rnorm(4), z = rpois(4, 3))  - how can I use
this on my dataframe?

/Angelica

--
View this message in context: 
http://r.789695.n4.nabble.com/order-a-data-frame-after-date-and-hour-tp3700721p3703269.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

Reply via email to