3. Programming - R Language Flashcards
R functions - access help file
?rnorm
R functions - search help files
help.search(“rnorm”)
R functions - get arguments
args(“rnorm”
R functions - see the code
type the function name without brackets
What is the first element in a vector?
In R each variable begins in the element 1.
What does the operator “:”
This operator creates a sequence of integers
What are the R object classes?
Character Numeric (real number) Integer Complex Logical (true/false)
What restriction does Vector object has?
Can only contain objets of the same class
What is the exception for vector objects?
List vector can have different type of objects.
What does the c( ) function?
Concatenate itens
How many brackets does list vectors has?
Two
What are matrices?
Matrices are vetors with the dimension attribute: columns and rows.
How to create a matrix?
var
What types of missin values exist?
NA
NaN
Qual a função gera gráfico do timo ramo-e-folha
stem(var)