Learn R Programming

dataesgobr (version 1.0.0)

filter_by: Filter data.frame using params passed

Description

Filter data.frame using params passed

Usage

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

Run this code
# NOT RUN {
library(dataesgobr)
# }
# NOT RUN {
datasets <- search_by_title('salud')
datasetsFiltered <- filter_by(datasets, 'salud', 'vacuna')
datasetsFiltered2 <- filter_by(datasets, 'salud', keywords = 'enfermedad')
# }

Run the code above in your browser using DataLab