span_set: Prepare window-span vector for collocates

Description Usage Arguments Value Examples

View source: R/corplingr_span_set.R

Description

Utility internal-function for constructing window-span vector in the collocate function.

Usage

1
span_set(window = "character", span = "integer")

Arguments

window

window-span direction of the collocates: "r" ('right of the node'), "l" ('left of the node'), or the DEFAULT is "b" ('both left and right context-window').

span

integer vector indicating the span of the collocate scope.

Value

Named integer vectors of window-span. The name attributes refer to the window position of the vector (e.g. "l2", "l1", "node", "r1", "r2").

Examples

1
span <- span_set(window = "b", span = 3)

gederajeg/corplingr documentation built on Dec. 20, 2021, 9:50 a.m.