Displaying 20 results from an estimated 3000 matches similar to: "DateTime Math in R - POSIXct"
2009 Jul 19
1
transform(_data,...) using strptime gives an error
I have timstamped data like this:
> sd[1:10,]
Tstamp Density Mesh50 Mesh70 Mesh100 Mesh150 Mesh200
2 2009/02/27 07:00 30.5 0.7 10.7 21.4 32.8 41.6
3 2009/02/27 08:00 32.2 1.6 12.4 23.3 34.5 43.0
4 2009/02/27 09:00 32.7 4.8 13.0 24.0 35.1 43.5
5 2009/02/27 10:00 26.7 0.3 6.5 17.6 28.1 36.9
6 2009/02/27 11:00
2015 Dec 07
2
inconsistency in POSIXlt
The documentation for the POSIXlt class states '"POSIXlt" objects will
often have an attribute "tzone", a character vector of length 3 giving the
time zone name from the TZ environment variable and the names of the base
time zone and the alternate (daylight-saving) time zone. Sometimes this may
just be of length one, giving the time zone
2013 Apr 28
2
Multiple assignment to several columns in dataset
Hello!
I've time stamp ('time') field in dataset ('dt') with values like "18:10",
"19:43", ....
I need to split time field into hour and minutes and add both as new
columns to dataset.
We are able to do it in bash+awk, but curious to stay within R codebase as
much as possible.
For now we are using such solution:
tstamp <- strsplit(dt$time,
2005 Aug 31
1
So-called 'bug' reports PR#8102 and PR#8103
Neither of these have reached me on R-devel (and only PR#8103 is on the
archive), and they seem to be the same error although neither mentions the
other. That's 'odd', to quote one of them.
"EDT" is not a valid POSIX timezone (but, say, EST5EDT is). R's docs are
quite clear that what happens with invalid inputs is system-specific.
(Windows seems often to run home
2019 Oct 31
5
[PATCH] Replace mkproto.pl with mkproto.awk
This replaces the build dependency on perl with one on awk which is
already used in the build system and is much more ubiquitous than perl
---
Makefile.in | 2 +-
mkproto.awk | 39 +++++++++++++++++++++++++++++++++++++++
mkproto.pl | 48 ------------------------------------------------
3 files changed, 40 insertions(+), 49 deletions(-)
create mode 100644 mkproto.awk
delete mode 100644
2001 Nov 26
1
Sorting Posix Data
I have a fairly large set of data with the following attributes:
>str(raw.data)
`data.frame': 1429 obs. of 16 variables:
$ TStamp :`POSIXlt', format: chr "2001-11-25 02:00:00" "2001-11-25
01:55:00" "2001-11-25 01:50:00" "2001-11-25 01:45:00" ...
$ iPDT.AHU14.14: num 0.0122 0.0125 0.0120 0.0120 0.0122 ...
$ iPDT.AHU14.15: num 0.0121
2009 Jul 08
1
R 2.9.0 plot still forcing current time zone
the help page for plot.POSIXct says
"As from R 2.9.0 the date-times for a '"POSIXct"' input are
interpreted in the timwzonw give by the '"tzone"' attribute it
there is one, otherwise the current timezone. (Earlier vrsions
always used the current timezone.)"
however I am using 2.9.0 on linux and the following still happily
produces an
2007 Aug 09
2
Countvariable for id by date
Best R-users,
Here’s a newbie question. I have tried to find an answer to this via help and the “ave(x,factor(),FUN=function(y) rank (z,tie=’first’)”-function, but without success.
I have a dataframe (~8000 observations, registerdata) with four columns: id, dg1, dg2 and date(YYYY-MM-DD) of interest:
id;dg1;dg2;date;
1;F28;;1997-11-04;
2009 Jul 11
5
Resilvering Loop
I have a situation where my zpool (with two radiz2s) is resilvering
and reaches a certain point, then starts over.
There no read, write or checksum errors. The disks do have a fair
amount of resilvering to do, as I''ve had a variety of disk failures.
But at the core of things, there''s enough parity data to avoid data
loss, and the zpool is functioning fine, albeit in a
2010 Jan 29
1
How to convert timestamps?
I have timestamps from mysql database:
> dput(tstamp)
c(1225221868L, 1225221906L, 1225221906L, 1225230997L, 1225231000L,
1225231003L, 1225231152L, 1225231348L, 1225231351L, 1225231400L
)
How to convert these into normal dates?
Thanks,
jrara
2010 May 31
1
Building a what list for scan to use
Using read.table now on large files. Scan should be faster reading and
parsing the files if a 'what' list is provided.
How would I generate a what list that repeats the the last 4 elements n
(n=14 or 10 or 8) times?
whatlist=list(Tstamp="",Condition=0,A1=0,B1=0,C1=0,D1=0)
All are numeric, either decimal or hexadecimal.
Thanks in advance,
Alex van der Spek
2011 Feb 11
2
tzone and DST
I'm reading in ~3 years worth of data that includes hourly timestamps.
Presumably to avoid DST confusion, all the data is in PST time zone -- no
discontinuities in the spring or fall.
The data comes in a csv file, which I'm reading with
myvariable <- read.csv("my_data_file.csv",header=FALSE,
2009 Mar 03
1
zoo and coredata() classes
Hi guys
I have a reasonably basic question with zoo usage, but I havent been able
to find a satisfactory workaround yet.
Heres a simple example of what I'm talking about (the following data frame
contains numeric columns that contains NAs):
> head(ebs)
time src tstamp code bid ask
1 2009-03-03 13:03:29.536 perf.Tib_listener 14980321164
EBS.REC.EURJPY=EBS.NaE 123.48 NA
2 2009-03-03
2004 Aug 19
2
proposed change to [.POSIXct
R developers,
The "tzone" attribute is stripped from a POSIXct object when the subscript
command is called ("[.POISXct"). This results in dates being printed in the
locale specific format after a subscript operation is applied to a POSIXct
object which has cause several problems for me in the past.
Here is an example of this problem under R 1.9.1:
> x <-
2012 Jul 09
1
c(a, b) for POSIXct objects with tzone attributes?
Hello:
What is the recommended method for retaining the tzone attributes
when concatonating POSIXct objects?
> (d1 <- ISOdate(1970,1,1)) # Sets the tzone attribute = GMT
[1] "1970-01-01 12:00:00 GMT"
> (d1.2 <- c(d1, d1)) # c(..) strips the tzone attribute, displays in
the time zone of the operating system
[1] "1970-01-01 04:00:00 PST" "1970-01-01
2012 Apr 19
2
ANOVA in quantreg - faulty test for 'nesting'?
I am trying to implement an ANOVA on a pair of quantile regression models in
R. The anova.rq() function performs a basic check to see whether the models
are nested, but I think this check is failing in my case. I think my models
are nested despite the anova.rqlist() function saying otherwise. Here is an
example where the GLM ANOVA regards the models as nested, but the quantile
regression ANOVA
2009 Jul 10
5
Slow Resilvering Performance
I know this topic has been discussed many times... but what the hell
makes zpool resilvering so slow? I''m running OpenSolaris 2009.06.
I have had a large number of problematic disks due to a bad production
batch, leading me to resilver quite a few times, progressively
replacing each disk as it dies (and now preemptively removing disks.)
My complaint is that resilvering ends up
2000 Mar 09
1
[Galen Hancock <galen@veribox.net>] Information leakage in sshd
Hi,
Thought I'd just forward this here, because I don't have time to look
into it right now, and am off skiing next week.
I'd guess that we should be checking for username = ``root'' before
going off to do password checks, and rejecting it on that basis first.
Cheers, Phil.
--
Mind-numbingly stupid UK law alert!
Act now to stop it! http://www.stand.org.uk/
--------------
2019 Apr 04
0
[Bug 1332] New: Time-matching extension (--match time) broken by timestamping changes in kernel 4.20 and later
https://bugzilla.netfilter.org/show_bug.cgi?id=1332
Bug ID: 1332
Summary: Time-matching extension (--match time) broken by
timestamping changes in kernel 4.20 and later
Product: netfilter/iptables
Version: unspecified
Hardware: x86_64
OS: All
Status: NEW
Severity: normal
2009 Mar 04
2
patch for axis.POSIXct (related to timezones)
I am finding that axis.POSIXct uses the local timezone for deciding where to
put tic marks, even if the data being plotted are in another time zone. The
solution is to use attr() to copy from the 'x' (provided as an argument) to
the 'z' (used for the 'at' locations).
I have pasted my proposed solution in section 1 below (as a diff). Then, in
section 2, I'll put some