first.word | R Documentation |
first.word
finds the first word in an expression. A word is defined by
unlisting the elements of the expression found by the S parser and then
accepting any elements whose first character is either a letter or period.
The principal intended use is for the automatic generation of temporary
file names where it is important to exclude special characters from
the file name. For Microsoft Windows, periods in names are deleted and
only up to the first 8 characters of the word is returned.
first.word(x, i=1, expr=substitute(x))
x |
any scalar character string |
i |
word number, default value = 1. Used when the second or |
expr |
any S object of mode |
a character string
Frank E. Harrell, Jr.,
Department of Biostatistics,
Vanderbilt University,
fh@fharrell.com
Richard M. Heiberger,
Department of Statistics,
Temple University, Philadelphia, PA.
rmh@temple.edu
first.word(expr=expression(y ~ x + log(w)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.