Operators to extract or replace subsets of ic data objects.

# S3 method for ic.df
[(x, i, j, ..., drop = FALSE)

Arguments

x

Object of class ic.df from which to extract element(s) or in which to replace element(s).

i, j, ...

Indices specifying the elements to extract or replace. Numeric or character vector or empty (missing) or NULL.

drop

Can core ic attribute columns be modified? Default is FALSE.

Value

For [ an ic.df data frame. For [[ or $, a column of the ic data frame. For [<-, [[<-, and $<-, a modified ic data frame.

Details

The use of [.ic.df will generally follow the behaviour of data.frame; however, when drop = FALSE the core 'ic' attributes will always be preserved and will always return an object of class ic.df.

See also

ic_data