Welcome to CloudStat. Today tutorial is about sequence function, seq().
To output from 1 to 10, commonly we will use
or 1:10
And, we can use sequence function, seq()
In this case, we type seq(from=1, to=10, by=1)
or seq(1,10,1)
We can observe that
# a:b is same as seq(from=a,to=b,by=1) or seq(a,b,1)

What if we wanted only the odd numbers?
We can use c(1,3,5,7,9) or yes we can use seq() funtion, seq(1,10,2)

Sequence function is very useful when we want to output many numbers with different pola.
For example seq(-100,100,10)
We're outputing from -100 to 100 by 10.

Next, we want to find equal points.
We want to find 10 equal points from 1 to 10.
We use seq(1,10,len=10)
To see the different, we type one more,
This command is getting 4 equal points instead of ten from 1 to 10.
Hope you enjoy this tutorial. Have a nice day.

CloudStat is a platform to learn and do R on the Cloud. With CloudStat, there is no more download, installation, update and maintenance. CloudStat decreases the R language learning curve besides collaboration. And it's Free! Demo @ cloudst.at

CloudStat是一个云端统计平台,可以在线上做R统计与学习。没有下载,安装,更新和维护的需要。 CloudStat降低R语言的学习曲线,除了有协作功能,还是是免费的!演示@ cloudst.at

Loading more stuff…

Hmm…it looks like things are taking a while to load. Try again?

Loading videos…