Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.symbols

Construction of Lists of Symbols


Description

as.symbols and syms are functions potentially useful in connection with foreach and xapply. as.symbols produces a list of symbols from a character vector, while syms returns a list of symbols from symbols given as arguments, but it can be used to construct patterns of symbols.

Usage

as.symbols(x)
syms(...,paste=FALSE,sep="")

Arguments

x

a character vector

...

character strings or (unquoted) variable names

paste

logical value; should the character strings pasted into one string?

sep

a separator string, passed to paste.

Value

A list of language symbols (results of as.symbol - not graphical symbols!).

Examples

as.symbols(letters[1:8])
  syms("a",1:3,paste=TRUE)

  sapply(syms("a",1:3,paste=TRUE),typeof)

memisc

Management of Survey Data and Presentation of Analysis Results

v0.99.27.3
GPL-2
Authors
Martin Elff (with contributions from Christopher N. Lawrence, Dave Atkins, Jason W. Morgan, Achim Zeileis)
Initial release
2020-11-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.