transform_regular: Adjusts data frame to corporaexplorer format

Description Usage Arguments Value

View source: R/prepare_data.R

Description

Adjusts data frame to corporaexplorer format

Usage

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

Arguments

df

Data frame with Date column (Date), Text column (character), and optionally Title (character), URL (character), and Type (character) 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), to = tile_length_range, from = c(0, max(.))) Default is c(1, 10).

Value

A tibble ("data_dok")


corporaexplorer documentation built on Nov. 13, 2020, 5:06 p.m.