select: Like dplyr::select, but allows for the first argument to be a...

Description Usage Arguments Value Examples

Description

Like dplyr::select, but allows for the first argument to be a src_vertica object for SELECT statements without FROM clauses.

Usage

1
select(.arg, ..., evalNames = FALSE, collapse = TRUE)

Arguments

.arg

dplyr tbl OR src_vertica connection object

...

table columns (i.e., as used in mutate())

evalNames

pre-evaluate the statement to get column names of result (useful for functions that return more than one column)

collapse

collapse query into subquery (DEFAULT is TRUE); FALSE is needed for certain procedures quiring that the procedure name cannot be a part of a subquery

Value

a tbl_vertica object

Examples

1
2
3
4
5
6
## Not run: 
vertica <- src_vertica("VerticaDSN")
table <- select(vertica,foo=some_fun())
table2 <- select(table,some_col_in_table)

## End(Not run)

vertica/vertica.dplyr documentation built on May 3, 2019, 6:11 p.m.