tocsv: Convert a vector x into a comma separated character(1).

Description Usage Arguments Value Author(s) See Also

Description

Useful for pasting a list of entries in to a batch search engine. You can change comma separator by changing the value of sep. toscsv is read as to-semicolon-separated-values.

Usage

1
2
3
tocsv(x, na.replace = NA, sep = ", ")

toscsv(x, na.replace = "")

Arguments

x

a vector

na.replace

replace all NA's with a value, such as “”. default=NA, ie don't replace NA's which results in a text string of “..., NA, ...”

sep

the character to join the values with

Value

a character(1) with each element of x joined together using sep

Author(s)

Mark Cowley, 15 May 2006

See Also

dump dput


drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.