Learn R Programming

corporaexplorer (version 0.9.0)

transform_regular: Adjusts data frame to corporaexplorer format

Description

Adjusts data frame to corporaexplorer format

Usage

transform_regular(df, tile_length_range = c(1, 10))

Value

A tibble ("data_dok")

Arguments

df

Data frame with text column (character), Date column (Date) (if date based corpus), and optionally other columns.

tile_length_range

Numeric vector of length two. Fine-tune the tile lengths in document wall and day corpus view. Tile length is calculated by scales::rescale(nchar(dataset[[text_column]]), to = tile_length_range, from = c(0, max(.))) Default is c(1, 10).