search for: julian

Displaying 20 results from an estimated 1678 matches for "julian".

2012 Mar 23
1
julian() and numerical noise
Hi, does anybody know if the following behavior of julian() is intentional? > julian(2, 1, 2012) - julian(2 - 1e-15, 1, 2012) [1] 1 > julian(2, 1, 2012) - julian(2, 1 - 1e-15, 2012) [1] 0 > julian(2, 1, 2012) - julian(2, 1, 2012 - 1e-15) [1] 0 In other words, julian() is subject to numerical noise in the 'day' argument, but no...
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&quo...
2009 May 27
9
Contingent Select Boxes - 2 Q's
I have a form with contingent select boxes (the state is contingent on the country selected, so when the country selected changes, the state changes -- I am using the Carmen plugin for getting my state names and country names together, but not the functionality I am interested in achieving). Everything works fine except I cannot figure out how to amend my code such that: A. When the form is first
2005 Dec 21
3
NextMethod causes R 2.2.0 to crash (PR#8416)
I found writing the following default method the for the generic function "julian" causes R to crash. julian.default <- function(x, ...) { x <- as.Date(x) NextMethod("julian", x, ...) } Here is a test example > m <- as.Date("1972-09-27") + 0:10 > m [1] "1972-09-27" "1972-09-28" "1972-09-29&qu...
2010 Jul 05
3
Problemas para graficar barras de error y fechas en el eje-x (SOLUCIONADO)
...s me funciona, veremos si más adelante se me complica con alguna otra cosa) Llogré resolver el problema usando el parámetro "labels" de la función "axis()". Lo que hice es algo así: *datos <- read.table(....)* #en el archivo datos, tengo una columna con las fechas en formato julian hecha en la la planilla de cálculo (en mi caso Go-oo). #Para graficar, defino los rangos de cada eje *x1 <- as.integer(min(datos$julian)) x2 <- as.integer(max(datos$julian)) ejejx <- c(x1, x2) ejey <- range(datos$ch)* # y la solución que encontré a mi problema es esta: # Primero, a part...
2010 Sep 15
1
Difficulty creating Julian day in data frame
Hi, I'm attempting to add a "Julian Day" column to a data frame. Here is my code and the resulting data frame: vic.data <- read.table("C:/VIC/data/vic.data.csv", header=F) names(vic.data) <- c("year", "month", "day", "precip", "evap", "runo...
2011 Sep 29
1
julian day form POSIXt object
...00, 1262379600, 1262379600, 1262383200, 1262383200, 1262386800), class = c("POSIXct", "POSIXt" ), tzone = "")), .Names = "date", row.names = c(NA, -48L), class = "data.frame") given that, my objective is to create a new variable accounting for the julian day (i.e. the number of consecutive days elapsed from a fixed origin date) and these are (among many others) my (most) unsuccessful attempts? library(chron) #not working! test$jday<-julian(test$date, origin=as.POSIXct(test$date)) #not working! test$jday<-julian(test$date, origin=test$date)...
2002 Feb 28
1
Bug in julian() (PR#1332)
Full_Name: Michael Jacob Version: 1.4.1 OS: Windows 2000 SP2 Submission from: (NULL) (195.27.237.226) Hi, there seems to be a bug in julian(): > Sys.getlocale() [1] "LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=C;LC_NUMERIC=C;LC_TIME=English_United States.1252" > julian(Sys.time()) Error in fromchar(x) : character string is not in a standard unambiguous format > julian functi...
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 Levels: 2010 but instead have to cast to Date...
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...
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",...
2004 Jul 07
4
tutorial for Julian Anastasov''s patches
I''m sure that I had found (and printed out ...) a really good tutorial that explain how to use Julian Anastasov''s routing patch, but I can''t seem to find it now. Any pointers? -- ****************************************************************** Glen W. Mabey Glen.Mabey@usu.edu http://mabeys.homelinux.com/glen/ *****************************************************************...
2009 Nov 11
1
Unexpected behaviour for as.date()
Hi everyone, I am trying to use the function as.date() from the "dates" package in R 2.10.0 to convert a character date to a Julian date, as follows: > as.date("02-MAY-01", order="mdy") # convert May 2, 2001 to a Julian date [1] 2May1 However, when trying to convert a character date from the year 2000 to a Julian date, I get an <NA> instead of the desired Julian date: > as.date("02-MAY-00...
2013 Jun 06
1
Reproducable Infiniband panic
...ack-to-back. Details below. I can upload 2 crash dumps, if this is useful. For some reason the port doesn't become ACTIVE, so no packets arrive, but that is probably unrelated. % uname -a FreeBSD cosel.inf.tu-dresden.de 9.1-STABLE FreeBSD 9.1-STABLE #0 r+b6547e3: Wed Jun 5 18:29:51 CEST 2013 julian at cosel.inf.tu-dresden.de:/usr/obj/usr/home/julian/src/freebsd/sys/COSEL amd64 % sudo ibping 2 ^C --- (Lid 2) ibping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5161 ms rtt min/avg/max = 0.000/0.000/0.000 ms Fatal trap 12: page fault while in kernel mode cpuid = 6...
2005 May 14
3
julian
I have a problem wherein I need to convert back and forth from dates of the form "2000-04-11" to Julian dates. After some experimentation I found that > z <- strptime("2000-62",format="%Y-%j") > z gave me "2000-03-02" --- i.e. March 2 which is as it should be according to my (not too reliable) arithmetic. Going the other direction, more experimentation led...
2006 Mar 01
3
How to do a "proc summary" in R?
Hi, I'm a SAS user trying to convert myself to R but I still have problems with some pretty simple commands. First I wanted to add up a number of red-tailed hawks seen per day (julian day) per year. So I tried: RTyrday <- tapply(RThr,list(year,julian),sum) And then I tried the following regression: mod1 <- glm(RTyrday~julian+year, family=gaussian (link=identity),data=RT) Wich didn't work since my vector RTyrday and julian don't have the same length. My quest...
2009 Dec 09
1
partial match for two datasets
Hi all, I have two sets: dig<-c("DAVID ADAMS","PIERS AKERMAN","SHERYLE BAGWELL","JULIAN BAJKOWSKI","CANDIDA BAKER") import<-c("by DAVID ADAMS","piersAKERMAN","SHERYLE BagWEL","JULIAN BAJKOWSKI with ","Cand BAKER","smith green")     I want to get the following result from "import" after comparing t...
2006 Apr 27
6
OrderedHash
...s like I have skipped on this, but still - a couple of questions: 1) Why there suddenly is an OrderedHash in ActiveSupport? (this glaring omission from ruby core is present in many apps already) 2) Why it doesn''t match the semantics of Hash respectively? 3) Why it''s #nodoc ? -- Julian ''Julik'' Tarkhanov please send all personal mail to me at julik.nl
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) 473 9930 E-mail: Alistair.Merrifield at med.govt.nz -.-.-.-.-.-.-.-....
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" "198...