similar to: How canI convert date-time to Julian date?

Displaying 20 results from an estimated 10000 matches similar to: "How canI convert date-time to Julian date?"

2004 Jan 28
5
Julian dates
Hi all, I have problems with years of dates using "chron" package. I don't understand why R by this istruction: > dates("01/02/29",out.format="d/m/year") [1] 02/Jan/2029 > dates("01/02/30",out.format="d/m/year") [1] 02/Jan/1930 reads "29" as 2029 and "30" as 1930. How could I change to read "00" to
2003 Dec 15
3
Julian Dates
Hi, I'm a bit confused how julian() works. If I understand right, it returns the number of days since the origin. I have a vector: > SLDATX[1:10] [1] "1986-01-06" "1986-01-17" "1986-02-02" "1986-02-04" [5] "1986-02-04" "1986-02-21" "1986-03-06" "1986-03-25" [9] "1986-04-06"
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
2002 May 01
1
julian() in base depends on chron
It appears that julian() is in R-base, but julian.default() is in the chron package. > search() [1] ".GlobalEnv" "package:ctest" "Autoloads" "package:base" > julian(1:3,4:6,1991:1993) Error in julian(1:3, 4:6, 1991:1993) : no applicable method for "julian" > find('julian') [1] "package:base" >
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)
2012 Jun 15
2
How to convert month-day-year to Julian data number?
Hello, I am trying to convert calendar dates (Month, Day, Year) into Julian Days   Product code Bureau of Meteorology station number Month Day Year Date_mdy Date 4102001 70014 1 1 1939 1/01/1939 1/01/1939 4102001 70014 1 2 1939 1/02/1939 2/01/1939 4102001 70014 1 3 1939 1/03/1939 3/01/1939 4102001 70014 1 4 1939 1/04/1939 4/01/1939 4102001 70014 1 5 1939 1/05/1939 5/01/1939 4102001 70014 1 6
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,
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",
2007 Jul 18
3
dates() is a great date function in R
Proper calendar dates in R are great for plotting and calculating. However for the non-wonks among us, they can be very frustrating. I have recently discussed the pains that people in my lab have had with dates in R. Especially the frustration of bringing date data into R from Excel, which we have to do a lot. Please find below a simple analgesic for R date importation that I discovered over
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
2012 May 17
2
hmd.mx
I have trouble using function hmd.mx I have all packages required. I call function: slovenia <- hmd.mx("SVN", username, password, "Slovenia") : and I get this error: NAs introduced by coercion And if I then call slovenia, I get: > slovenia Mortality data for Slovenia Series: female male total Years: 1983 - 2009 Ages: 0 - 110 But I do not get any value
2004 Jun 07
7
Vectors of years, months, and days to dates?
The interface for dates in R is a little confusing to me. I want to create a vector of Date objects from vectors of years, months, and days. One solution I found is: years <- c(1991, 1992) months <- c(1, 10) days <- c(1, 2) dates <- as.Date(ISOdate(years, months, days)) But, in this solution the ISOdate function converts the vectors into characters, which can cause serious
2006 Oct 04
2
rendering date/times from 64bit julian format?
Hellos, I have date/times in 64-bit Julian format, that is the number of milliseconds since 1 jan 1970 (or something like that). E.g., "1159884877406" For the life of me I can't figure out how to render these in a more readable format, e.g., "2006-10-04 23:12:93.191" (and I have tried to do my best searching the archives and help etc ...) Thank you most
2010 Sep 23
4
plotting multiple animal tracks against Date/Time
Dear list, I would like to create a time series plot in which the paths of several individuals are stacked above each other, with the x-axis being the total observation period of three years ( 1.1.2004 to 31.12.2007) and the y-axis being some defined range[min,max]. My data consist of Date/Time information and the paths of 45 individual as the distance from the location of release. An example
2004 Jul 16
1
labels for 3d Plots
High! How can I add variable labels (rownames for instance) to a plot created with ‚clouds’ ( clouds(dim3~dim1*dim2)) – package lattice? Thanks in advance! Martina Renninger [[alternative HTML version deleted]]
2013 Jan 18
1
Nesting fixed factors in lme4 package
Hi, can anyone tell me how to nest two fixed factors using glmer in lme4? I have a split-plot design with two fixed factors - A (whole plot factor) and B (subplot factor), both with two levels. I want to do GLMM as I also want to include different plots as a random factor. But I am interested on the effect of A a B and their interaction on the response variable. I tried
2003 Nov 11
4
HMisc describe -- error with dates
Hello, I am trying to use HMisc describe on a data frame. I have specified certain variables as dates using, for example: df1$aidsdate <- dates(aidsdate,format="day.mon.year", origin=c(month = 1, day = 1, year = 1960)) When I use describe on the dataframe I get this error: Error in Ops.dates(weights, x) : * not defined for chron objects Has anyone had this problem? I had
2003 Oct 28
1
'levelplot' with an option 'at'
Hi all, I encountered a difference between versions 1.6.1 and 1.7.0 when using levelplot with an option 'at'. Here are the specs of the two platforms used: > R.version _ platform sparc-sun-solaris2.8 arch sparc os solaris2.8 system sparc, solaris2.8 status major 1 minor 6.1 year 2002 month 11 day 01 language R > R.version _ platform
2017 Jul 07
2
Beginner s quwry about cfa in lavaan
Dear all, I am trying to learn about R. As a Phd student, I would like to use R for Krippendorff s alpha and later for a series of CFA. Is there any good introduction to these kind of analyses, or could you recommend me some tutorials on youtube, for example? I am new to R, so I need something basic , starting from opening the R environment?. Thank you . Martina Hulesova Odesl?no z m?ho Windows
2011 Apr 06
1
Problem to convert date to number
Hi R users, I have a maybe small problem which I cannot solve by myself. I want to convert "chron" "dates" "times" (04/30/06 11:35:00) to a number with as.POSIXct. The Problem is that I can't choose different timezones. I always get "CEST" and not "UTC" what I need. date = as.POSIXct(y,tz="UTC") "2006-04-30 11:35:00