7 CloudStat: Sequence Function, seq() (R Language Tutorial) from what is the len function in excel Watch Video
Preview(s):
Gallery
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)
Description: Welcome to CloudStat. Today tutorial is about sequence function, seq(). nTo output from 1 to 10, commonly we will usenc(1,2,3,4,5,6,7,8,9,10)nor 1:10nAnd, we can use sequence function, seq()nIn this case, we type seq(from=1, to=10, by=1)nor seq(1,10,1)nWe can observe thatn# a:b is same as seq(from=a,to=b,by=1) or seq(a,b,1)nnWhat if we wanted only the odd numbers?nWe can use c(1,3,5,7,9) or yes we can use seq() funtion, seq(1,10,2)nnSequence function is very useful when we want to output many nu
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)