[R] chron and julian

Geldenhuys, Willie ECI at dwaf-hri.pwv.gov.za
Wed Apr 28 11:04:07 CEST 1999


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 has thrown the 1900 bit away.
	Is there a way I can prevent this?

> julian(months(x[1]),days(x[1]),years(x[1]))
[1] -719073

	Now. julian is that negative monstrosity iso 10224.

How do I cure this problem
"This universe never did make sense; I suspect it was built on a government contract."
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list