explore_cefas_data: Explore CEFAS data sources availabe from CEFAS API

Description Usage Details Value Examples

Description

The function returns all recordset names matching a user-provided keyword

Usage

1
explore_cefas_data(list_sources, keyword)

Details

explore_cefas_data takes two arguments. The first one list_sources is a list of names to look into. In the context of the CEFAS API this will typically be the "Name" columns of the data returned by the function get_cefas_datasets(). The second argument keyword is a keyword provided by the user. The inputed keyword is not case sensitive.

Value

the indices of the data set rows matching the provided keyword.

Examples

1
2
mydata <- get_cefas_datasets()
mydata[explore_cefas_data(list_sources = mydata$list_data_sets$Name, keyword = "Plankton"), ]

MarineEcosystemResearchProgramme/merpWS documentation built on May 7, 2019, 2:51 p.m.