get_names: Obtiene nombres de listas (_Get party names_)

Description Usage Arguments Details Value Examples

View source: R/get_names.R

Description

Función que agrega el nombre de las listas o partidos como columna a un tibble obtenido con get_election_data(long = TRUE) (Function that adds party labels as a column to a tibble obtained with get_election_data(long = TRUE)).

Usage

1

Arguments

data

un tibble descargado con get_election_data(long = TRUE) guardado como objeto en el Enviroment (A get_election_data(long = TRUE) tibble saved as an object in the Enviroment).

Details

El formato de data debe ser long para poder obtener nombres de listas con get_names. Si data es wide se puede transformar con make_long (long format of data is required to get party labels with get_names. If data is in wide format you can transform it with make_long).

Value

Devuelve el data set original con una columna extra con la identifiacion de las listas o partidos politicos. Como el objeto de entrada, este es class "tbl_df","tbl","data.frame" (it retruns the original data set with a binded column with political parties names. As the original input the object is of class "tbl_df","tbl","data.frame").

Examples

1
2
3
4
5
6

polAr documentation built on Feb. 22, 2021, 5:07 p.m.