Description

This package provides with enhenced versions of the five major functions studied in the R introduction course of the Data Science for business graduate degree of Ecole Polytechnique

csv_reader

function that reads all the csv files in a directory and outputs them in a list of data.frame:

library(coursefunctions)

csv_reader("../data-raw")

xlsx_reader

reads alls the sheets of an ecxel document and retruns them in a list of data.frame

library(coursefunctions)

xlsx_reader("../data-raw/test.xlsx")

draw_name

draws the number of babies born with a specific name and sex in a France between 1900 and 2015

library(coursefunctions)

draw_name("Antoine", "M")

draw_multiple_name

same thing with multiple names

library(coursefunctions)

draw_multiple_name(c("Antoine", "Marie"))

Save as CSV

saves a csv after verifying the parameters

library(coursefunctions)

df <- read.csv2("../data-raw/titanic_test.csv")

save_as_csv(df, "../data-raw/titanic_test2.csv")


aredier/coursefunctions documentation built on May 28, 2019, 5:26 p.m.