The ________ data type in R is used to store decimal values.
- Character
- Integer
- Logical
- Numeric
Numeric is the data type in R that is used to store decimal values. In contrast, integers are used to store whole numbers, characters are used for text, and logical types are for TRUE/FALSE (boolean) values.
Loading...
Related Quiz
- Can a data frame in R contain columns of different data types?
- A while loop in R continues to execute as long as the ________ is true.
- A for loop in R iterates over a ________ or a list of values.
- If a variable with the same name exists in both the local and global environment in R, the ______ variable will be used.
- In R, the ________ data type is used to store categorical data.