as_name

0th

Percentile

Coerce an object to a name or call.

These are a S3 generics with built-in methods for names, calls, formuals, and strings. The distinction between a name and a call is particularly important when coercing from a string. Coercing to a call will parse the string, coercing to a name will create a (potentially) non-syntactic name.

Usage
as_name(x)
as_call(x)
Arguments
x
An object to coerce
Aliases
  • as_name
  • as_call
Examples
as_name("x + y")
as_call("x + y")

as_call(~ f)
as_name(~ f())
Documentation reproduced from package rlang, version 0.0.0.9000, License: GPL-3

Community examples

Looks like there are no examples yet.