SelectEntry: Select entries from a table

View source: R/tidytools.R

SelectEntryR Documentation

Select entries from a table

Description

Function to select entries from a table using either the row/column name or indices

Usage

SelectEntry(
  x,
  row,
  column = NULL,
  return.single.value = FALSE,
  use.statistic.attribute = FALSE
)

Arguments

x

Matrix or dataframe from which values will be extracted.

row

A string containing a comma seperated list of the name or indices of the rows to be selected

column

A string containing a comma seperated list of the name or indices of the column to be selected, If x is a vector or 1-dimensional array, column will be ignored.

return.single.value

Logical; If this true, the function will always return a single numeric value. If multiple cells are selected, the entries are summed. If no entries are selected a value of zero is returned.for

use.statistic.attribute

Logical; indicates whether the statistic attribute is used to represent a percentage. For legacy reasons it is off by default (i.e. 5% is returned as 0.05)


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