formulate_build_literal_query: Build literal query

Description Usage Arguments Value Examples

View source: R/modules.R

Description

Code to build a query for sciDB call from the given vector input. formulate_build_literal_query is a function that can be used to create an input query for the AFL

Usage

1
2
formulate_build_literal_query(vec, value_name = "value_id",
  index_name = "idx")

Arguments

vec

a vector

value_name

(optional) a name for the value to be given in the query string, by default it is value_id

index_name

(optional) a default name for the index parameter in the scidb query , by default it is idx

Value

a string to use as the input query for scidb

Examples

1
2
3
4
5
formulate_build_literal_query(c(1,2,3,4))
[1] "build(<value_id:int64>[idx=0:3], '[1,2,3,4]', true)"

formulate_build_literal_query(c(1:5,8:10))
[1] "build(<value_id:int64>[idx=0:7], '[1,2,3,4,5,8,9,10]', true)"

Paradigm4/scidbhelper documentation built on Oct. 30, 2019, 9:37 p.m.