User Tools

Site Tools


r

This is an old revision of the document!


Table of Contents

CoursInformatique

Installation

R

sudo aptitude install r-base

RStudio

sudo aptitude install libjpeg62

Télécharger RStudio Desktop pour Debian sur http://www.rstudio.com/products/rstudio/download/

sudo dpkg -i rstudio-0.98.1062-i386.deb

Basics

Packages:

  • needs to be installed once
  • needs to be loaded each session
library(package)

Tips:

  • ctrl+return = run the selected code

Structures:

  • vectors
    • character
    • numeric
    • logic
  • matrices
    • combine vectors of same type and same length
  • data frames
    • no conditions on type and same length
  • lists
    • no conditions on type nor length

Things that can be done with R (seen at the flamescourse)

  • import datasets
  • create functions
  • tables (needed for charts)
  • plotting graphics
    • bar chart, pie chart
    • boxplots
    • qq-plots
  • descriptive statistics
    • categorical data
    • continuous data
      • central tendencies: mean, median, mode, min, max
      • variance
  • statistical inference
    • categorical data
      • chi², Fisher, binomial, prop.test
    • continous data
      • t-test (one and two sample), Wilcoxon, regression

Assign value = or <-, differences : in a function

  • = : local
  • <- : global ?

N.B. : the comparator is '=='

r.1485937492.txt.gz · Last modified: 2017/02/01 09:24 by carl