R Prophram Flashcards
They are two types of vectors?
Atomic, and list
What is a vector?
A group of elements that are the same type.
What are the six primary vectors ?
Logical
Intergel
Double
Characters
Complex
Raw
Double and Intriguers are knows as ?
Numeric vectors
Logical and character vector are knows as?
Atomic
What is the C function in R called?
Combine function
How to create a numeric vector?
C(adds numbers follow by comas )
How to create a intriguer
C( number and an L separate by comma)
Characters vectors?
C( “Liz”, “anna”, “david”)
For logical vector ?
C( true, false, true)
Every vector has two keys properties?
Type and length
To know the type of vector?
Typeof()
Typeof function exp
Typeof(c( “a”,”b”,”c”))
How to determine the length of a vector?
Length()
How to add a variable and know the length example.
X< c(33.5,57,45)
Length(x)
3