search for: hour1

Displaying 4 results from an estimated 4 matches for "hour1".

Did you mean: hours
2012 Jan 19
1
converting a for loop into a foreach loop
...1 1 1 1 1 ... $ hour : int 0 0 0 0 0 0 0 0 0 0 ... $ sex : Factor w/ 4 levels "","F","M","U": 3 4 3 4 4 3 4 3 2 4 ... $ sex.code : int 1 3 1 3 3 1 3 1 2 3 ... $ day : int 39997 39997 39997 39997 39997 39997 39997 39997 39997 39997 ... $ hour1 : int 24 24 24 24 24 24 24 24 24 24 ... $ X1 : num 1765688 1765492 1765492 1765637 1765383 ... $ Y1 : num -3834667 -3834964 -3834964 -3834786 -3834990 ... for (i in 1:15) { x = data[data$ID == i, 1:10] for (j in 1:length(x$day)) { y = x[x$day == j, 1:10] for (k in...
2008 Jul 31
2
S 3 generic method consistency warning please help
I would like to include this in a package. The S3 methods on R CMD check says * checking S3 generic/method consistency ... WARNING window: function(x, ...) window.chron: function(data, day1, hour1, day2, hour2, ...) See section 'Generic functions and methods' of the 'Writing R Extensions' manual. I have looked and can not figure it out. This function is for convience. What can I do to fix this? This is the first time I have tried this, so be easy, and explain it to to me...
2013 Jan 17
1
plotting from dataframes
...am closer to solving my problem but I have some small problem. So let's say I start with >data number day hour 1 17 10 2 17 11 3 17 6 4 18 4 5 18 10 6 19 8 7 19 8 I want to split to odd days, which I am able to do, I call this object frames, which looks like: > frames $`1` c1 day1 hour1 1 1 17 10 2 2 17 11 3 3 17 6 $`2` c1 day1 hour1 4 6 19 8 5 7 19 8 Now I want to make plot of the hours of both days, but not by hand. I need some sort of loop for this. How is this done? So par(mfrow=c(1,2)) for(?) plot(?hours?) thanks for the help -- View...
2010 Apr 21
2
Table to List Transformation Scenario
I have a series of tables, one for each environment indicating a date (row) and a sample at each hour of the day (0 to 23) Test1 Table: Date,Hour1,Hour2,...Hour23 1/1/10,123,123,...,123 I would like to model this as a time series but how can I translate the table into a list such that I can get: 1/1/10 00:00, 123 1/1/10 01:00, 123 1/1/10 02:00, 123 ... 1/1/10 23:00, 123 Any suggestions on how to get that kind of translation done in R? Idg...