Displaying 20 results from an estimated 5000 matches similar to: "julian() in base depends on chron"
2006 Feb 02
1
Conflict between julian from base and from chron
I used to run the julian function from chron but this new version of R has
also a julian function in the base package that doesn't do exactly what I
need. Is there a way of telling R to run the function from chron and not
from base?
Thanks,
Fernando
__________________________
Fernando Colchero
Doctoral Fellow
Duke University
Department of Ecology
1999 Apr 28
0
chron and julian
Another beginner's question. Still trying trying to read and and plot a simple
tds-value vs time.
input file: onedat
date time tds
1997-12-29 13:35:00 411
> onedat<-read.table("onedat",header=T)
attach(onedat)
> x<-chron(dates=as.vector(date),times=as.vector(time),
format=c("y-md","h:m:s"))
> x
[1] (97-12-29 13:35:00)
See my problem? Chron
2002 Apr 08
1
Problem(?) in strptime() -- short version
I decided my earlier email on this topic was rather long and wordy;
here's a condensed version.
I am sitting at a Solaris computer in the US/Pacific timezone.
I have a file of data having times that includes the following three values
2002-4-7 1:30:00 GMT
2002-4-7 2:30:00 GMT
2002-4-7 3:30:00 GMT
I have not been able to find a way to correctly convert these to
either of the POSIX
2011 Sep 29
1
julian day form POSIXt object
hello all,
this is my reproducible example data frame
test<-structure(list(date = structure(c(1262300400, 1262304000, 1262304000,
1262307600, 1262307600, 1262311200, 1262311200, 1262314800, 1262314800,
1262318400, 1262318400, 1262322000, 1262322000, 1262325600, 1262325600,
1262329200, 1262329200, 1262332800, 1262332800, 1262336400, 1262336400,
1262340000, 1262340000, 1262343600,
2012 Jun 08
3
day of the year for chron objects
Hi!
Is not there an standard R function to retrieve the day of the year
(since 1st Jan of the same year)?
I know I can make my own using julian, but find it weird that having
days(), months() etc doy() does not exist as an standard function.
Also, is the following not a bit inconsistent?
> a <- chron("20100506",format="ymd")
> a
[1] 100506
> years(a)
[1] 2010
2006 Jun 15
1
Problem with Julian function
Dear all,
I have a problem with the function Julian, may be a bug in the function ?
Here is a vector of character, which represents dates (May 18 to May 20
2000):
> amj <- c("2000-05-18","2000-05-18","2000-05-18","2000-05-19","2000-05-19"
> ,"2000-05-19", "2000-05-19", "2000-05-20", "2000-05-20",
2001 Apr 09
1
Julian dates
I am using the "chron" package. Can anyone tell me if there is a simple way
to convert a date object (obtained from the "dates" function) into a julian
date (using the "julian" function)?
Thanks, Al.
Al Merrifield
Energy Analyst
Energy Modelling & Statistics
Ministry of Economic Development
PO Box 1473
Wellington
NEW ZEALAND
Phone: (04) 470 2338
Fax: (04)
2002 Oct 18
1
Chron problem with R 1.6.0 (PR#2181)
Full_Name: Rick Bilonick
Version: 1.6.0
OS: Linux (RH 7.1)
Submission from: (NULL) (12.4.226.1)
Hi. I'm using Red Hat 7.1 Linux (Intel 586). I installed the 1.6.0 rpm. No
problems were reported. When I tried to load the chron library:
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library "/usr/lib/R/library/chron/libs/chron.so":
2008 Aug 01
1
chron objects: input/output
Hi list, I have some questions regarding
1) conversion of date + time characters to chron
2) formatting chron object printing
Regarding (1), Gabor's Rnews 2004 4/1 article has been indispensible,
but I often work with files where dates and times are contained in a
single field. In this case, I would like to control input/output of
chron objects when each observation of date and time is
2011 Aug 30
3
having trouble extracting week from chron object
Running R 2.13.1 on Windows XP.
I would like to get week of the year (1-52) for each date.
library(chron)
dts <- dates(c("02/27/92", "02/27/92", "01/14/92","02/28/92", "02/01/92"))
dts
dts.chron <- as.chron(dts)
dts.chron
class(dts.chron)
# all of these component extractions work:
months(dts.chron)
weekdays(dts.chron)
years(dts.chron)
2001 Feb 22
0
Installing chron
> Date: Thu, 22 Feb 2001 09:46:38 -0800
> From: Jack Lewis <jl7001 at axe.humboldt.edu>
>
> R folks:
>
> What is the procedure for installing the chron package with R 1.2.1
> for Windows? I have downloaded chron_2_2-8_tar.gz from CRAN,
> but the installer program (rwinst.exe) wants a .zip file and I was
> unable to locate one at the CRAN site.
It should be
2011 Sep 16
1
Mystified - comparing chron times
I have two local variables: startTime and expectedStartTime. Both are chron
related objects.
When I look at the class for the objects I can see they are of class
"times".
When I print them to the console, they both read: "09:30:00"
When I print them as.numeric(), they both read: 0.3958333
When I try and compare them: (as.numeric(startTime) ==
as.numeric(expectedStartTime)) it
2005 Jun 01
2
problem with chron scales in lattice
I can't get the scales parameter in xyplot of lattice to work as I
expected. I'm using R-2.1.0 and lattice 0.11-8. There should be year
labels from 1992 to 2004 for the x axis in the plot below, but instead
only a few of them appear, and in the wrong spots, as if the coordinate
system has changed after finishing with the panel function.
library(chron)
library(lattice)
# vertical grid
2005 Nov 16
1
COM dates (was origin and "origin<-" in chron)
I was just looking for an easy way to convert between COM datetime and
chron datetime (both ways.)
I found examples on the list, but they involved origin.
Does anyone have functions for converting COM datetime <-> chron
datetimethat work "safely"?
David L. Reiner
> -----Original Message-----
> From: Gabor Grothendieck [mailto:ggrothendieck@gmail.com]
>
2012 Jun 15
2
time zones and the chron to POSIXct conversion
Hey R folks,
i found some strange (to me) behaviour with chron to POSIXct conversion.
The two lines of code result in two different results, on ewith the
correct time zone, one without:
library(chron)
as.POSIXct(chron('12/12/2000'), tz = 'UTC')
as.POSIXlt(chron('12/12/2000'), tz = 'UTC')
Only the code below would give me a POSIXct object with the correct time
2010 Jan 26
0
newb question: chron and hist()
Hi all, I'm just getting started in R so bear with my newbness.
I am trying to create a very simple histogram of logins by time, with data
coming in from a MYSQL query.
the raw data looks like this:
"id" "user_id" "experience_given" "created_at" "ip_aton"
"1" XXXXXXX 2445626 0 "2010-01-21 00:00:01" 1123632036
"2"
2010 Nov 24
0
rbind error (maybe a problem with chron package?)
Hello,
I have a list of data frames that I would like to combine to a single
data frame. I typically do this with:
do.call(rbind, list.of.dataframes)
This time, I get
Error in class(x) <- cl :
cannot set class to "array" unless the dimension attribute has
length > 0
I'm not sure what's happening. Each data frame has a column of chron
objects and a column of float
2006 Sep 20
1
hours() in 'chron': output != input
I encountered surprising (to me, at least) behavior while using 'hours()'
in package 'chron.' I will be grateful if someone can point out my error
or provide an explanation and intuitive solution (I suppose I could
convert chron to a character vector and use substring, but I deal mostly
with newbies and kludgy approaches don't inspire much confidence).
I used 2.3.0 to
2006 Nov 20
1
a little help needed plotting chron object
Hello there,
Using R 2.4.0 on Solaris (Unix):
I am trying to control the X axis range on a simple time of day plot.
I made a test program (below) that gets file time stamp information from
the files in the directory where R starts. The goal of the test program is
to plot the time of day of file creation on an x axis that spans a
user-specified range (like 12:00:00 to 15:00:00).
If I allow
2008 Dec 09
1
chron - when seconds data not included
I have date and time data which looks like this:
[,1] [,2]
[1,] "7/1/08" "9:19"
[2,] "7/1/08" "9:58"
[3,] "7/7/08" "15:47"
[4,] "7/8/08" "10:03"
[5,] "7/8/08" "10:32"
[6,] "7/8/08" "15:22"
[7,] "7/8/08" "15:27"
[8,] "7/8/08"