LoginSignup
6
6

More than 5 years have passed since last update.

Rで隠しオブジェクトを作る

Posted at

オブジェクト名をドットで始まるものにすればよいだけ。
関数でも変数でも両方いける。

てきとうにオブジェクトを作る
.secret <- "miserare nai yo!"
> .secret
[1] "miserare nai yo!"

ふつうにls()しても出てこないけど、UNIXでいうls -aにあたるall.names=TRUEオプションを加えると見えます。

> ls()
character(0)
> ls(all.names=TRUE)
[1] ".secret"
6
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6