Re: [R] the problem about sample size

2012-02-29 Thread hchui
Hi, there, I run into the same sample size error in JM. Have you found the solution for the error? Many thanks, Helena -- View this message in context: http://r.789695.n4.nabble.com/the-problem-about-sample-size-tp1592855p4434009.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Example(chron) doesn't work

2011-10-26 Thread hchui
It works with Rgui vanilla, R version 2.13.1. I'll check it again when I install R version 2.13.2. Many thanks! > "C:\\Program Files\\R\\R-2.13.1\\bin\\x64\\Rgui.exe --vanilla" [1] "C:\\Program Files\\R\\R-2.13.1\\bin\\x64\\Rgui.exe --vanilla" > library(chron) Warning message: package 'chron' wa

Re: [R] Library chron

2011-10-26 Thread hchui
if else worked. many thanks. -- View this message in context: http://r.789695.n4.nabble.com/Library-chron-tp3935969p3939374.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

Re: [R] Example(chron) doesn't work

2011-10-25 Thread hchui
Hi, there, I have a similar problem. The chron example gives NA. dates doesn't work but times does. I would appreciate it if there's a fix for it. Thanks, Helena > example(chron) chron> dts <- dates(c("02/27/92", "02/27/92", "01/14/92", chron+"02/28/92", "02/01/92")) chron> dt

[R] Library chron

2011-10-25 Thread hchui
Hi there, I have the following problem using times() and ifelse(). t0 <- c(rep("NA", 7)) theData <- times(c("07:36:00","08:09:00","10:28:00","13:28:00","16:29:00", "19:30:00","22:29:00")) t0 <- ifelse(length(theData)==0, t0,theData) In this case, R gives this, instead of theData: > t0 [1] 0.316