mrdwab / splitstackshape

R functions to split concatenated data, conveniently stack columns of data.frames, and conveniently reshape data.frames.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`char_mat`, `num_mat`, `trim_list`, `trim_vec` -- convert to character at the start

mrdwab opened this issue · comments

Shouldn't add too much processing time, but would allow char_mat and num_mat to directly work on data.frames (as they are lists anyway).

Expect to work (after modification):

df <- data.frame(V1 = c("A", "B", "C"),
                 V2 = c("C", "C", NA),
                 V3 = c("D", "A", "B"))
char_mat(df)

This will presently generate an error.

Taken care of in aeac3f7.