Intro To R Flashcards
What is an algorithm
What is pseudo code
Word that is cutout is perform*
What are the different variable types
Information is stored as variables
(Cut off) Boolean*
What are vectors
A vector is a list of variables
Same data type
One dimensional
What is a matrix
Is a collection of elements of the same data type arranged into a fixed number of towns and columns
2 dimensional
What is an array
Is an object that can hold two or more than 2 dimensional data
What are data frames
2 dimensional
Rectangular
Used to store values of any data tye
What is R syntax
how do you assign a variable
using <-
e.g a <- 4
this would store 4 as a variable of a
a is the name of the variable
how do you times two variables
variable * variable
e.g a * a
how would you square root a variable
sqrt(variable name)
how would you store a concatentation under a vector
variable name <- c( )
e.g v <- c(0, 1, 2, 3, 4)
what does # mean
any text after # is ignored
is used for commenting
what is concatenation
c()(concatenate) is one of the most commonly used R functions because it is the default method for combining multiple arguments into a vector
how can you check if something is a vector
is.vector(v)