tmpfun {dga} | R Documentation |
This makes a vector of zeroes and puts a 1 in the x'th place.
tmpfun(x, p)
x |
where the one should be. |
p |
the length of the vector. |
a vector of length p with a one in the xth location.
Kristian Lum kl@hrdag.org
## The function is currently defined as function (x, p) { tmp <- rep(0, p) tmp[x] <- 1 return((tmp)) }