as.ref {ref}R Documentation

coercing to reference

Description

This function RETURNs a reference to its argument.

Usage

as.ref(obj)

Arguments

obj an object existing in the current environment/frame

Value

an object of class "ref"

Author(s)

Jens Oehlschlägel

See Also

ref, deref

Examples

  v <- 1
  r <- as.ref(v)
  r
  deref(r)

[Package ref version 0.95 Index]