Skip to content

Commit

Permalink
add source data to mlr3data repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mllg committed Jun 29, 2023
1 parent 163c636 commit 2daeaf2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions data-raw/ames_housing.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
url = "https://raw.githubusercontent.com/ja-thomas/extend_ames_housing/main/data/ames_dirty.csv"
ames_housing = data.table::fread(url, stringsAsFactors = TRUE)
requireNamespace("rprojroot")
requireNamespace("data.table")
root = rprojroot::find_package_root_file()

ames_housing = data.table::fread(file.path(root, "data-raw", "ames_housing.csv.bz2"), stringsAsFactors = TRUE)
usethis::use_data(ames_housing, overwrite = TRUE, compress = "xz")
Binary file added data-raw/ames_housing.csv.bz2
Binary file not shown.
7 changes: 5 additions & 2 deletions data-raw/energy_usage.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
url = "https://raw.githubusercontent.com/ja-thomas/extend_ames_housing/main/data/energy_usage.csv"
energy_usage = data.table::fread(url, stringsAsFactors = TRUE)
requireNamespace("rprojroot")
requireNamespace("data.table")
root = rprojroot::find_package_root_file()

energy_usage = data.table::fread(file.path(root, "data-raw", "energy_usage.csv.bz2"), stringsAsFactors = TRUE)
usethis::use_data(energy_usage, overwrite = TRUE, compress = "xz")
Binary file added data-raw/energy_usage.csv.bz2
Binary file not shown.

0 comments on commit 2daeaf2

Please sign in to comment.