pplr_browse: Browse the metadata of projects contained in the popler...

Description Usage Arguments Value Examples

View source: R/browse.R

Description

pplr_browse() reports the metadata of LTER studies contained in the popler database. The user can subset what data, and which variables to visualize.

Usage

1
2
pplr_browse(..., full_tbl = FALSE, vars = NULL, view = FALSE,
  keyword = NULL, report = FALSE)

Arguments

...

A logical expression to subset popler's main table

full_tbl

Should the function return the standard columns, or the full main table?

vars

A vector of characters: which variables of popler's main table should be selected?

view

If TRUE, opens up a spreadsheet-style data viewer.

keyword

A string that selects

report

If TRUE, function produces a markdown report about each study's metadata, and opens it as a html page.

Value

A data frame combining the metadata of each project and the taxonomic units associated with each project.

This data frame is of class popler, data.frame, tbl_df, and tbl.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
# No arguments return the standard 16 columns of popler's main table
default_vars = pplr_browse()

# full_tbl = TRUE returns the full table
all_vars = pplr_browse(full_tbl = TRUE)

# subset only data from the sevilleta LTER, and open the relative report in a html page
sev_data = pplr_browse(lterid == "SEV", report = TRUE)

# consider only plant data sets 
plant_data = pplr_browse(kingdom == "Plantae")

# Select only the data you need
three_columns = pplr_browse(vars = c("title","proj_metadata_key","genus","species"))

# Select only the data you need
study_21 = pplr_browse( proj_metadata_key == 25)

# Select studies that contain word "parasite"
parasite_studies = pplr_browse( keyword = "parasite")

## End(Not run)

AldoCompagnoni/popler documentation built on Oct. 1, 2018, 3:12 p.m.