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 use Cohort Analysis in Google Analytics
What is a cohort? And why do you want to analyze them?
Google Analytics defines a cohort as a group of people who share a...
CSS vs. CSS3: What is the difference between CSS and CSS3
The first thing you need to know is that CSS3 is the latest standard for CSS. And, CSS3 is backwards-compatible with earlier versions of...
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...
R Studio: How to replace row header names with your names
Check out the solution to this problem on the new data science solutions site I created Stathole.com.
Error: Cannot change working directory in R Studio
I had initially set it to be setwd(“Users/myname/datascience”)
make sure you have the initial / so it is this:
setwd("/Users/charliecraine/datascience")
another method is that under the Files...