Displaying 2 results from an estimated 2 matches for "istant".
Did you mean:
instant
2003 Oct 28
1
strptime command in R
Hello all:
I have a column of times in format
x
"16:30:00"
"16:30:03"
"16:59:00"
etc
which I need to convert into time variables and do some operations on.
I do the command y<-strptime(x,"%H:%M:%S"). This executes almost istantly (for
a column x of length 1000 in Windows, but in Unix, where I run my production
jobs, this takes over 4 minutes. I know that generally my Unix box is much
more powerfull than my Win machine, and R runs generally faster on Unix, but
this particular command is very very slow. Why is that? How...
2006 Sep 22
4
Creating Movies with R
...;-do.call("expect_position",c(list(t=newtime),mypar))
#rho_x<-function(x,expect_position,sigma_pos)
#NB: at t=0, the density blows up, since I have a delta as the initial state!
# At any t>0, instead, the result is finite.
#for this reason I now redefine time by getting rid of the istant t=0
to work out
# the density
rho_x_t<-matrix(ncol=nx,nrow=tsteps-1)
for (i in 2:tsteps)
{mypar<-c(exp_x[i],sig_xx[i])
myrho_x<-do.call("rho_x",c(list(x=newx),mypar))
rho_x_t[ i-1, ]<-myrho_x
}
### Now I also define a scaled density
rho_x_t_scaled<-matrix(ncol=nx,nrow=t...