diff --git a/DESCRIPTION b/DESCRIPTION index d878c384..e6a8b0a2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -31,7 +31,8 @@ Suggests: recipes (>= 0.1.4), broom, xml2, - covr + covr, + modeldata URL: https://rsample.tidymodels.org, https://github.com/tidymodels/rsample BugReports: https://github.com/tidymodels/rsample/issues License: GPL-2 diff --git a/NEWS.md b/NEWS.md index c2fb9999..0dc6efeb 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,10 @@ * Lower threshold for pooling strata to 10% (from 15%) (#149). +* The `print()` methods for `rsplit` and `val_split` objects were adjusted to show `"<Analysis/Assess/Total>"` and `<Training/Validation/Total>`, respectively. + +* The `drinks`, `attrition`, and `two_class_dat` data sets were removed. They are in the `modeldata` package. + * Compatability with `dplyr` 1.0.0. # `rsample` 0.0.6 diff --git a/R/data.R b/R/data.R index 3ded6c6b..9d31816b 100644 --- a/R/data.R +++ b/R/data.R @@ -9,18 +9,9 @@ #' fictional data set created by IBM data scientists.}. There #' are 1470 rows. #' -#' @name attrition -#' @aliases attrition -#' @docType data -#' @return \item{attrition}{a data frame} -#' -#' @source The IBM Watson Analytics Lab website https://www.ibm.com/communities/analytics/watson-analytics-blog/hr-employee-attrition/ +#' These data are now in the `modeldata` package. #' -#' -#' @keywords datasets -#' @examples -#' data(attrition) -#' str(attrition) +#' @name attrition NULL @@ -29,15 +20,9 @@ NULL #' @details There are artifical data with two predictors (`A` and `B`) and #' a factor outcome variable (`Class`). #' +#' These data are now in the `modeldata` package. +#' #' @name two_class_dat -#' @aliases two_class_dat -#' @docType data -#' @return \item{two_class_dat}{a data frame} -#' -#' @keywords datasets -#' @examples -#' data(two_class_dat) -#' str(two_class_dat) NULL #' Sample Time Series Data @@ -46,15 +31,6 @@ NULL #' "Merchant Wholesalers, Except Manufacturers' Sales Branches and Offices #' Sales: Nondurable Goods: Beer, Wine, and Distilled Alcoholic Beverages Sales" #' +#' These data are now in the `modeldata` package. #' @name drinks -#' @aliases drinks -#' @docType data -#' @return \item{drinks}{a data frame} -#' -#' @source The Federal Reserve Bank of St. Louis website https://fred.stlouisfed.org/series/S4248SM144NCEN -#' -#' @keywords datasets -#' @examples -#' data(drinks) -#' str(drinks) NULL diff --git a/data/attrition.RData b/data/attrition.RData deleted file mode 100644 index afe57b72..00000000 Binary files a/data/attrition.RData and /dev/null differ diff --git a/data/datalist b/data/datalist deleted file mode 100644 index cae255d8..00000000 --- a/data/datalist +++ /dev/null @@ -1,3 +0,0 @@ -attrition: attrition -two_class_dat: two_class_dat -drinks: drinks diff --git a/data/drinks.rda b/data/drinks.rda deleted file mode 100644 index 99a699cd..00000000 Binary files a/data/drinks.rda and /dev/null differ diff --git a/data/two_class_dat.RData b/data/two_class_dat.RData deleted file mode 100644 index 36ac0380..00000000 Binary files a/data/two_class_dat.RData and /dev/null differ