diff --git a/DESCRIPTION b/DESCRIPTION index e4b476023c775830373a2a7d15537684404e8bd0..3654c6263f2fac1a6b8faf23188fd6dc7c0477d6 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,11 +1,11 @@ Package: sozoekdsexam Title: Datapackage for the exam to the Course "Datascience for Socioeconomists" at University of Hamburg, Department of Socioeconomics -Version: 0.0.0.1 +Version: 0.0.0.2 Authors@R: person("Lisa Marie", "Wegner", , "lisamarie.wegner@uni-hamburg.de", role = c("aut", "cre"), comment=c(ORCID=0009-0004-2234-3052)) Description: Package includes data sets that are known from our course. There are additional data sets that will be used within the exam. What's new? Adult_Income is a new dataset that uses census data from the usa and includes information about socio-demographics and income of adults. - The examscores dataset that is already known was cleaned. + The examscores dataset has been cleaned and saved as examscores2. All other data sets are the same as in the prior package sozoekds. License: CC BY 4.0 Encoding: UTF-8 diff --git a/R/examscores2.R b/R/examscores2.R new file mode 100644 index 0000000000000000000000000000000000000000..38084197241627e877019a5ad6f28ac58cc9df82 --- /dev/null +++ b/R/examscores2.R @@ -0,0 +1,23 @@ + +#' This data set includes scores from three tests of students at a (fictional) public school and a variety of personal and socio-economic factors that may have interaction effects upon them. +#' +#' +#' @format A dataframe, 19243 observations, 15 variables +#' \describe{ +#' \item{\code{Gender}}{Gender of a student (factor)} +#' \item{\code{EthnicGroup}}{Origin of a student (factor)} +#' \item{\code{ParentEduc}}{Parents education (factor)} +#' \item{\code{LunchType}}{Type of lunch (factor)} +#' \item{\code{TestPrep}}{Preparation for a test (factor)} +#' \item{\code{ParentMaritalStatus}}{Parental marital status (factor)} +#' \item{\code{PracticeSport}}{Practice sports (factor)} +#' \item{\code{IsFirstChild}}{Firstborn (factor)} +#' \item{\code{NrSiblings}}{Number of siblings (integer)} +#' \item{\code{TransportMeans}}{Means of transport to school (factor)} +#' \item{\code{WklyStudyHours}}{Number of study hours per week (factor)} +#' \item{\code{MathScore}}{Score in math (integer)} +#' \item{\code{ReadingScore}}{Score in reading (integer)} +#' \item{\code{WritingScore}}{Score in writing (integer)} +#'} + +"examscores2" diff --git a/README.md b/README.md index d2a9d213e293719155aa0b7f90311bbfd5105864..6ccfc1afcbc858aeb52102e7001f07c5f311410b 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ Package for the exam of the course "Data Science for Socioeconomists" at the dep - *examscores* includes information about educational data and models a fictional school and its students +- *examscores2* is an updated version of *examscores*. It includes information about educational data and models a fictional school and its students + - *income_data* includes information about people's age and their income - it models a fictional population ## Installation diff --git a/data-raw/examscores2.Rdata b/data-raw/examscores2.Rdata new file mode 100644 index 0000000000000000000000000000000000000000..1dfbb9315179e621dfd69771d289638595aaac37 Binary files /dev/null and b/data-raw/examscores2.Rdata differ diff --git a/data-raw/examscores2_load.R b/data-raw/examscores2_load.R new file mode 100644 index 0000000000000000000000000000000000000000..7094798925129a982b289749ecde6784d97b5d8a --- /dev/null +++ b/data-raw/examscores2_load.R @@ -0,0 +1,11 @@ + +## code to prepare `examscores2` dataset goes here + +library(devtools) +library(roxygen2) +library(dplyr) + +examscores2 <- examscores +usethis::use_data(examscores2, overwrite = TRUE) + + diff --git a/data/examscores2.rda b/data/examscores2.rda new file mode 100644 index 0000000000000000000000000000000000000000..171445a66177b45855bc0b6ee036a900c71788d0 Binary files /dev/null and b/data/examscores2.rda differ diff --git a/man/examscores2.Rd b/man/examscores2.Rd new file mode 100644 index 0000000000000000000000000000000000000000..e2814e6b60f449476381af36154404dceececfdb --- /dev/null +++ b/man/examscores2.Rd @@ -0,0 +1,32 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/examscores2.R +\docType{data} +\name{examscores2} +\alias{examscores2} +\title{This data set includes scores from three tests of students at a (fictional) public school and a variety of personal and socio-economic factors that may have interaction effects upon them.} +\format{ +A dataframe, 19243 observations, 15 variables +\describe{ +\item{\code{Gender}}{Gender of a student (factor)} +\item{\code{EthnicGroup}}{Origin of a student (factor)} +\item{\code{ParentEduc}}{Parents education (factor)} +\item{\code{LunchType}}{Type of lunch (factor)} +\item{\code{TestPrep}}{Preparation for a test (factor)} +\item{\code{ParentMaritalStatus}}{Parental marital status (factor)} +\item{\code{PracticeSport}}{Practice sports (factor)} +\item{\code{IsFirstChild}}{Firstborn (factor)} +\item{\code{NrSiblings}}{Number of siblings (integer)} +\item{\code{TransportMeans}}{Means of transport to school (factor)} +\item{\code{WklyStudyHours}}{Number of study hours per week (factor)} +\item{\code{MathScore}}{Score in math (integer)} +\item{\code{ReadingScore}}{Score in reading (integer)} +\item{\code{WritingScore}}{Score in writing (integer)} +} +} +\usage{ +examscores2 +} +\description{ +This data set includes scores from three tests of students at a (fictional) public school and a variety of personal and socio-economic factors that may have interaction effects upon them. +} +\keyword{datasets}