Learn R Programming

PKPDsim (version 1.4.0)

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

Description

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.

Usage

vector_to_R_code(vec)

Value

character string of length 1

Arguments

vec

a vector