Skip to content
Prev 305904 / 398506 Next

Data Frame (Very Simple Problem)

Hello,

Your code is reproducible and completely explains the issue, thanks.
First I had the impression of a well organized question.
Then I've read point 4.

4. The sequence 1:1 starts and ends at 1. You don't need b[1:1, 1:1], 
b[1, 1] will do.

Then you assign a different value to 'b'. This time it's a vector, not a 
data.frame.
The ifelse corrected is

# 'b' is now 1-dim
ifelse(b[1] < Sys.time()+5*60, rnorm(1,0,5), Sys.sleep)

(Why the '*' and the double quotes?)

Then I've realized that you had restarted the counting, but starting 
with point 2.

Hope this helps,

Rui Barradas

Em 19-09-2012 22:54, Bhupendrasinh Thakre escreveu: