开发者

R: getting "inside" environments

开发者 https://www.devze.com 2022-12-26 11:57 出处:网络
Given an environment object e: > e <environment: 0x10f0a6e98> > class(e) [1] \"environment\" How do you access the variables inside the environment?

Given an environment object e:

> e
<environment: 0x10f0a6e98>
> class(e)
[1] "environment"

How do you access the variables inside the environment?

Just in case you're curious, I have found myself with this environment object. I didn't make it, a package in Bioconductor made it. You can make it, too, using these commands:

library('GEOquery')
eset <- getGEO("GSE4142")[[1]]
e <开发者_StackOverflow中文版;- assayData(eset)


ls(e) gives you names of objects in the environment and e$name_of_object gives you specified object (or e[["a"]], or get("a",e)).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号