genero: Panel component for shiny panels layout

Description Usage Arguments Value Examples

View source: R/genero.R

Description

Panel component for shiny panels layout

Usage

1
2
3
4
5
6
7
8
genero(
  names,
  result_as = c(male = "male", female = "female"),
  lang = "es",
  col = NULL,
  na = NA,
  rev_weights = FALSE
)

Arguments

names

A vector or data.frame with names or full names

result_as

A named vector with names c("male", "female") values can be used to override the results

lang

Use "es" for Spanish (default), "pt" for Portuguese.

col

The name of the column with the names or full names when the input is a data frame.

na

String to be used when there is not match for gender

rev_weights

Boolean to indicate if weights should be reversed when input names have the format Last Name First Name

Value

A vector of data frame with the estimated gender for the input. When the input is data.frame a column is attached next to the column used for the input names with the result.

Examples

1
genero(c("Juan", "Pablo", "Camila", "Mariana"))

genero documentation built on March 13, 2020, 2:49 a.m.