create vector in r

# Step 1: Create a numeric vector with predefined values
numeric_vector <- c(1, 2, 3, 4, 5)

# Step 2: Display the created numeric vector
print("Numeric Vector:")
print(numeric_vector)

# Step 3: Create a character vector with predefined values
character_vector <- c("apple", "banana", "orange", "grape", "kiwi")

# Step 4: Display the created character vector
print("Character Vector:")
print(character_vector)

# Step 5: Create a logical vector with predefined values
logical_vector <- c(TRUE, FALSE, TRUE, FALSE, TRUE)

# Step 6: Display the created logical vector
print("Logical Vector:")
print(logical_vector)