Determine if the first element of a parse tree is identical to the c function.

Share:

Description

This provides a quick way to evaluate whether the x or y vectors have a c() wrapping. This is important for subsequent subsetting of the respective vectors. Those vectors without a c() wrapping will be wrapped by list(). Symbols are not passed to is.c() due to the subsetting of the first element of the parse-tree.

Usage

1
is.c(expr)

Arguments

expr

A parse tree generated by substitute().

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.