get_run_data: Collect (large amounts of) data for a given combination of...

Description Usage Arguments Value See Also Examples

View source: R/get_run_data.R

Description

Data is stored heavily within ScrapeBot. Hence, filtering needs to be applied to collect data. Two types of filter are possible:

Usage

1
2
3
4
5
6
7
get_run_data(
  connection,
  run_uid = NULL,
  instance_uid = NULL,
  recipe_uid = NULL,
  step_uid = NULL
)

Arguments

connection

A connection object, as retrieved from connect_scrapebot().

run_uid

Optional numeric UID or a vector of numeric UIDs of a specific run to collect data from. If NULL, either instance_uid or recipe_uid (or both) has to be provided. Defaults to NULL.

instance_uid

Optional numeric UID or a vector of numeric UIDs of the instance to filter data for. If NULL, either run_uid or recipe_uid (or both) has to be provided. Defaults to NULL.

recipe_uid

Optional numeric UID or a vector of numeric UIDs of the recipe to filter data for. If NULL, either instance_uid or run_uid (or both) has to be provided. Defaults to NULL.

step_uid

Optional numeric UID or a vector of numeric UIDs of a step to filter data for. Defaults to NULL.

Value

A tibble listing all data including their creation timestamp, the UIDs of its run, instance, recipe, and step, as well as the data value itself.

See Also

get_runs(), get_run_log()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

connection <- connect('my_db on localhost')
get_run_data(connection, instance_uid = 42)
get_run_data(connection, run_uid = 256)
get_run_data(connection, recipe_uid = 21)
get_run_data(connection, run_uid = c(256, 1024))
get_run_data(connection, recipe_uid = 21:23)
get_run_data(connection, instance_uid = 42, recipe_uid = 21)
get_run_data(connection, instance_uid = 42, recipe_uid = 21, step_uid = 8)
disconnect(connection)

## End(Not run)

MarHai/ScrapeBotR documentation built on March 10, 2021, 10:10 a.m.