search for: myvarname

Displaying 8 results from an estimated 8 matches for "myvarname".

2012 Jan 12
2
using "list=" to force evaluation before execution
Dear all, I have noticed that the expression 'list =' is sometimes used to tell R to evaluate something before executing it. Two examples: rm(list=ls()) a = 3 myVarName = 'a' save(list=myVarName, file=...) I was wondering whether there is any documentation on this way of using "list". Which is a clearly different use than what ?list talks about, as the latter addresses the use of 'list' as a datastructure. Thanks for your help, Adi...
2015 Jan 08
5
RFC: getifexists() {was [Bug 16065] "exists" ...}
...true if and only if an object of the correct name and mode is found. ?getifexists():? The object-as from ?get(x, *)?- if ?exists(x, *)? is true, otherwise ?value.if.not?. Note: With ?getifexists()?, instead of the easy to read but somewhat inefficient if (exists(myVarName, envir = myEnvir)) { r <- get(myVarName, envir = myEnvir) ## ... deal with r ... } you now can use the more efficient (and slightly harder to read) if (!is.null(r <- getifexists(myVarName, envir = myEnvir))) { ## ... deal with r ... }...
2015 Jan 08
4
RFC: getifexists() {was [Bug 16065] "exists" ...}
...t; ?getifexists():? The object-as from ?get(x, *)?- if ?exists(x, *)? > > is true, otherwise ?value.if.not?. > > > > Note: > > > > With ?getifexists()?, instead of the easy to read but somewhat > > inefficient > > > > if (exists(myVarName, envir = myEnvir)) { > > r <- get(myVarName, envir = myEnvir) > > ## ... deal with r ... > > } > > > > you now can use the more efficient (and slightly harder to read) > > > > if (!is.null(r <- getifexists(myVarName,...
2015 Jan 08
0
RFC: getifexists() {was [Bug 16065] "exists" ...}
...name and mode is found. > > ?getifexists():? The object-as from ?get(x, *)?- if ?exists(x, *)? > is true, otherwise ?value.if.not?. > > Note: > > With ?getifexists()?, instead of the easy to read but somewhat > inefficient > > if (exists(myVarName, envir = myEnvir)) { > r <- get(myVarName, envir = myEnvir) > ## ... deal with r ... > } > > you now can use the more efficient (and slightly harder to read) > > if (!is.null(r <- getifexists(myVarName, envir = myEnvir))) { >...
2015 Jan 08
1
RFC: getifexists() {was [Bug 16065] "exists" ...}
...t; ?getifexists():? The object-as from ?get(x, *)?- if ?exists(x, *)? > > is true, otherwise ?value.if.not?. > > > > Note: > > > > With ?getifexists()?, instead of the easy to read but somewhat > > inefficient > > > > if (exists(myVarName, envir = myEnvir)) { > > r <- get(myVarName, envir = myEnvir) > > ## ... deal with r ... > > } > > > > you now can use the more efficient (and slightly harder to read) > > > > if (!is.null(r <- getifexists(myVarName,...
2015 Jan 08
0
RFC: getifexists() {was [Bug 16065] "exists" ...}
...ect-as from ?get(x, *)?- if ?exists(x, *)? >> > is true, otherwise ?value.if.not?. >> > >> > Note: >> > >> > With ?getifexists()?, instead of the easy to read but somewhat >> > inefficient >> > >> > if (exists(myVarName, envir = myEnvir)) { >> > r <- get(myVarName, envir = myEnvir) >> > ## ... deal with r ... >> > } >> > >> > you now can use the more efficient (and slightly harder to read) >> > >> > if (!is.null(r...
2015 Jan 08
1
RFC: getifexists() {was [Bug 16065] "exists" ...}
...?getifexists():? The object-as from ?get(x, *)?- if ?exists(x, *)? > > is true, otherwise ?value.if.not?. > > > > Note: > > > > With ?getifexists()?, instead of the easy to read but somewhat > > inefficient > > > > if (exists(myVarName, envir = myEnvir)) { > > r <- get(myVarName, envir = myEnvir) > > ## ... deal with r ... > > } > > > > you now can use the more efficient (and slightly harder to read) > > > > if (!is.null(r <- getifexists(myV...
2015 Jan 08
2
RFC: getifexists() {was [Bug 16065] "exists" ...}
...sts(x, *)? >>> > is true, otherwise ?value.if.not?. >>> > >>> > Note: >>> > >>> > With ?getifexists()?, instead of the easy to read but somewhat >>> > inefficient >>> > >>> > if (exists(myVarName, envir = myEnvir)) { >>> > r <- get(myVarName, envir = myEnvir) >>> > ## ... deal with r ... >>> > } >>> > >>> > you now can use the more efficient (and slightly harder to read) >>> > >>>...