extract_apa_results_table: Extract Parts of an APA Results Table

$.apa_results_tableR Documentation

Extract Parts of an APA Results Table

Description

These methods are only defined for backward compatibility with older versions of papaja. In the past, the column names ofapa_results_tables were less standardized than they are today. In order to maintain backwards compatibility, it is still possible to extract columns with the old columns names, because we here provide aliased indexing. Note that aliased indexing will be defunct in a future release of papaja.

Usage

## S3 method for class 'apa_results_table'
x$name

## S3 method for class 'apa_results_table'
x[[i, exact = TRUE]]

## S3 method for class 'apa_results_table'
x[i, j, ..., drop = TRUE]

Arguments

x

Object from which to extract element(s).

name

A literal character string or a name (possibly backtick quoted). For extraction, this is normally (see under ‘Environments’) partially matched to the names of the object.

i, j, ...

Indices specifying elements to extract. See base::Extract() for details.

exact

Controls possible partial matching of [[ when extracting by a character vector (for most objects, but see under ‘Environments’). The default is no partial matching. Value NA allows partial matching but issues a warning when it occurs. Value FALSE allows partial matching without any warning.

drop

For matrices and arrays. If TRUE the result is coerced to the lowest possible dimension (see the examples). This only works for extracting elements, not for the replacement. See drop for further details.

Value

A (vector of) character values as extracted from an object of class apa_results_table.


papaja documentation built on Sept. 29, 2023, 9:07 a.m.