koans/on_apply_functions.R

# Apply functions

# These take a collection (list, vector etc.), apply a function to each member of the collection and return a
# new collection, the type of which depends on the apply function

x <- c(1, 2, 3, 4, 5)
y <- c("1", "2", "3")
DASpringate/Rkoans documentation built on May 6, 2019, 12:55 p.m.