GetNonEmptyElements: Get Names of Empty Entries From a Table Or Vector

View source: R/hideemptyrowsandcolumns.R

GetNonEmptyElementsR Documentation

Get Names of Empty Entries From a Table Or Vector

Description

Searches for empty rows or columns in a table and returns a copy with those entries removed

Usage

GetNonEmptyElements(x, use.names = TRUE, is.percent = NULL)

Arguments

x

matrix; vector; or list

use.names

logical; if TRUE, the nams of the non-empty entries are returned; otherwise, the numeric positions of the non-empty elements are returned

is.percent

logical; indicating whether the supplied data are percentages; specifying a value of NULL (the default) means that the function will check for an attribute of x called "statistic" to check for percentages

Value

a vector containing the non-empty indices


Displayr/flipTables documentation built on Feb. 26, 2024, 12:45 a.m.