Please do the programming work based on the guideline.

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

Answer To: Please do the programming work based on the guideline.

Naveen answered on Aug 12 2021
135 Votes
#installing packages
install.packages("janitor")
install.packages("lubridate")
install.packages("
plyr")
#calling packages
library(janitor)
library(lubridate)
library(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 correct 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