How the R works?

Mateusz Liziniewicz

16 februari 2016

R language

The first step?

That is it!


That is it!

Now you can use a basic functions included in R

Visualistaion?

What are the basics functions in R?

data.frame(Pkgs = sessionInfo()$basePkgs)
##        Pkgs
## 1     stats
## 2  graphics
## 3 grDevices
## 4     utils
## 5  datasets
## 6   methods
## 7      base

What do the basic functions include?

How to find the help at once?

#for whole packages
?base

#for single functions
?data.frame

Is that all?

> no it is not

Visualistaion

Sources of packages

  1. R packages on CRAN
  2. R packages on GIT

Exercise 1

How to add aditional packages?

From CRANE

install.packages("babynames")

#the package is installed but we can not use it yet

library(babynames)

Exercise 2

How to add aditional packages?

From GIT

#call the library devtools (developer tools)
library(devtools)

#install github package
install_github("mateusz1981\sverfor")
library(sverfor)
?`sverfor-package`\
#this is very poor package

Visualistaion

The end!!!

Now we are ready to start!!!!!

Questions?