Learn R Programming

crunch (version 1.25.0)

listDatasets: Show the names of all Crunch datasets associated with a catalog

Description

If shiny is TRUE the function launches a shiny gadget which allows you to navigate your Crunch projects and datasets. This is useful if you can't remember a dataset's project and also saves typing long dataset names.

Usage

listDatasets(kind = c("active", "all", "archived"), project = NULL,
  refresh = FALSE, shiny = FALSE)

Arguments

kind

character specifying whether to look in active, archived, or all datasets. Default is "active", i.e. non-archived.

project

ProjectFolder entity, character name of a project, or NULL, the default. If a Project entity or reference is supplied, the function will display datasets from that Project's datasets. If NULL, the primary dataset catalog for the user will be used.

refresh

logical: should the function check the Crunch API for new datasets? Default is FALSE.

shiny

logical: launch a shiny gadget to help select the right dataset. The gadget will return a valid loadDataset() call which loads the selected dataset.

Value

Character vector of dataset names, each of which would be a valid input for loadDataset()