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.”)
2
Q
Is R case sensitive?
A
Yes
3
Q
Which function checks the data type of a variable in R?
A
class()