get_table_sample: Take a sample of rows from a table in a database

Description Usage Arguments Examples

View source: R/exploratory_functions.R

Description

This function returns a data.frame corresponding to rows in a database table that have been (somewhat) randomly sampled.

Usage

1
get_table_sample(conn, table_name, samp_num)

Arguments

conn:

ODBC database connection handle

table_name:

character vector indicating the name of the table to be sampled from

samp_num:

integer indicating the number of rows to sample

Examples

1
get_table_sample(conn, 'jerrys_table', 15) # for sampling 15 rows from jerrys_table

zbeaver4/beavR documentation built on May 4, 2019, 9:12 p.m.