otto16
asked on
Convert into a matrix in R
i have a tab delimited file in the following format. How can i in R language convert it to a matrix keeping the first column as character?
NAME A A C D M
Alex 0 0 4 0 0
Max 0 0 0 0 0
Mike 72 44 22 21 45
Ada 0 1 0 0 0
Lily 0 1 1 0 1
Sanda 0 0 0 0 0
NAME A A C D M
Alex 0 0 4 0 0
Max 0 0 0 0 0
Mike 72 44 22 21 45
Ada 0 1 0 0 0
Lily 0 1 1 0 1
Sanda 0 0 0 0 0
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.