Get Kelp forest community data.

kelp(dataset = "benthic_cover", path = "~/.ots/kelp", overwrite = TRUE)


kelp_metadata(name = NULL, path = "~/.ots/kelp")



A dataset code name, see kelp_datasets


A path to store the files, Default: ~/.ots/kelp


(logical) To overwrite the path to store files in or not, Default: TRUE.


Metadata table name


After one download o the dataset, you won't have to download the data again.

The kelp function is to get datasets, e.g., benthic cover data. The output of each call to kelp includes the data, and both the headers and variables metadata tables for that dataset. In addition, the citation to the data is included. See examples below for how to index to each of those.

The kelp_datasets function simply lists the datasets available. You can pass the code to kelp.

The kelp_metadata function is to both list the metadata tables available, and to retrieve those metadata tables, including: sites, data_updates, metadata_updates, history, and species.



if (FALSE) { # list of datasets kelp_datasets() # read in various metadata files ## list metadata tables kelp_metadata() ## get a table head( kelp_metadata("sites") ) head( kelp_metadata("data_updates") ) head( kelp_metadata("metadata_updates") ) head( kelp_metadata("history") ) head( kelp_metadata("species") ) # get data (res <- kelp("benthic_cover")) head(res$headers) head(res$vars) res$citation (res <- kelp("benthic_density")) (res <- kelp("fish_density")) (res <- kelp("fish_size")) (res <- kelp("invert_size")) head(res$headers) (res <- kelp("subtidal")) (res <- kelp("rdfc")) (res <- kelp("kelp_size")) (res <- kelp("kelp_supp_dens")) (res <- kelp("art_recruit")) }