Quick sample from a table
peek_sample.RdRetrieves a random sample of rows from a table using SQL's SAMPLE clause. More efficient than ROWNUM for exploring large tables.
Examples
if (FALSE) { # \dontrun{
con <- create_connection()
sample_data <- peek_sample(con, table = "LLDS_HDR_20240315HAC", percent = 0.5)
safe_disconnect(con)
} # }