Movatterモバイル変換


[0]ホーム

URL:


rdrr.io

pos.to.env: Convert Positions in the Search Path to Environments

pos.to.envR Documentation

Convert Positions in the Search Path to Environments

Description

Returns the environment at a specified position in the search path.

Usage

pos.to.env(x)

Arguments

x

an integer between1 andlength(search()), the lengthof the search path, or-1.

Details

SeveralR functions for manipulating objects in environments (such asget andls) allow specifying environmentsvia corresponding positions in the search path.pos.to.env isa convenience function for programmers which converts these positionsto corresponding environments; users will typically have no need forit. It is primitive.

-1 is interpreted as the environment the function is calledfrom.

This is a primitive function.

Examples

pos.to.env(1) # R_GlobalEnv# the next returns the base environmentpos.to.env(length(search()))

What can we improve?

R Package Documentation

Browse R Packages

We want your feedback!

Note that we can't provide technical support on individual packages. You should contact the package authors for that.

 
Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, readEmbedding Snippets.

Close

[8]ページ先頭

©2009-2026 Movatter.jp