Which one of the following can be considered as an Atomic Vector?
Which one of the following can be considered as an Atomic Vector?
Select an option to attempt
Correct Answer: Option A
Explanation
Atomic vector in R programming:In R, an atomic vector is the most basic data structure — a sequence of elements ALL of the SAME data type:• Numeric (double): e.g., heights, grades, prices• Integer: e.g., counts, ranks• Character: e.g., names, gene IDs• Logical (boolean): TRUE/FALSE values• Complex: complex numbersExamples from the options:• 'Your marks in all subjects': a set of NUMERIC values (e.g., 85, 90, 78, 92) → a NUMERIC ATOMIC VECTOR. ✔• 'Your name': a SINGLE character value (length-1 character vector)• 'Your thoughts': not a data type at all• 'Your friends and their birthdays': a MIXED-type collection (names=character, dates) → better represented as a LIST, not an atomic vector.Answer: 'Your marks in all subjects' = numeric atomic vector in R.