transform_regular: Adjusts data frame to corporaexplorer format

View source: R/prepare_data.R

transform_regularR Documentation

Adjusts data frame to corporaexplorer format

Description

Adjusts data frame to corporaexplorer format

Usage

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

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

Value

A tibble ("data_dok")


corporaexplorer documentation built on Sept. 11, 2024, 7:21 p.m.