Posts by Gabriel Pehls • 11 points
1 post
-
1
votes1
answer952
viewsQ: How to insert, as a new column, the names in a vector in R?
I have a vector, called istrain, with names: istrain = c("carri", "challeng", ...) And I intend to turn them into columns of a dataframe, testSparse, which contains frequency of occurrence of words…