3 Flashcards

1
Q

1/0 and -1/0 in R is?

A

Infinity, -infinity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

0/0 in R is?

A

Not a number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to get two strings and put them together as one string?

A

paste(x,y,z)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you paste with each string being separated by another?

A

paste(x,y,z, sep = “string”),

xstringystringz

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Function to prompt the user for a value?

A

value <- readline(“Prompt Text”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to convert string into a numeric value?

A

as.numeric(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

If you use the readline() function, the answer of the prompt will always be?

A

A string, never a numeric value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly