pull: Pull data object from stack frame (head) which matches...

Description Usage Arguments Value Examples

View source: R/stack.R

Description

Pull data object from stack frame (head) which matches specified parameters.

Usage

1
2
3
4
5
6
7
8
pull(
  stack,
  profile = "default",
  filename = NULL,
  error = .error,
  params = NULL,
  ...
)

Arguments

stack

Stack you want to pull from.

profile

Profile to use. 'default' will be used if profile is not specified.

filename

Filename if you want to save downloaded file to disk. Lifespan of URL is limited by minutes, so filename is highly recommended for large files (> 5Mb), especially in the case of interactive computations. Specify the parameter in the case of non-text data.

error

HTTP error handling function.

params

Optional parameters to match.

...

Parameters to match. Can be used as alternative to params. In the case of both are present this one will be merged into params.

Value

If filename is not NULL then it will be filename itself, otherwise it can be URL in the case of large files.

Examples

1
2
df <- read.csv(pull("/public_datasets/fusionbase/covid19-germany", "Bundesland name"="All"))
summary(df)

dstack documentation built on Aug. 12, 2020, 5:08 p.m.