z[.RODBC_Excel: "[" method for reading all or part of a table in a MS Excel...

Description Usage Arguments Author(s) See Also

Description

"[" method for reading all or part of a table in a MS Excel

database (referenced by 'edb'). Wrapper for

edbRead.RODBC_Excel.

Usage

1
2
## S3 method for class 'RODBC_Excel'
edb[tableName, sRow = NULL, sCol = NULL, sRowOp = c("AND", "OR")[1], formatCol = NULL, distinct = FALSE, verbose = FALSE, ...]

Arguments

edb

An object of class 'edb', such as returned by edb.

tableName

Single character string. Name of the table to read in 'edb'.

sRow

A list of named items. List of contrains/criterion to be applied

on tableName to retrieve a subset of rows. Each item in

rowC must be named after the columns on which the constrain

apply. The (vector of) value(s) of each items are the possible values

that can be retrieved. Values can be character or numeric. If NULL

(the default), all values are returned.

sCol

A vector of character strings. Names of the columns to retrieve.

sRowOp

A single character string. Operator to be used to combine multiple

constrains in sRow. Possible values are "OR" or "AND". Default value

is "AND".

formatCol

If not NULL, a named list of functions to be applied to certain columns

after the data has been extracted from the database. The name of each list

item gives the column to process, and the value of each item gives the

function that must be applied. For instance

formatCol = list("DATE"=as.Date) will apply the function

as.Date to the column "DATE".

distinct

Single logical. If TRUE, unique values in the result table will

be returned, using the SELECT DISTINCT SQL statement.

This is equivalent to applying unique to the

data.frame returned by the function, except that the action is

performed inside the database (not in R).

verbose

Single logical. If TRUE, information on what is done are output

on screen.

...

Additional parameters to be passed to dbGetQuery.

Author(s)

Julien MOEYS <Julien.Moeys@mark.slu.se>

See Also

edb, edbRead.RODBC_Excel,

edbNames.RODBC_Excel,

edbColnames.RODBC_Excel.


easyrodbcexcel documentation built on May 2, 2019, 6:12 p.m.