Skip to content

Commit 2daeaf2

Browse files
committed
add source data to mlr3data repo
1 parent 163c636 commit 2daeaf2

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

data-raw/ames_housing.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
url = "https://raw.githubusercontent.com/ja-thomas/extend_ames_housing/main/data/ames_dirty.csv"
2-
ames_housing = data.table::fread(url, stringsAsFactors = TRUE)
1+
requireNamespace("rprojroot")
2+
requireNamespace("data.table")
3+
root = rprojroot::find_package_root_file()
4+
5+
ames_housing = data.table::fread(file.path(root, "data-raw", "ames_housing.csv.bz2"), stringsAsFactors = TRUE)
36
usethis::use_data(ames_housing, overwrite = TRUE, compress = "xz")

data-raw/ames_housing.csv.bz2

119 KB
Binary file not shown.

data-raw/energy_usage.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
url = "https://raw.githubusercontent.com/ja-thomas/extend_ames_housing/main/data/energy_usage.csv"
2-
energy_usage = data.table::fread(url, stringsAsFactors = TRUE)
1+
requireNamespace("rprojroot")
2+
requireNamespace("data.table")
3+
root = rprojroot::find_package_root_file()
4+
5+
energy_usage = data.table::fread(file.path(root, "data-raw", "energy_usage.csv.bz2"), stringsAsFactors = TRUE)
36
usethis::use_data(energy_usage, overwrite = TRUE, compress = "xz")

data-raw/energy_usage.csv.bz2

1.71 MB
Binary file not shown.

0 commit comments

Comments
 (0)