Ifelse is a vector function and is absolutely inappropriate for that use.
Use "if" instead.
Also, read the help for Sys.sleep... you need to tell it how long you want to
sleep. You should compute how long that is from now and sleep that long.
---
Hi Everyone,
I am trying to run a time based query and need some of your help.
Not much of data or packages.
Just a simple one.
Query I am trying to execute.
ifelse ((as.numeric(as.POSIXct("2012-10-01 20:38:00"))),
(rnorm(1,2,1)),(Sys.sleep()))
Note. Why I am using as.numeric is as I have a li
2 matches
Mail list logo