ez.vv: format a vector for easy manual copy/processing.

View source: R/stats.R

ez.vvR Documentation

format a vector for easy manual copy/processing.

Description

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

Usage

ez.vv(vec, printn = Inf, order = "as", quote = NULL, print2scr = FALSE)

Arguments

vec

a vector

printn

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

order

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

quote

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

Value

returns the printout.
By default in R when you type a variable name, you get [1] "rs171440fwd" "rs1800497fwd"
now with this function you get 'rs171440fwd','rs1800497fwd','rs180043'

See Also

ez.print ez.pprint


jerryzhujian9/ezmisc documentation built on March 9, 2024, 12:44 a.m.