Toni Rosati R-Journal

GEOG 5023: Quantitative Methods In Geography

This is an R Markdown document. Markdown is a simple formatting syntax for authoring web pages (click the MD toolbar button for help on Markdown).

When you click the Knit HTML button a web page will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

summary(cars)
##      speed           dist    
##  Min.   : 4.0   Min.   :  2  
##  1st Qu.:12.0   1st Qu.: 26  
##  Median :15.0   Median : 36  
##  Mean   :15.4   Mean   : 43  
##  3rd Qu.:19.0   3rd Qu.: 56  
##  Max.   :25.0   Max.   :120

Chunks are important. Without them, my journal will look like junk!

You can also embed plots, for example:

plot(cars)

plot of chunk unnamed-chunk-2

Your R-Journal should be a list of function or techniques that you've used to complete labs and in class assignments. It will be useful to include worked examples in code. I have inserted an entry for a simple function (mean()).

Once you get the hand of markdown you should delete this line and all preceeding text.

mean(someData):

This function computes the mean of a R object. It computes:

\[ \bar{x} = \frac{\sum_{i=1}^N x_i}{N} \]

The equation above is an example of latex math, a widely use, and convient way to write equations. I'm not looking forward to LaTeX math.

An example of using the function mean():

## Create a small dataset to demonstrate the use of mean()
someData <- c(1, 3, 5, 7, 9)

## Compute the mean of the object someData
mean(someData)
## [1] 5

hash tags are cool…