genero {genero}R Documentation

Panel component for shiny panels layout

Description

Panel component for shiny panels layout

Usage

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

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



[Package genero version 0.1.0 Index]