Complete the code to create a numeric variable with value 10.
num <- [1]The number 10 is assigned directly as a numeric value without quotes.
Complete the code to check if variable x is numeric.
is.numeric([1])Use the variable name without quotes to check its type.
Fix the error in the code to convert a string to numeric.
num <- as.numeric([1])
Use a string "10" to convert it to numeric with as.numeric().
Fill both blanks to create a numeric vector and check its type.
vec <- c([1], [2]) is.numeric(vec)
Use numeric values 5 and 10 without quotes to create a numeric vector.
Fill all three blanks to create a numeric vector, convert a string to numeric, and check types.
vec <- c([1], [2]) num <- as.numeric([3]) is.numeric(vec) && is.numeric(num)
Use numeric values 3 and 3 for the vector, convert string "7" to numeric.
