R/row.names.odbcDataset.R

row.names.odbcDataset <-
function(x) {
    # returns row names of odbcDataset object
    x <- unclass(x)
    if (x$rownames) {
        name <- sqlColumns(x$channel, x$table)[[x$column.selector]][1] 
        as.character(sqlQuery(x$channel, paste("select", name, "from", x$table))[[1]])
        }
    else NULL
    }

Try the dfdb.RODBC package in your browser

Any scripts or data that you put into this service are public.

dfdb.RODBC documentation built on May 2, 2019, 5:18 p.m.