You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't cycle through the positions. Just cycle through the items.
Typos courtesy of my iPhone
On 17 Oct 2017, at 20:18, Emeline Favreau <[email protected]<mailto:[email protected]>> wrote:
It is an example in Nested loop paragraph:
coffee_drinks <- c("latte", "cappuccino", "espresso", "flat white", "cortado")
coffee_places <- c("Infusion", "Ground", "Sugar Cube", "Foxcroft & Ginger", "Sweet")
for (the_drink in 1:length(coffee_drinks)) {
for (the_place in 1:length(coffee_places)) {
print(paste("I'd like a", coffee_drinks[the_drink], "from", coffee_places[the_place]))
}
}
Does it represent what we wanted?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#26>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAJKYT5qSiNuTIyqX5QzfjwjH8tceoDAks5stP1tgaJpZM4P8rqo>.
It is an example in Nested loop paragraph:
Does it represent what we wanted?
The text was updated successfully, but these errors were encountered: