3 Flashcards
1
Q
1/0 and -1/0 in R is?
A
Infinity, -infinity
2
Q
0/0 in R is?
A
Not a number
3
Q
How to get two strings and put them together as one string?
A
paste(x,y,z)
4
Q
How do you paste with each string being separated by another?
A
paste(x,y,z, sep = “string”),
xstringystringz
5
Q
Function to prompt the user for a value?
A
value <- readline(“Prompt Text”)
6
Q
How to convert string into a numeric value?
A
as.numeric(x)
7
Q
If you use the readline() function, the answer of the prompt will always be?
A
A string, never a numeric value.