ID EN
Miscellaneous

bquote

R Base 3.6.2 🇮🇩 Bahasa Indonesia

Analog dari makro backquote LISP. bquote mengutip argumennya kecuali istilah yang dibungkus dengan .() dievaluasi dalam lingkungan tempat yang ditentukan.

Syntax

R
bquote(expr, where = parent.frame())

Arguments

Parameter Deskripsi
expr A language object.
where An environment.

Return Value

Sebuah objek bahasa.

Contoh

Example
R
# NOT RUN {
require(graphics)

a <- 2

bquote(a == a)
quote(a == a)

bquote(a == .(a))
substitute(a == A, list(A = a))

plot(1:10, a*(1:10), main = bquote(a == .(a)))

## to set a function default arg
default <- 1
bquote( function(x, y = .(default)) x+y )
# }

See Also

quote substitute