I am having some trouble printing the first column of my sparse matrix. here is a snapshot of the matrix
RESOURCE17183 RESOURCE39353 MGR_ID85475
1 . 1 1
2 1 . .
I try to print it by using the the command
print(x_train[,1])
However I get some weird output
1 2
1 0
The output I was expecting was something like
RESOURCE17183
1 .
2 1
What am I doing wrong? Please help