0

I have a textmatrix in R that looks like the following:

textmatrix

I am trying to create one textmatrix from training and testing data. How can I access the different document columns to put into another textmatrix?

cody
  • 129
  • 2
  • 10
  • Not sure but try something like `testingSpace$matrix[,"D4"]` or `testingSpace$matrix[,4:6]` (not tested) – Andrew Lavers Apr 28 '17 at 00:21
  • $matrix doesn't exist for some reason, and when I do testingSpace[,"D4"], it says "subscript out of bounds" – cody Apr 28 '17 at 18:48

1 Answers1

0

The only way I've found to do it so far is to access it by subscript, i.e. testingSpace[,i]

Still not sure why testingSpace$matrix doesn't seem to exist, so if anyone knows, please let me know.

cody
  • 129
  • 2
  • 10