R/data.R

#' Modified version of \code{datasets::mtcars} - version a
#'
#' A version of mtcars with some values altered and some rows/columns removed. Not for
#' informational purposes, used only to demonstrate the comparison of two slightly
#' different data frames. Since some values were altered at random, the values do
#' not necessarily reflect the true original values. The variables are as follows:
#'
#' @format A data frame with 9 rows and 9 variables:
#' \describe{
#'   \item{car}{The rowname in the corresponding \code{datasets::mtcars} row}
#'   \item{mpg}{Miles/(US) gallon}
#'   \item{cyl}{Number of cylinders}
#'   \item{disp}{Displacement (cu.in.)}
#'   \item{hp}{Gross horsepower}
#'   \item{drat}{Rear axle ratio}
#'   \item{wt}{Weight (1000 lbs)}
#'   \item{vs}{Engine (0 = V-shaped, 1 = straight)}
#'   \item{am}{Transmission (0 = automatic, 1 = manual)}
#' }
#' @source
#' Sourced from the CRAN datasets package, with modified values. Originally from
#' Henderson and Velleman (1981), Building multiple regression models interactively. \emph{Biometrics}, \strong{37}, 391–411.
"example_df_a"

#' Modified version of \code{datasets::mtcars} - version b
#'
#' A version of mtcars with some values altered and some rows/columns removed. Not for
#' informational purposes, used only to demonstrate the comparison of two slightly
#' different data frames. Since some values were altered at random, the values do
#' not necessarily reflect the true original values. The variables are as follows:
#'
#' @format A data frame with 9 rows and 9 variables:
#' \describe{
#'   \item{car}{The rowname in the corresponding \code{datasets::mtcars} row}
#'   \item{wt}{Weight (1000 lbs)}
#'   \item{mpg}{Miles/(US) gallon}
#'   \item{hp}{Gross horsepower}
#'   \item{cyl}{Number of cylinders}
#'   \item{disp}{Displacement (cu.in.)}
#'   \item{carb}{Number of carburetors}
#'   \item{drat}{Rear axle ratio}
#'   \item{vs}{Engine (0 = V-shaped, 1 = straight)}
#' }
#' @source
#' Sourced from the CRAN datasets package, with modified values. Originally from
#' Henderson and Velleman (1981), Building multiple regression models interactively. \emph{Biometrics}, \strong{37}, 391–411.
"example_df_b"

Try the versus package in your browser

Any scripts or data that you put into this service are public.

versus documentation built on May 29, 2024, 2:25 a.m.