Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
#2: Add infrastructure to host and document data.
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolepore committed Sep 21, 2018
1 parent 6273749 commit af5a3d3
Show file tree
Hide file tree
Showing 16 changed files with 66 additions and 0 deletions.
48 changes: 48 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#' Species table from from Barro Colorado Island (BCI).
#'
#' @examples
#' str(bci.spptable)
"bci.spptable"



#' Example stem-tables from Barro Colorado Island (BCI).
#'
#' @examples
#' str(bci_stem_1995)
#' str(bci_stem_2000)
#' str(bci_stem_2000)
#' @name bci_stem_year
NULL

# FIXME: bci_stem_1995 is empty
#' @rdname bci_stem_year
"bci_stem_1995"
#' @rdname bci_stem_year
"bci_stem_2000"
#' @rdname bci_stem_year
"bci_stem_2005"



#' Taxonomy for the genus ficus.
#'
#' @examples
#' str(ficus)
"ficus"



#' Information of ForestGEO sites.
#'
#' @examples
#' str(site.info)
"site.info"



#' Density of woods at ForestGEO sites.
#'
#' @examples
#' str(WSG)
"WSG"
Binary file added data-raw/WSG.rda
Binary file not shown.
Binary file added data-raw/bci.spptable.rda
Binary file not shown.
Binary file added data-raw/bci_stem_1995.rda
Binary file not shown.
Binary file added data-raw/bci_stem_2000.rda
Binary file not shown.
Binary file added data-raw/bci_stem_2005.rda
Binary file not shown.
18 changes: 18 additions & 0 deletions data-raw/data.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Load all datasets in data-raw/
paths <- fs::dir_ls(here::here("data-raw"), glob = "*.rda")
purrr::map(paths, load, envir = globalenv())

# Source: Ervan Rutishauser ([email protected]), taken form the data/
# TODO: Where raw-data came from and how you cleaned it (or clean it here)?

# Use data (compress and move each dataset to data/)
use_data(
bci.spptable,
bci_stem_1995,
bci_stem_2000,
bci_stem_2005,
ficus,
site.info,
WSG,
overwrite = TRUE
)
Binary file added data-raw/ficus.rda
Binary file not shown.
Binary file added data-raw/site.info.rda
Binary file not shown.
Binary file modified data/WSG.rda
Binary file not shown.
Binary file modified data/bci.spptable.rda
Binary file not shown.
Binary file modified data/bci_stem_1995.rda
Binary file not shown.
Binary file modified data/bci_stem_2000.rda
Binary file not shown.
Binary file modified data/bci_stem_2005.rda
Binary file not shown.
Binary file modified data/ficus.rda
Binary file not shown.
Binary file modified data/site.info.rda
Binary file not shown.

0 comments on commit af5a3d3

Please sign in to comment.