Displaying 3 results from an estimated 3 matches for "which2".
Did you mean:
which
2008 Jul 11
1
Suggestion: 20% speed up of which() with two-character mod
...ment to 'which' is not logical")
wh <- seq_along(x)[ll <- x & !is.na(x)]
m <- length(wh)
dl <- dim(x)
if (is.null(dl) || !arr.ind) {
names(wh) <- names(x)[ll]
}
...
wh;
}
SUGGESTED CODE: (Remove 'll' and use 'wh')
which2 <- function(x, arr.ind = FALSE)
{
if(!is.logical(x))
stop("argument to 'which' is not logical")
wh <- seq_along(x)[x & !is.na(x)]
m <- length(wh)
dl <- dim(x)
if (is.null(dl) || !arr.ind) {
names(wh) <- names(x)[wh]
}
......
2016 May 28
1
Looking for location of some specific settings in CentOS 6.x
Hello,
I have several virtual machines, all with CentOS 6.x and one so called
virtual server at a web hoster
my virtual machines (VMware) were all installed manually using the .iso,
some exist longer and therefore
were originally a CentOS 6.3, some are newer and wer originally a CentOS
6.6;
and this virtual server has been installed using a preconfigured image
from the web hoster;
on all
2015 May 18
4
How best to get around shadowing of executables by system()'s prepending of directories to Windows' PATH?
My question:
On Windows, R's system() command prepends several directories to those
in the Windows Path variable.
>From ?system
The search path for 'command' may be system-dependent: it will
include the R 'bin' directory, the working directory and the
Windows system directories before 'PATH'.
This shadows any executables on the Path that share a