BIOL 134 | 48 QUESTIONS AND CORRECT DETAILED
ANSWERS (VERIFIED SOLUTIONS) | GRADED A+ | NEW
UPDATE 2025-2026
A vector can only contain... - ANSWERS objects of the same class
class is synonymous to - ANSWERS data type
class ( ) function - ANSWERS determines each object's data type
vector structure can be viewed in - ANSWERS the environment window
>num_char <-c(1,2,3,'a') class - ANSWERS character
num_logical <-c (1,2,3,TRUE,FALSE) class - ANSWERS number
tricky <-c(1,2,3,'4') - ANSWERS character
char_logical <-c('a', 'b', 'c', TRUE) - ANSWERS character
num_int <-c(5L, 2L, 3L, 5, 6, 8) - ANSWERS number
c() function - ANSWERS creates vectors
, length () function - ANSWERS determines how many elements are in a vector
in R, the equivalent of a spreadsheet is a - ANSWERS data.frame
if you enter object <- '42' what is the data type assigned to the object? -
ANSWERS character- treats 42 as a word- not a number- will be unable to use
it in calculations
In R, an object classified as a vector (list or factor) is equivalent to what part of a
spreadsheet? - ANSWERS row or column of data on the spreadsheet
if you want to calculate the mean of a vector, which command is added to ignore
missing data? - ANSWERS na.rm = TRUE
Which command would calculate the Standard Error of the mean for the vector
odds? (SEM is the SD/ the sqrt of the sample size) - ANSWERS sd(odds) / sqrt
(length(odds))
what is the correct syntax to enter missing data into a vector? - ANSWERS ex:
test_scores <- c(78, 85, NA, 92)
give an example of categorical data - ANSWERS ex: sport
study of size and scaling in biology - ANSWERS allometry
ANSWERS (VERIFIED SOLUTIONS) | GRADED A+ | NEW
UPDATE 2025-2026
A vector can only contain... - ANSWERS objects of the same class
class is synonymous to - ANSWERS data type
class ( ) function - ANSWERS determines each object's data type
vector structure can be viewed in - ANSWERS the environment window
>num_char <-c(1,2,3,'a') class - ANSWERS character
num_logical <-c (1,2,3,TRUE,FALSE) class - ANSWERS number
tricky <-c(1,2,3,'4') - ANSWERS character
char_logical <-c('a', 'b', 'c', TRUE) - ANSWERS character
num_int <-c(5L, 2L, 3L, 5, 6, 8) - ANSWERS number
c() function - ANSWERS creates vectors
, length () function - ANSWERS determines how many elements are in a vector
in R, the equivalent of a spreadsheet is a - ANSWERS data.frame
if you enter object <- '42' what is the data type assigned to the object? -
ANSWERS character- treats 42 as a word- not a number- will be unable to use
it in calculations
In R, an object classified as a vector (list or factor) is equivalent to what part of a
spreadsheet? - ANSWERS row or column of data on the spreadsheet
if you want to calculate the mean of a vector, which command is added to ignore
missing data? - ANSWERS na.rm = TRUE
Which command would calculate the Standard Error of the mean for the vector
odds? (SEM is the SD/ the sqrt of the sample size) - ANSWERS sd(odds) / sqrt
(length(odds))
what is the correct syntax to enter missing data into a vector? - ANSWERS ex:
test_scores <- c(78, 85, NA, 92)
give an example of categorical data - ANSWERS ex: sport
study of size and scaling in biology - ANSWERS allometry