

Now of course, that is not the mean but the sum of the 10 values, to find the mean we need to divide by 10. You should see the following: To calculate a mean, first add all of the numbers together Hint, you can copy and paste it the above line! After pasting it, hit enter. Let’s start out by calculating the mean of 10 numbers the “long” way or formula based way in R.Īfter the greater than symbol ( > ) in the Console type the following: 8.22 + 6.00 + -5.11 + 1.81 + 2.92 + -6.29 + 8.57 + 1.18 + -4.80 + 9.81 If you have a different version than someone else it is possible that your results may be different than the other person, but that is generally not the case with basic functions, the focus of this blog post. The version this post is based on is “Kite-Eating Tree” aka version 3.4.3. R likes to name their versions interesting names.

The first thing you should notice in the Console is the version of R you are running. I am going to structure the blog post assuming that you are following along and running the commands in RStudio as we go.Īfter installing RStudio and launching the application you should see something that looks like this: RStudio window with panes annotated in blue marking the three standard panes It is a much nicer calculator than a hand held calculator as it can provide help and feedback to make sure you are running the correct commands.
Charmstone rstudio analysis how to#
Now that you have R and RStudio installed, I will show you how to use the software by first starting with the basics of just using RStudio as a fancy calculator.
