paste joins with a space. paste0 joins with nothing. sprintf fills a template.
Goal
Print a kiosk line for Nairobi.
print(paste("Kiosk in", "Nairobi"))
print(paste0("Nairobi", ",", 12))cities <- c("Nairobi", "Mombasa", "Kisumu")
print(paste(cities, collapse = " / "))print(sprintf("%s sold %d units", "Nakuru", 4))
print(sprintf("%d x %d = %d", 12, 40, 12 * 40))print(paste(c("Eldoret", "Kisumu"), c("highland", "lakeside"), sep = " — "))