istacbase_search: Search information about data available through ISTACBASE API

Description Usage Arguments Value Examples

View source: R/istacbase_search.R

Description

This funcion allows finds those tables that match the search term and returns a data frame with results

Usage

1
2
istacbase_search(pattern, fields = "titulo", extra = TRUE,
  exact = FALSE, cache)

Arguments

pattern

Character string or regular expression to be matched.

fields

Character vector of column name through which to search.

extra

if FALSE, only the namecode and title are returned, if TRUE, all columns of the cache are returned.

exact

Search for the exact pattern.

cache

Data frame with metadata about API and ISTAC information.

Value

Data frame with metadata that match the search term.

Examples

1
2
3
4
5
6
7
8
9
istacbase_search(pattern = "superficie")
istacbase_search(pattern = "superficie", extra = TRUE)

istacbase_search(pattern = "medio ambiente", fields = "tema")
istacbase_search(pattern = "medio ambiente", fields = "tema", extra = TRUE)

# with regular expression operators
# 'islote' OR 'roque'
istacbase_search(pattern = "islote|roque")

rOpenSpain/istacbaser documentation built on June 4, 2020, 5:07 p.m.