this question has answer here:
- hiding personal functions in r 7 answers
it's getting point have 100 or personal functions use line line data analysis. use f.<mnemonic>
nomenclature functions, i'm finding they're starting in way of work. there way hide them workspace? such ls()
doesn't show them, can still use them?
try leave out "f-dots":
fless <- function() { ls(env=.globalenv)[!grepl("^f\\.", ls(env=.globalenv) )]}
the ls() function looks @ objects in environment. if used (as did) :
fless <- function() ls()[!grepl("^f\\.", ls())]
you ... nothing. adding .globalenv moves focus ls() out usual workspace. indexing pretty straightforward. removing (with ! operator) starts "f." , since "." special character in regex expressions, need escape it, ... , since "\" special character, escape needs doubled.
Comments
Post a Comment