Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
R maintains the
letters
vector, so no need to write out entire alphabet.The function
tolower
is vectorized, so no need to call sapply (a hidden loop):tolower(unlist(strsplit(s, split="")))
.R's
letters
only contains 26 elements, so no need to reassign to another object.R maintains a
LETTERS
vector, so no need to write out alphabet.R maintains a
letters
vector, so need to write out entire alphabet.