Blog

By Chris Campbell - Senior Consultant, UK.

One of the most important objects in R are functions. Functions are a type of object that perform most of the actions we make in R. A quick refresher on objects.

> # We can create objects and view objects
>
> i <- 1
> n <- 5
> n
[1] 5
> i
[1] 1
>
> # We...

Continue reading...

By Chris Campbell - Senior Consultant, UK.

R is a classy language. Look:

x <- matrix(1:9, nrow = 3)
x
##      [,1] [,2] [,3]
## [1,]    1    4    7
## [2,]    2    5    8
## [3,]    3    6    9
class(x)
## [1] "matrix"

A class is a label that identifies what an object is. How it's struct...

Continue reading...

By Jian Li – Consultant, Shanghai.

Geographical data is becoming increasingly important in understanding how we can predict and influence our impact on the world. Data on the location of individuals (be they migrating animals, humans stuck in traffic, or a plane as it travels around the world) is...

Continue reading...

By Chris Campbell - Senior Consultant, UK.

For many types of data, we have made a measurement of some variable that looks normally distributed. The middle value is the most likely, most values are similar to the middle value, and a few values may be larger or smaller.

> uwt <- Theoph$Wt[!duplica...

Continue reading...

By Jian Li – Consultant, Shanghai.

Geographical data is becoming increasingly important in understanding how we can predict and influence our impact on the world. Data on the location of individuals (be they migrating animals, humans stuck in traffic, or a plane as it travels around the world) is...

Continue reading...