Learn R Programming

utilsIPEA (version 0.0.6)

contar_letras: Remove de da e dos of names .

Description

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

Usage

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

Run this code
# NOT RUN {
   base <- data.frame(nome = c("Jo<U+00E3>o das Neves", "Pedro dos Anjos", "Maria das Gracas"))
   base <- contar_letras(base, "nome")
# }

Run the code above in your browser using DataLab