R/as.list.motusMap.R

#' get the key values of a map table in a database
#'
#' @param map object of class "motusMap"
#'
#' @return character vector; all keys in the map
#'
#' @export

names.motusMap = function(map) {
    return (dbGetQuery(attr(map, "con"), sprintf("select key from %s", attr(map, "name")))[[1]])
}

    
        
jbrzusto/motus-R-package documentation built on May 18, 2019, 7:03 p.m.