search for: times2

Displaying 6 results from an estimated 6 matches for "times2".

Did you mean: times
2007 Jan 19
4
Newbie question: Statistical functions (e.g., mean, sd) in a "transform" statement?
...05 95.93050 2 17.231940 27.48530 82.962916 10.20619 3 20.279220 10.33575 66.209290 30.71846 4 NA 53.31993 12.398237 35.65782 5 9.295965 NA 48.929201 NA 6 63.966518 42.16304 1.777342 NA one can use "transform" to total all or some columns, thus, times2 <- transform(times,totaltime=time1+time2+time3+time4) > times2 time1 time2 time3 time4 totaltime 1 70.408543 48.92378 7.399605 95.93050 222.6624 2 17.231940 27.48530 82.962916 10.20619 137.8863 3 20.279220 10.33575 66.209290 30.71846 127.5427 4 NA 53.3...
2005 Jan 26
2
reshape (a better way)
...g and then I merge the data together. This is taking a long time. my question is: How do I specify that there are multiple variables that are varying in reshape. Is there a way to do this? The idea is to have something like varying1, varying2,etc,... and each are assosiated with their own times1, times2. something like reshape(mydata, direction="long", varying1=varying1,varying2=varying2, varying3=varying3, split=list(regexp="[a-z][0-9]", include=TRUE), idvar="ID", times1=times1, times2=times2, times3=times3) Jean
2006 Mar 07
1
How to change time zones?
Say you have a POSIX object that is in UTC. How do you change the values to another timezone? If I do this: times <- strptime(times, "%H:%M:%S") times1 <- as.POSIXct(times, tz="UTC") times2 <- as.POSIXct(times, tz="CDT6CST") times1 id UTC, but times2 is still UTC, not CTD. Why? Is the only was to change time zones to add seconds to POSIX objects? [[alternative HTML version deleted]]
2006 Aug 26
1
problems with loop
...p[k,2]=0} } } return(tmp) } # The model to be fitted Model_1=function(beta0_mod,mu_mod,k_mod,I_mod) { parms = c(beta0=beta0_mod, mu=mu_mod, k=k_mod) my.atol = 1e-6 times1=c(0,0.002884615,0.003846154,0.005769231,0.009615385,0.01,0.019230769) times2=c(0.028846154,0.038461538,0.057692308, 0.076923077,0.083333333,0.096153846) times3=c(0.115384615,0.125,0.134615385,0.166666667,0.25,0.416666667,0.5) times4=c(0.58333333,0.666666667,0.75,0.83333333,0.916666667,1) times5=c( 1.166666667,1.25,1.5,1.6,1.75,2,2.5) times6=seq(3,20...
2007 Oct 08
2
sort time
Hello, I have got the following problem: > times <- c("02.07.2007", "03.07.2007","03.09.2007", "04.07.2007","05.07.2007") > mode(times) [1] "numeric" > tim <- as.character(times) > mode(tim) [1] "character" > sort(times) [1] "02.07.2007" "03.07.2007" "03.09.2007"
2006 Mar 08
0
survival
...ID: <5CB24417-5F1B-49AC-AACF-4FD5479BC7D6 at bu.edu> Content-Type: text/plain Say you have a POSIX object that is in UTC. How do you change the values to another timezone? If I do this: times <- strptime(times, "%H:%M:%S") times1 <- as.POSIXct(times, tz="UTC") times2 <- as.POSIXct(times, tz="CDT6CST") times1 id UTC, but times2 is still UTC, not CTD. Why? Is the only was to change time zones to add seconds to POSIX objects? [[alternative HTML version deleted]] ------------------------------ Message: 23 Date: Tue, 7 Mar 2006 11:30:20 -050...