r combine strings

# Step 1: Create a vector of strings
strings <- c("Hello", "world", "in", "R")

# Step 2: Use the paste() function to combine strings with a space between them
combined_string <- paste(strings, collapse = " ")

# Step 3: Print the combined string
print(combined_string)