Run »
adj <- list("red", "big", "tasty") fruits <- list("apple", "banana", "cherry") for (x in adj) { for (y in fruits) { print(paste(x, y)) } }
[1] "red apple"
[1] "red banana"
[1] "red cherry"
[1] "big apple"
[1] "big banana"
[1] "big cherry"
[1] "tasty apple"
[1] "tasty banana"
[1] "tasty cherry"