R Flashcards
R language is used for?
data analysis and Statistical Computing
it is especially relevant for data science professionals due to its data cleaning, importing, and visualization capabilities.
R
You can use R to create
graphics and charts
What are the 2 reasons why this language is called R
- R is the first letter in the inventors’ names
- R is a play on the name of its parent language S,
Who developed S language
Bell Telephone Laboratories.
When does R language created
early 1990s
Who created R language?
Ross Ihaka and Robert Gentleman.
Ihaka and Gentleman are both statistics professors in what university?
New Zealand university
How to print/output a text
Use single or double quotes.
Print/output Numbers
Just type the number (without quotes)
Print/output simple calculations’
just type the equation without = sign
Can you output a code without using a print function?
YES
When do you need to use the print()
when your code is inside an expression or inside curly brace { }
What should we use to create a comment in R language
#
Does R language have a command for declaring a variable?
It does not have
<- is use for?
it is use to assign value to a variable
TRUE or FALSE:
To print the variable value, just type the variable name.
TRUE
When you are working with loops, what can you use to print a variable?
print ( ) / print function
it is use to concatenate or join two or more elements
paste ( ) / paste function
In R, we can use this to combine both text and variable
comma ( , )
It can also use to add a variable to another variable
comma ( , )
can you combine a string (text) and a number?
No
TRUE OR FALSE:
You can’t assign the same value to multiple variables in one line.
FALSE
How do we assign the same value to multiple variables?
variable 1 <- variable 2 <- variable 3 <- “Hello world”