Complete the code to create a vector with numbers 1, 2, and 3.
vec <- [1](1, 2, 3)
The c() function combines values into a vector.
Complete the code to create a character vector with elements "apple", "banana", and "cherry".
fruits <- [1]("apple", "banana", "cherry")
The c() function creates a vector of characters here.
Fix the error in the code to create a numeric vector with 4, 5, and 6.
numbers <- [1](4, 5, 6)
The c() function correctly creates a numeric vector.
Fill both blanks to create a vector of logical values TRUE and FALSE.
logical_vec <- [1](TRUE, [2])
The c() function combines logical values TRUE and FALSE into a vector.
Fill all three blanks to create a vector with elements 10, 20, and 30.
vec <- [1]([2], [3], 30)
The c() function combines the numbers 10, 20, and 30 into a vector.
