install.packages('str2str')
`abind<-`
adds array slices to arrays as a side effect. It used the function
abind
in the abind
package. The purpose of the function is to replace
the need to use ary2 <- abind(ary1, mat1); ary3 <- rbind(ary2, mat2); ary4 <- rbind(ary3, mat3),
etc. It allows you to specify the dimension you wish to bind along
as well as the dimname you
wish to bind after
. Unlike `cbind<-`
, `rbind<-`
, and `append<-`
,
it does not have overwriting functionality (I could not figure out how to code that);
therefore, if value
has some dimnames that are the same as those in a
,
it will NOT overwrite them and simply bind them to a
, resulting in duplicate
dimnames.grab
extracts the contents of objects in an environment based on their
object names as a character vector. The object contents are stored to a list
where the names are the object names.`rbind<-`
adds rows to data objects as a side effect. The purpose of
the function is to replace the need to use dat2 <- rbind(dat1, add1);
dat3 <- rbind(dat2, add2); dat4 <- rbind(dat3, add3), etc. For data.frames,
it functions similarly to `[<-.data.frame`
, but allows you to specify the
location of the rows similar to append
(vs. c
) and overwrite
rows with the same rownames. For matrices, it offers more novel functionality
since `[<-.matrix`
does not exist.sn
sets a vector's names as its elements. It is a simple utility function
equal to setNames(x, nm = as.character(x))
. This is particularly useful
when using lapply
and you want the return object to have X
as its names.