This post has been de-listed (Author was flagged for spam)
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi friends,
For a personal project I am trying to load large matrices from a text file. The format in the text file is as such:
1011110011000220202211000101002220202202101100102200202002021001101001102000200201000011101132220220110111003301333220201101001013331123332200104411100010202230011014400333002202334101104000030020332041001403444322033220440004443034200302200404043334342200300200444003444330003002004004403430330330020400004033300030340204400004400033344433040040444044043433430400400004404443334340444000000333300443, 1111222202000220202212221100200022002002010211022022020020220102102202002020221111210200220121220011122122100201221211000211121112001112100200022103311101211002111221343301332220020100013443010320022000101030443330003200001110440044300322021104411430434433302201041104334344322200040440400343330223330440044400344433303000400000443330443300404040440440344400300400440040330333303044044044443300300333,
and so on, for 1000 entries. I want to transform this text file into a data frame containing 1000 20x20 matrices. Read.csv does not seem to work, all of the entries are read as "Inf".
What is the protocol from this?
Thanks.
Subreddit
Post Details
- Posted
- 7 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/rstats/comm...