Importing Matrix Format (. Mtx) in R?

I am a transportation planner and work with matrices a lot. I have data in a lot of Matrix file formats (.mtx).

Can anyone please tell me how to import this data in R?

Your help is much appreciated. I have R: 3.6 version.

3

1 Answer

Use this :

Matrix::readMM('file_dir')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest