Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Please do the programming work based on the guideline.

1 answer below »
Please do the programming work based on the guideline.
Answered Same Day Aug 11, 2021

Solution

Naveen answered on Aug 12 2021
136 Votes
#installing packages
install.packages("janitor")
install.packages("lu
idate")
install.packages("plyr")
#calling packages
li
ary(janitor)
li
ary(lu
idate)
li
ary(plyr)
## set the working directory where the data file is located using Ctrl+Shift+H
## reading data file
data <- read.table("assignment1.txt", sep="\t", header=T)
##Checking the dimension
dim(data)
# The dimension is co
ect as given in data file
##Excluding the missing values
data_surveyed<-data[!is.na(data$satis_survey),]
##Printing the frequenct table contains counts and percentages of each survey
tabyl(data_surveyed$satis_survey, sort = TRUE)
##changing survey_date column into date format
data_surveyed$survey_date<-as.Date(data_surveyed$survey_date,format = "%m/%d/%Y")
##Adding month column for our use
data_surveyed$Month<-month(data_surveyed$survey_date,label =...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here