Description Usage Arguments Details Value Examples
View source: R/subset.td.data.frame.R
Return subsets of teradata data frames which meet conditions.
1 2 |
x |
td data frame to be subset. |
subset |
logical expression indicating rows to keep. |
select |
expression, indicating columns to select from a teradata data frame. |
drop |
passed on to [ indexing operator. |
... |
Allow other commands to be sent to plot. |
This is a generic function, with methods supplied for teradata data frames.
The subset argument works on the rows. Note that subset will be evaluated in the teradata data frame, so columns can be referred to (by name) as variables in the expression (see the examples).
It works by first replacing column names in the selection expression with the corresponding column numbers in the teradata data frame and then using the resulting integer vector to index the columns. This allows the use of the standard indexing conventions so that for example ranges of columns can be specified easily, or single columns can be dropped (see the examples).
An object similar to x but which adds the subset condtion which is used when accessing the real Teradata table.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.