ez.vc: format a vector for constructing a sprintf command.

View source: R/stats.R

ez.vcR Documentation

format a vector for constructing a sprintf command.

Description

vc (c(vv)), vi (view everything print out), vv (view format vector), vx (view excel), View (built-in).

Usage

ez.vc(vec, ...)

Arguments

vec

a vector

printn

print first n and last n (useful for loooong vector). If 2n >= total length, print all. Inf=all

quote

TRUE/FALSE, whether add a quote around each element (switch for string or number). NULL = auto (F for numeric, T otherwise)

order

vector order for printing out, 'as','az','za'

Value

returns string

Examples

## Not run: 
# sprintf("c(%s)",ez.vv(vec,...)).
# ez.sprintf('model = "|model|", type = |ez.vc(type)|')
# use | to replace with brace for documentation purpose,
# because of weird error of roxygen "mismatched braces or quotes"

## End(Not run)

jerryzhujian9/zmisc documentation built on March 9, 2024, 12:49 a.m.