This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#From https://stackoverflow.com/questions/1401904/painless-way-to-install-a-new-version-of-r | |
# Run in the old version of R (or via RStudio) | |
setwd("C:/Temp/") | |
packages <- installed.packages()[,"Package"] | |
save(packages, file="Rpackages") | |
# INSTALL NEW R VERSION | |
if(!require(installr)) { install.packages("installr"); require(installr)} #load / install+load installr | |
# See here for more on installr: https://www.r-statistics.com/2013/03/updating-r-from-r-on-windows-using-the-installr-package/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start_date = "2018/12/5" | |
end_date = "2019/7/27" | |
data.frame(start = seq.Date(from = floor_date(as.Date("2018/12/3"), "month"), | |
to = floor_date(as.Date("2019/7/26"), "month"), | |
by = "month") | |
) | |
# Here are the results!! | |
# start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open_file = open("AppleStore.csv") | |
from csv import reader | |
read_file = reader(open_file) | |
apps_dataset = list(read_file) | |
rating_sum = 0 | |
for each_row in apps_dataset[1: ]: | |
rating = float(each_row[7]) | |
rating_sum += rating |