R length example

By ganpati | R Programming

Jan 13

15length_img

length function example in R

What it does?
It returns the count of elements in a vector
Syntax:
length (vector1)
Example:
x<- c(1,3,5,7,9)

length(x)

[1] 5

About the Author

Leave a Comment:

Leave a Comment: