saving . . . saved Seq command not working with a variable has been deleted. Seq command not working with a variable has been hidden .
Seq command not working with a variable
Title
Question
seq (-1,2,0.5) is working fine, but z= seq(-1,2,0.5) or z<-seq(-1,2,0.5) are not working. 
I am using R Studio version 4.0.1


R Introduction-to-basics-of-R 06-07 min 20-30 sec 15-06-20, 11:45 p.m. supritpanigrahi@rdwu.ac.in

Answers:

I tried this on my end. It's working, as given below: 

> seq(-1, 2, 0.5)
[1] -1.0 -0.5  0.0  0.5  1.0  1.5  2.0
> var <- seq(-1, 2, 0.5)
> var
[1] -1.0 -0.5  0.0  0.5  1.0  1.5  2.0
> z <- seq(-1, 2, 0.5)
> z
[1] -1.0 -0.5  0.0  0.5  1.0  1.5  2.0
> z = seq(-1, 2, 0.5)
> z
[1] -1.0 -0.5  0.0  0.5  1.0  1.5  2.0


15-06-20, 11:55 p.m. sudhakarst


Thank you for the reply. But still no help. Variable doesn't seem to be working with seq command

16-06-20, 7 a.m. supritpanigrahi@rdwu.ac.in
You might want to look at the documentation of seq function once.  
16-06-20, 12:42 p.m. sudhakarst

Login to add comment


Now the problem has been resolved. Thanks
16-06-20, 1:03 p.m. supritpanigrahi@rdwu.ac.in


Log-in to answer to this question.