filter_by: Filter data.frame using params passed

Description Usage Arguments Value Examples

Description

Filter data.frame using params passed

Usage

1
2
filter_by(data, title = NULL, description = NULL, keywords = NULL,
  quiet = FALSE)

Arguments

data

A data.frame that will be filtered

title

A string to match with the title column in the data.frame

description

A string to match with the description column in the data.frame

keywords

A string to match with the keywords column in the data.frame

quiet

A logical param that set if the function will print info message in console

Value

A data.frame that matches

Examples

1
2
3
4
5
library(dataesgobr)

datasets <- search_by_title('salud')
datasetsFiltered <- filter_by(datasets, 'salud', 'vacuna')
datasetsFiltered2 <- filter_by(datasets, 'salud', keywords = 'enfermedad')

dataesgobr documentation built on June 18, 2019, 5:04 p.m.