encode_char_cols: Set character encoding in tibble or data.frame

Description Usage Arguments Value Examples

View source: R/encode_char_cols.R

Description

Given an encoding, this sets all character columns to it.

Usage

1
encode_char_cols(.data, .encoding)

Arguments

.data

A data.frame or tibble.

.encoding

A string specifying an encoding..

Value

The original data, with character columns set to given encoding.

Examples

1
2
3
4
5
## Not run: 
data <- data %>%
  encode_char_cols("latin1")

## End(Not run)

MarkMc1089/profanityfilter documentation built on Feb. 5, 2022, 8:12 a.m.