> a <- c(5,1:4)
> as.word(a)
[1] (15432)
> names(a) <- letters[1:5]
> a
a b c d e
5 1 2 3 4
> as.word(a)
Error in FUN(newX[, i], ...) :
invalid word: rows should be permutations of seq_len(ncol(w))
>
the names should be silently set to NULL, as they can have no meaning in the package.
also:
> rbind(a)
a b c d e
a 5 1 2 3 4
> word(rbind(a))
Error in FUN(newX[, i], ...) :
invalid word: rows should be permutations of seq_len(ncol(w))
>
in both cases the error message is cryptic at best and misleading at worst.
the names should be silently set to
NULL
, as they can have no meaning in the package.also:
in both cases the error message is cryptic at best and misleading at worst.