vectorToBlob: Converts a numeric, integer or character vector (multiple...

View source: R/dbAccess.R

vectorToBlobR Documentation

Converts a numeric, integer or character vector (multiple elements) to a sort of raw vector. (actually a string representation of a raw vector). Note: also compresses data if required.

Description

Converts a numeric, integer or character vector (multiple elements) to a sort of raw vector. (actually a string representation of a raw vector). Note: also compresses data if required.

Usage

vectorToBlob(
  dataVector = NA,
  collapseChar = ";",
  formatNumbers = FALSE,
  type = "gzip",
  ...
)

Arguments

dataVector

the data to be converted: integer, numeric or character. Other data types have not been tested

collapseChar

the character to be used as seperator in the end result. Note: this seperator should not be present in the dataVector (especially after transformation) as it will give problems when using the DBToVector function.

formatNumbers

boolean specifying whether the dataVector should be formatted using the base::format function

type

character string, the type of compression. See ?memCompress for details

...

further arguments to be passed onto to base::format, see ?base::format for more information. Ignored when formatNumbers == FALSE

Value

a character vector


BenBruyneel/BBPersonalR documentation built on Aug. 23, 2024, 8:28 p.m.