To measure the dispersion of the given data in R programming.
#Measure of Dispersion
#Read File
print(getwd())
setwd(“/home/sof#Measure of Dispersion
#Read File
print(getwd())
setwd(“/home/soft13″)
print(getwd())
data<-read.csv(‘input.csv’)
print(data)
print(is.data.frame(data))
#Range
range(data$salary)
#Variance
var(data$salary)
#Standard Deviation
sd(data$salat13”)
print(getwd())
data<-read.csv(‘input.csv’)
print(data)
print(is.data.frame(data))
#Range
range(data$salary)
#Variance
var(data$salary)
#Standard Deviation
sd(data$salary)