filterpaste: filterpaste

Description Usage Arguments Details Value

View source: R/filterpaste.R

Description

Creates the paste argument to be passed to the OData service

Usage

1
filterpaste(punct = "&", names, values)

Arguments

punct

The punctuation that should begin the filter arugment. If filter is the first argument it should be "?" otherwise use "&".

names

A vector with the name of the fields you wish to filter on. Names should be in quotes.

values

The values for each field indicated in names. Must be in the same order as names.

Details

This is an internal helper function. It creates the filter options for the OData calls. Currently it cannot handle "or" type arugments. That is, if you want data from two parks - Park 1 or Park2 this cannot create the appropriate filter - you would have to make 2 data calls. The output of this function is then pasted to the proper url and other arguments to make the complete OData call.

Value

A text string that can be used for the fiter arguement of an OData call.


NCRN/npscv documentation built on May 7, 2019, 6 p.m.