dryad_list_csv: Read files stored in dryad or find their download URLs.

Description Usage Arguments Value Examples

Description

Read files stored in dryad or find their download URLs.

Usage

1
2
3
4
5
dryad_list_csv(doi, regexp = "[.]csv$", invert = FALSE,
  ignore.case = TRUE)

dryad_select_url(dryad_url, regexp = NULL, invert = FALSE,
  ignore.case = TRUE)

Arguments

doi

A character string giving a valid dryad doi, such as "'10.5061/dryad.6nc8c'".

regexp

A regular expression (e.g. [.]csv$) passed on to grep() to filter paths.

invert

If TRUE return files which do not match

ignore.case

if FALSE, the pattern matching is case sensitive and if TRUE, case is ignored during matching.

dryad_url

A character string. The output of rdryad::dryad_files().

Value

When run interactively, both functions ask you to select files.

Examples

1
2
3
4
5
6
7
8
9
scbi_functional_ecology_2015 <- '10.5061/dryad.6nc8c'

# Help find a relevant url
dryad_select_url(
  rdryad::dryad_files(scbi_functional_ecology_2015)
)

# Shortcut to download and read multiple .csv files at once
dryad_list_csv(scbi_functional_ecology_2015)

forestgeo/fgeo.scbi documentation built on May 31, 2019, 10:02 a.m.