February 5, 2015

Introduction to Data Processing in R

The next exercises are an introduction to Processing Data in R. We Start with raw data or unorganized data.

Data Entries in R.

To read or enter Data in R, It should be consider data numerical and Data Categorical. Numerical :

   x<-rnorm(1:1000)

For Categorical Data:

  y<-c("Jan","feb","March")

Measure of the Center

THE MEAN:

    mean(x)
## [1] -0.03218396

The Median:

    median(x)
## [1] -0.0507278

Measure of Variation:

Calculating the variance

   var(x) 
## [1] 0.9869536

Calculating the Standard Deviation

     sd(x)
## [1] 0.9934554

Graphs and Plot

 plot(x)