R/dataacq.R

#' @title alcons function
#'
#' @description The "alcons" function is an easy way to visualize the dataset
#'
#' The function doesn't need an argument.
#' The output shows a graph built using the "ggplot2 package".
#'
#' @author Anna Errichiello <anna.errichiello@studenti.unimi.it>
#'
#' @export
#'
#'
#'
#'
#'
#'
#'
#'

alcons <- read.csv("https://raw.githubusercontent.com/fivethirtyeight/data/master/alcohol-consumption/drinks.csv", sep=",")
head(alcons)
dir.create("data")
save(alcons, file=file.path("data","alcons.rda"))
unimi-dse/be4dd3dd documentation built on Feb. 17, 2020, 5:02 a.m.