contar_letras: Remove de da e dos of names .

Description Usage Arguments Value Examples

View source: R/contador_letras.R

Description

contar_letras return number of any letters on alphabet for each column.

Usage

1
contar_letras(base, columns, suffix = NULL)

Arguments

base

A data table, data frame or character vector.

columns

for apply the function

suffix

Suffix name for the new column.

Value

a data.table number of any letters on alphabet for each column

Examples

1
2
   base <- data.frame(nome = c("João das Neves", "Pedro dos Anjos", "Maria das Gracas"))
   base <- contar_letras(base, "nome")

utilsIPEA documentation built on April 21, 2018, 1:04 a.m.