R/code_sql_sample.R

Defines functions code_sql_sample

Documented in code_sql_sample

#' Sample
#'
#' SQL Code to get a filtered sample of records
#' @keywords database, state, location
#' @param table indicates the table where the records are located
#' @param filter optional filter to limit the records sampled
#' @export
#' @examples
#

code_sql_sample <- function(table, filter = NULL){

  sql <- code_sql_select(table_or_sql = table,
                         select.cols = "*",
                         filters = filter)

  sql

}
MattjCamp/Coder documentation built on April 28, 2023, 4:53 p.m.