CHAPTER ONE: DATA MANAGEMENT

in this chapter we will cover a number of function , commands and packages used for data management in R

there are six different data types in R

including:

victors

vectors and fundamental components for all data types in R. based on the scale of measurement m they can be categorized into six different components including:

  1. character
  2. ordered 3 Factors
  3. integers
  4. Numeric
  5. logical

Example 1

x<-c(12,11.5,12.5,13.5,21,23,24,21,25,26)

plot(density(x))

hist(x)

boxplot(x)

Example 2

y<-c(T,T,T,T,F,F,F,F,T,F)
table(y)
## y
## FALSE  TRUE 
##     5     5
barplot(y)