Intro to Basics Flashcards

1
Q

What are the most common data types in R?

A

Numerics: decimal values (4.2, 1, 12.01, 10)

Integers: whole numbers (12, 2000, 45)

Logicals: boolean values (TRUE, FALSE)

Characters: text or string values (“Hello World”, “some text.”)

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

Is R case sensitive?

A

Yes

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

Which function checks the data type of a variable in R?

A

class()

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