How to use the str function in R
What is str? Str is a compact way to display the structure of an R object.
This allows you to use str as a...
Learn how to use lapply in R
The lapply function in R applies a function to elements in a list or a vector and returns the results in a list.
lapply(list,...
How to use the Apply function in R
Previously we showed you how to write a loop in R. Very often it's a better idea to use the apply function in R...
How to program a For Loop in R
Just apply! What does that even mean? Well, some R programmers will tell you to use the apply function (lapply or sapply) to loop....
R Programming: Example of how to write a function in R
What is a function? A function allows you to create a program that has a set of instructions that you use repeatedly or contains...
How to learn R programming
If you've wanted to learn R programming but didn't know where to start there is a great R packaged called Swirl that teaches you...