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

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

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