build_query: Build a query for Google BigQuery from a text string

Description Usage Arguments Value Author(s) Examples

View source: R/package_functions.R

Description

Takes a character string and concatenates some optional lines

Usage

1
build_query(query, standard = T, limit = NULL, show = F)

Arguments

query

A character string written in SQL language.

standard

Appends "#standardSQL" to the top if set to T. Default is F.

limit

Appends "LIMIT = 1000", for example, or whatever integer value limit is set to. Default is NULL and will not append anything.

show

A boolean (T, F) indicator of whether to print the query to the console for visualization.

Value

A character string.

Author(s)

Alex Hubbard (hubbard.alex@gmail.com)

Examples

1
2
query = "SELECT * FROM table"
build_query(query, standard = T, limit = 1000, show = T)

opendoor-labs/projectmap documentation built on Oct. 8, 2019, 1:58 p.m.