Learn R Programming

k5 (version 0.2.1)

last_value: Return the last value

Description

A function shortcut for accessing .Last.value.

Usage

last_value(x = .Last.value)

Value

The same .Last.value as before viewing, invisibly.

Arguments

x

The object to return, usually left as base::.Last.value.

Details

The value of the internal evaluation of a top-level R expression is always assigned to .Last.value (in package:base) before further processing (e.g., printing).