Skip to contents

This class provides methods to identify the upper-left and lower-right cells of a numeric block within a dataframe.

Public fields

data

A dataframe containing the input data.

upper_left_cell

A list containing the row and column indices of the upper-left cell.

Initialize a NumericBlockFinder object

Methods


Method new()

Usage

Arguments

data

A dataframe containing the input data.

Returns

A new instance of the NumericBlockFinder class.

Find the upper-left cell of the first 6x6 block of numeric values

This method identifies the upper-left cell of the first 6x6 block of numeric values in the dataframe.


Method find_upper_left_cell()

Usage

NumericBlockFinder$find_upper_left_cell()

Returns

A list containing the row and column indices of the upper-left cell.

Find the lower-right cell of a block of contiguous non-NA values

This method identifies the lower-right cell of a block of contiguous non-NA values starting from a given upper-left cell in the dataframe.


Method find_lower_right_cell()

Usage

NumericBlockFinder$find_lower_right_cell()

Returns

A list containing the row and column indices of the lower-right cell.


Method clone()

The objects of this class are cloneable with this method.

Usage

NumericBlockFinder$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.