vector_to_R_code function

Transform a vector into a string that evaluates to the same vector

Transform a vector into a string that evaluates to the same vector

Collapses a vector into a comma-separated list with strings quoted (and special characters escaped). A general purpose helper function for writing new model code.

vector_to_R_code(vec)

Arguments

  • vec: a vector

Returns

character string of length 1

  • Maintainer: Ron Keizer
  • License: MIT + file LICENSE
  • Last published: 2025-04-17