scidb.types_convert: scidb stream functions

Description Usage Arguments Value Author(s)

Description

This function get all script arguments, decodefies them and return a named list.

Usage

1
2
scidb.types_convert(x, expected_names = NULL, expected_types = NULL,
  err_file = NULL)

Arguments

x

Any tibble data

expected_names

A string vector of field_name containing all expected fields. If any field is missing on x data, an error is throwed and reported. If NULL, no field name is verified (Default NULL).

expected_types

A string vector of valid scidb types containing all expected fields' type. The valid types are "int32", "double", and "string". If any type is incompatible with scidb stream, an error is throwed and reported. If NULL, no type is verified (Default NULL).

err_file

A file path where the script can report any errors. If NULL, any error will be reported on stderr only (Default NULL).

Value

A new tibble with all fields corresponding those expected_names and expected_types

Author(s)

Rolf Simoes, rolf.simoes@inpe.br


rolfsimoes/scidbquery documentation built on May 29, 2019, 8:48 a.m.