Beruflich Dokumente
Kultur Dokumente
class(x)
z <- 1+2i
class(z)
class (y)
a <- 1; b <- 2
c <- a>b
class(c)
name <-
c("ane","john","zar","faye","nik","angel","joy","Ai","yon","debs","arjay","fin","kate","treb","boy")
height <-c(175,172,152,150,151,161,163,144.78,168,167.64,158,165,170,168,165.1)
barplot(sex.freq,col=colors.bar)
barplot(residence.freq,col=colors.bar.res)
pie(sex.freq,col=colors.pie.sex)
pie(residence.freq,col=colors.pie.residence)
hist(age,right=FALSE)#histogram of age
hist(age,
right=FALSE,
hist(height,right=FALSE)#histogram of height
colors.hist <- c("blue","red","green","violet","pink","yellow","gray")
hist(height,
right=FALSE,
hist(weight,
right=FALSE,
hist(GPA.Last.Sem,
right=FALSE,
hist(Weekly.Allowance,
right=FALSE,
boxplot(height,
horizontal=TRUE,
col=color.box)
boxplot(weight,
horizontal=TRUE,
col=color.box)
boxplot(age,
horizontal=TRUE,
col=color.box)
boxplot(GPA.Last.Sem,
horizontal=TRUE,
col=color.box)
stem(Weekly.Allowance) #steam and leaf plot
boxplot(Weekly.Allowance,
horizontal=TRUE,
col=color.box)
max(age)-min(age)#range of age
summary(age)
max(weight)-min(weight)#range of weight
summary(weight)
max(height)-min(height)#range of height
summary(height)
max(Weekly.Allowance)-min(Weekly.Allowance)#range of Weekly.Allowance
summary(Weekly.Allowance)
max(GPA.Last.Sem)-min(GPA.Last.Sem)#range of GPA.Last.Sem
summary(GPA.Last.Sem)