extract_a_cluster: Extract a cluster from df using the keyword

Description Usage Arguments

View source: R/shapetools.R

Description

This function is the substancial function of unclusterize.

Usage

1
2
3
4
5
6
7
8
9
extract_a_cluster(
  pos_key,
  find_from,
  direction,
  df,
  offset = c(0, 0),
  ends,
  info = NULL
)

Arguments

pos_key

Position where the regex of unclusterize matched the keyword

find_from

The row or column position which excract_cluster() search key

direction

The direction to which data clusters distribute

df

Data frame to be processed

offset

The offset (c(row, pos)) of the cluster topleft from the coordination of keyword

ends

List of regex to locate row- and column- ends of each cluster Form should be like ends = list(row = "2019", col = "[Dd]ecember$"). Regex row = must specify the end of 'left most' columnn of df, not that of the column with key matched by regex

info

Parameters to make key:value list such as

key_offset

Offset c(row, col) of key topleft from df topleft. If NULL, automatically set to keyn

key_dim

Dimension c(row, col) of key

value_offset

Offset c(row, col) of value topleft from df topleft

value_dim

Dimension c(row, col) of value


kikirinrin/lucifer documentation built on Nov. 10, 2021, 9:37 p.m.