Displaying 20 results from an estimated 8000 matches similar to: "Trouble converting hourly data into daily data"
1998 Sep 04
1
R-beta: more R for Windows (rjune)
I've just put up (12:00 noon NZ) yet another tmp.zip with the fixes
for Peter Dalgaards two bugs. Niels reports that the 3.51 problems
are now different but not solved. I'm trying to locate a 3.51 machine
and will post another fix.
Can I get some feedback on how people want these "patches" delivered?
Should I be numbering them and keeping the old patches? I don't
want to
2009 Aug 18
1
aggregating values at discreet irregular time intervals into hourly values
Hello R users,
I'm a newby to R (and programming software at large) and I would need some help to sum up event data at discreet time and irregular time interval into a hourly frequency.
Here is an example of my time series frame (irregular time-serie object - irts in the tseries package):
time value
2008-12-19 19:11:03 GMT 1
2008-12-19 19:12:00 GMT 0
2008-12-19
2010 Jul 15
2
taking daily means from hourly data
I have a data frame (morgan) of hourly river flow, river levels and wind direction and speed thus:
Time hour lev.morgan lev.lock2 lev.lock1 flow direction velocity
1 2009-07-06 15:00:00 15 3.266 3.274 3.240 1710.6 180.282 4.352
2 2009-07-06 16:00:00 16 3.268 3.272 3.240 1441.8 192.338 5.496
3 2009-07-06 17:00:00 17 3.268
2013 Mar 22
3
Double condition
Hi,
I would appreciate if somebody could help me with this small issue...
I have a dataframe like this (originaly has more than 100 000 rows):
> subz
jul time dtime fix ddawn ddusk day
101608 15006 2011-02-01 19:14:49 19.24694 noon 7.916667 19.88333 1
101609 15006 2011-02-01 19:24:49 19.41361 midnight 7.916667 19.56667 1
101610 15006 2011-02-01
2010 Mar 16
2
cron.hourly runs twice
For some reason I cannot fathom,
cron.hourly runs twice each hour
on one of my two CentOS-5.4 systems,
as reported in /var/log/cron:
-------------------------
Mar 16 14:01:01 helen crond[27833]: (root) CMD (run-parts /etc/cron.hourly)
Mar 16 14:01:01 helen crond[27834]: (root) CMD (run-parts /etc/cron.hourly)
-------------------------
On the other it just runs once, as expected.
2008 Sep 25
2
Equivalent of 'first.var' or 'last.var' from SAS in R?
Hi,
I want to sort a data frame by multiple columns and then take the
first record in each unique level of the "by" group I used to sort the
data frame. Does someone have an example of how to do this?
Thanks,
Matt
--
It is from the wellspring of our despair and the places that we are
broken that we come to repair the world.
-- Murray Waas
2007 Sep 16
1
Identifying objects from a data set
Hello
Given the following data for a data set called airquality. To identify the nature of the objects from the data set airquality example "Ozone" would it be best to use the command is. like is.character(airquality$Ozone) ....... I tried attributes(airquality$Ozone) but it came up null. Would there be a better way to identify these objects.
Thanking you in advance for your
2013 Mar 13
1
Determining maximum hourly slope per day
Hello,
I have a challenge!
I have a large dataset with three columns, "date","temp", "location".
"date" is in the format %m/%d/%y %H:%M, with a "temp" recorded every 10
minutes. These temperatures of surface temperatures and so fluctuate during
the day, heating up and then cooling down, so the data is a series of peaks
and troughs. I would like
2005 Dec 02
2
Seven month time-series sampled at hourly intervals
I have data from several sensors that recorded data at hourly intervals
during seven months. I want to separate daily variation from the trend,
and also be able to zoom in on only one month of data.
I have not been able what functions to use, I can not figure out from
the help for 'ts' how to use hourly data.
I guess this is routine-work for a lot of people so I hope someone can
2009 May 26
2
Problem accessing "row number" from subset on a dataframe
I would like to use the "row number" information returned from performing a subset command on a dataframe.
For example, I would like to automatically delete some rows from a dataframe if they match a criteria. Here is my example below.
data(airquality)
names(airquality)
subset(airquality, airquality$Month == 6)
Now how do I delete the row numbers returned automatically?
I
2009 Aug 04
5
Stacked plots with common x-axis and different y-axis
Is there a place that shows how to create two plots that are stacked on top of each other where they share a common x-axis scale, but have differnt y-axis scale?
Say have the following data: airquality
Stack plot(airquality$Day, airquality$Wind) on top of plot(airquality$Day, airquality$Temp).
I am interested in stacking the two on top of each other with no seam, or plotting the two lines with
2018 Jul 02
3
cron.daily and others, not running
Hello Pete,
On Mon, 02 Jul 2018 09:59:17 +0100 Pete Biggs <pete at biggs.org.uk> wrote:
> >
> > So, service is running but what could happen that makes /etc/cron.* not
> > being fired?
>
> You don't say, but if this is CentOS 7, then cron.daily/weekly/monthly
> is run using anacron, not cron.
Oops, yes CentOS 7, sorry.
For the record:
# service anacron
2008 Dec 23
3
Using transform to add a date column to a dataframe
I would like to add a column to the airquality dataset that contains the date
1950-01-01 in each row. This method does not appear to work:
> attach(airquality)
> data1 <- transform(airquality,Date=as.Date("1950-01-01"))
Error in data.frame(list(Ozone = c(41L, 36L, 12L, 18L, NA, 28L, 23L, 19L, :
arguments imply differing number of rows: 153, 1
I can't decipher what
2018 Jul 02
1
cron.daily and others, not running
>
> So, service is running but what could happen that makes /etc/cron.* not
> being fired?
You don't say, but if this is CentOS 7, then cron.daily/weekly/monthly
is run using anacron, not cron.
It's configured in /etc/anacrontab and is usually run once a day by the
script /etc/cron.hourly/0anacron - cron.hourly is still run by cron.
If the script doesn't exist, then
2006 Feb 05
2
a generic 'attach'?
Is there any reason why 'attach' is not generic in R?
I notice that it is in another system, for example, and I can see some
applications if it were so in R.
Bill Venables.
Bill Venables,
CMIS, CSIRO Laboratories,
PO Box 120, Cleveland, Qld. 4163
AUSTRALIA
2005 Sep 12
1
hourly log
greetings
on a simple CentOS 4 DNS server install i have the below info.
crontab -l "shows nothing"
pico /etc/crontab shows...
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
i
2017 Feb 02
1
Cron.Hourly
When I have multiple scripts in /etc/cron.hourly/ using noanacron do
they all start at same time or sequentially? I would rather they all
went at same time in case one takes close to an hour to complete.
2005 Jul 01
2
Simple indexing conundrum
My apologies in advance for my thickness but I can't seem to solve the
following, seemingly simple, data manipulation problem:
I have a data frame that contains multiple factors and multiple
continuous response variables, but duplicates of some factor
combinations. The duplicates contain bad data, so I would like to
eliminate the duplicates. I would like to retain the entire rows
2002 Sep 05
1
rcorr in Hmisc
Dear list,
I get the following message when I use rcorr in library "Hmisc"
------------------------------------------------------
> rcorr(lskPox0t30, type=c("spearman"))
Error in "[<-.data.frame"(*tmp*, is.na(x), value = 1e+30) :
matrix subscripts not allowed in replacement
------------------------------------------------------
I do not understand
1999 Aug 24
3
Error in get(x, envir, mode, inherits)
Dear R list,
members of my course have encountered the following error message:
> slm <- lm(price ~ engsize, autoframe)
Error in get(x, envir, mode, inherits) : variable "FUN" was not found
[more context is given in the fuller listing below].
Once the error is encountered it seems to persist; for example early in one
session:
> summary(blin.fit)
Call:
lm(formula = Response