Learn R Programming

LaF (version 0.8.4)

[[,laf-method: Select a column from a LaF object

Description

Selecting columns from an laf object works as it does for a data.frame.

Usage

# S4 method for laf
[[(x, i)

# S4 method for laf $(x, name)

Arguments

x

an object of type laf

i

index of column to select. This should be a numeric or character vector.

name

the name of the column to select.

Value

Returns an object of type laf_column. This object behaves almost the same as an laf object except that is it no longer necessary (or possible) to specify which column should be used for functions that require this.