Thank you so much Marc,
that is exactly what I need. That will save me weeks of work and additionally I
learned a lot.
:-)
Have a great day!
Dagmar
Hi,
Given that your original data frame example is:
myframe <- data.frame (Timestamp=c("24.09.2012 09:00:00", "24.09.2012
10:00:00","25.09.2012
Hi,
Given that your original data frame example is:
myframe <- data.frame (Timestamp=c("24.09.2012 09:00:00", "24.09.2012
10:00:00","25.09.2012 09:00:00",
"25.09.2012 09:00:00","24.09.2012 09:00:00",
"24.09.2012 10:00:00"),
Event=c(50,60
Hi Marc,
Yes, you got it to the point! That is exactly what I want. But I do not know
how to do that. I know how to randomly pick the first day but I do not know how
to set a range of values which cover the 25 days starting from that random
value.
Best,
Dagmar
Hi,
I am confused.
As far as
Hi,
I am confused.
As far as I can tell, only the first day is selected randomly from your
dataset. The subsequent 24 days are deterministic, since they need to be
consecutive days from the first day, for a total of 25 consecutive days.
Thus, all you need to do is to randomly select 1 day fro
Hi Jim and everyone else,
Mhm, no this is not what I am looking for. I think in your way I would
randomly sample two values of day 1 and of day 2. But I want the
opposite: I want to randomly draw two successive (!) days and put those
values in a new dataframe to continue working with them.
In
5 matches
Mail list logo