R/rowColVector.R

rowVector <- function (x, label=NULL) {
  matrix(x, nrow=1, dimnames=list(label, names(x)))
}
colVector <- function (x, label=NULL) {
  matrix(x, ncol=1, dimnames=list(names(x), label))
}

Try the corpora package in your browser

Any scripts or data that you put into this service are public.

corpora documentation built on Aug. 24, 2023, 3:03 p.m.