get_top: Restrict to Top N Results

View source: R/get_top_fltquery.R

get_topR Documentation

Restrict to Top N Results

Description

Alters a fltquery object to only retrieve the first n rows

Usage

get_top(qry, ...)

Arguments

qry

A fltquery object generated by flt_query

n

A numeric, indicating the number of rows requested

Details

This function alters a fltquery object so that it will only return the first n records, as defined by the filtering criteria applied by filter

Value

A FltQuery object that will only return n rows when run.

Examples

## Not run: 
conn <- connect("joe.bloggs", "mypassword")
qry <- flt_query(conn, "my-ems", data_file = "metadata.db")
qry <- generate_preset_fieldtree(qry)

## End(Not run)


ge-flight-analytics/Rems documentation built on May 17, 2023, 8:02 a.m.