Learn R Programming

polAr (version 0.2.0.1)

get_names: Obtiene nombres de listas (Get party names)

Description

Funci<U+00F3>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

get_names(data)

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).

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").

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).

Examples

Run this code
# NOT RUN {
 
 tucuman_dip_gral_2017
 
 tucuman_dip_gral_2017 %>% 
     get_names()
   
# }

Run the code above in your browser using DataLab