.
Start from Week2_Part1.R script, change it according to your selected datset from Quiz2.
Then submit to this link:
1. Your modified script.
2. A screenshot report showing the outputs from your rstudio after executing all activities.
Dataset : https://github.com/jzadeh/aktaion2/tree/master/data
Week2_part1.R:
# comments start with #
# to quit q()
# two steps to install any library
#install.packages(“rattle”)
#library(rattle)
setwd(“C:/Users/ialsmadi/Desktop/University_of_Cumberlands/Lectures/Week2/RScripts”)
getwd()
x <- 3 # x is a vector of length 1
print(x)
v1 <- c(2,4,6,8,10)
print(v1)
print(v1[3])
v <- c(1:10) #creates a vector of 10 elements numbered 1 through 10. More complicated data
print(v)
print(v[6])
# Import test data
test<-read.csv(“yearly_sales.csv”)
test1<-read.csv(“yearly_sales.csv”, sep=”,”)
test2<-read.table(“yearly_sales.csv”, sep=”,”)
write.csv(test2, file=”out.csv”)
# Write CSV in R
write.table(test1, file = “out1.csv”,row.names=TRUE, na=””,col.names=TRUE, sep=”,”)
head(test)
tail(test)
summary(test)
head <- head(test)
tail <- tail(test)
cor(test$sales_total, test$num_of_orders)
sd(test$sales_total)
var(test$sales_total)
plot(test$sales_total)
hist(test$sales_total)
str(test$sales_total)
quit()
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more