similar to: round.POSIXt sometimes crashes R (PR#3763)

Displaying 20 results from an estimated 100 matches similar to: "round.POSIXt sometimes crashes R (PR#3763)"

2005 Sep 23
2
Strange behaviour of as.Date function
Dear All, I'm happily extracting data of temperature from an oracle db under R via RODBC. After manipulating the extracted data I put them into a data.frame 'dati' which is as follows: > dati DATA tm. UDINE/RIVOLTO tm.TORINO/CASELLE 1 2005-07-01 22.35 23.80 2 2005-07-02 22.70 22.85 3 2005-07-03 23.80
2003 Aug 27
1
Problem in StructTS() when the first element of the serie is NA ( (PR#3990)
Hi all, I've experienced this problem using StructTS(x) when the *first* element of x is a NA (R:R1.7.0, os: w2ksp4). Please look at the following code: a=rep(1:7,10) library(ts) #this works StructTS(a) #this works x=a x[2]=NA StructTS(x) #this doesn't work x=a x[1]=NA StructTS(x) The last command returns this error "Error in optim(init[mask], getLike,
2003 Jan 27
1
Owner and group
Hi all, When i use rsync with on the server : motd file = /etc/rsyncd.motd log file = /var/log/rsyncd.log pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock [filieres] path = /home2 comment = Repertoire de sauvegarde des filieres read only = no hosts allow = 172.18.1.246 # vador only dont compress = *.gz *.jpg *.zip *.rpm *.tgz note : the
2003 Jan 08
0
plotting multivariate data and lm()
Dear list, I have a problem with plotting multivariate data and models. I suppose the answer is obvious for experienced users but I didn't find it looking in usual documentation or in the mail archive... Let's say I use a dataset like : a <- sort(round(rnorm(90),3)) niv <- factor(c(rep('B',30), rep('E', 30),
2003 Aug 27
1
Problem in step() and stepAIC() when a name of a regressors has b (PR#3991)
Hi all, I've experienced this problem using step() and stepAIC() when a name of a regressors has blanks in between (R:R1.7.0, os: w2ksp4). Please look at the following code: "x" <- c(14.122739306734, 14.4831100207131, 14.5556459667089, 14.5777151911177, 14.5285815352327, 14.0217803203846, 14.0732571632964, 14.7801310180502, 14.7839362960477, 14.7862217992577)
2003 Jan 10
1
plot() and lines() multivariate problem
Dear list I'm trying to solve the following problem since 2 days with no success. Could someone help a newbie, please ? I have a dependant variable which is diameter of shell, and two factors which are level on the beach (3 levels 'B', 'E' and 'H') and a hydrodynamics indice (3 levels 1, 2 and 3) To study diameter variations according to these factors, I may use
2002 Jul 01
1
chi square residuals
dear list, I'm a newbie with R but it seems very interesting to me. First, to train myself and students, I'd like to use it for teaching labs next year. one of my labs deals with the barn owl predation in my region. tudents have to work on a contingency table tytogrp : station1 station2 station3 ... n1,1 n1,2 n1,3 ... n2,1 n2,2 n2,3 ...
2000 Feb 14
2
Error report on empty matrices (PR#435)
Dear R developers: When using R.0.99a (Version 0.99.0 Patched (February 9, 2000), source compiled with gcc under SuSE 6.2) on a PIII 500Mhz Machine under SuSE 6.2 Linux I found the following bug: x <- matrix(0,10,0) rbind(x,2) causes an R-crash with the message "Gleitkomma-Ausnahme" (floating point exception) which is probably due to the non-applicability of the recyling
2005 Apr 14
1
xtable POSIXt
Hi, I was trying like to print out data frame with POSIXct column in html format using xtable package, but I got error message when trying to print the table. Here is example: aaa<-data.frame(as.POSIXct(strptime('03 2005', '%d %Y')),0) aaa.tab<-xtable(aaa) print(aaa.tab) Error in Math.POSIXt(x + ifelse(x == 0, 1, 0)) : abs not defined for POSIXt objects
2006 May 06
0
'col'-parameter in 'hist.POSIXt'
Hi guys. The 'col'-parameter in the 'hist'-method for the classes 'POSIXt' and 'date' does not perform as it does in the default 'hist'-method. Unfortunately, it does not only change the filling color of the boxes, but also the color of the axislines. [Using 'graphics'-package version 2.2.0] Examples: # with POSIXct-object hist(.leap.seconds,
2005 Jan 05
1
hist.POSIXt filled bars - axis color changes
Hi all, I'm plotting a histogram of dates and would like to shade the bars, e.g. hist(.leap.seconds,"years",col='gray',freq=T) -but the axis color also changes, how do I prevent that? thx in advance Janus [[alternative HTML version deleted]]
2006 Sep 25
0
na.encode in format for Date and POSIXt classes
Hello! na.encode does not have any effect on format of NA values of Date and POSIXct (POSIXlt?) "atomic" classes in a data.frame. Here is the example (the same in R 2.3.1 and 2.5.0 (2006-09-19 r39409)): testData <- data.frame(num=c(NA, 2.6), int=c(1, NA), fac=factor(c(NA, "abc")), cha=c("a",
2007 Feb 21
1
Adding difftime objects to POSIXt objects
Hello, ?DateTimeClasses states that "one can add or subtract a number of seconds or a 'difftime' object from a date-time object, but not add two date-time objects." So, is the below expected behavior? > x <- Sys.time() > x [1] "2007-02-21 16:19:56 CST" > x + as.difftime("1","%H") [1] "2007-02-21 16:19:57 CST" Warning
2010 Apr 29
1
bug in cut.POSIXt(..., breaks = <numeric>) and cut.Date
x <- seq(as.POSIXct("2000-01-01"), by = "days", length = 20) cut(x, breaks = 3) # Error in `levels<-.factor`(`*tmp*`, value = character(0)) : # number of levels differs cut(as.Date(x), breaks = 3) # Error in `levels<-.factor`(`*tmp*`, value = character(0)) : # number of levels differs Index: base/R/datetime.R
2011 Mar 23
0
suggestions re trunc.POSIXt
Dear all, I hope this is a right place to post this; r-help might be appropriate but it looks like I'm suggesting a change in base package, so I decided to post here. (+ Apologies if that has been changed recently -- the version I'm using is R.2.12.2 on Windows.) I've noticed an unexpected behavior of trunc.POSIXt: foo <- seq(as.POSIXct( "2009-10-23 22:00:00"),
2002 May 17
0
round.POSIXt gets certain values wrong
For certain values, round.POSIXt(tm,'day') does not round to midnight as documented. The reason is that trunc.POSIXt() does not adjust the value of the isdst element. Assuming my assessment of the reason is correct, I have a potential solution to offer. Additional discussion is in bug report #1543. -Don > x <- c(as.POSIXct('2001-4-1 3:15'),as.POSIXct('2001-5-2
2009 Feb 17
0
Problem with +(POSIXt, difftime) dispatching -- WAS: How to create sequence of constant time interval
There seems to be a problem in the way `+` is dispatched for POSIXt/difftime (R 2.8.0 Windows). With the following definitions: t0 <- as.POSIXct('2009-01-01 00:00') halfhour.mins <- as.difftime(30,units='mins') I would have thought that the straightforward answer to Suresh's question would be something like t0 + halfhour.mins * (0:47) And indeed, if we
2004 Mar 30
1
seq.POSIXt() bug not fixed in R 1.8.1 (PR#4558)
I am still experiencing problems with seq.POSIXt() missing off the last day of the series: > seq(as.POSIXct("2004-03-25"),as.POSIXct("2004-03-31"),by="DSTdays") [1] "2004-03-25 GMT Standard Time" "2004-03-26 GMT Standard Time" "2004-03-27 GMT Standard Time" [4] "2004-03-28 GMT Standard Time" "2004-03-29 GMT Daylight
2007 Oct 08
2
Incompatible methods ("-.POSIXt", "Ops.difftime") for "-"
Dear all, according to the Help-page of DateTimeClasses {base} I should be able to do time - z with time date-time objects z a numeric vector (in seconds) or an object of class "difftime". However, on R version 2.6.0 (Windows XP) I get > Sys.time() - as.difftime(c("0:3:20", "11:23:15")) Time differences in mins [1] 1191837998 1191837318
2001 Aug 09
1
bug (and fix) in seq.POSIXt (PR#1046)
I can't reach r-project.org at the moment so cannot check whether this is a known bug. > version _ platform i386-pc-mingw32 arch x86 os Win32 system x86, Win32 status major 1 minor 3.0 year 2001 month 06 day 22 language R The