From | Roger Newson <[email protected]> |
To | [email protected] |
Subject | Re: st: saving and loading matrices |
Date | Mon, 16 Aug 2004 10:14:41 +0100 |
At 17:21 15/08/2004, Oleksandr Shepotylo. wrote:
Hi ,To save a matrix to a text file, se -svmat- to copy a matrix to a dataset in memory, and -outsheet- to write that dataset to a disk file. To load a matrix from a text file, use -insheet- to read from the text file into a dataset in memory, and -mkmat- to copy the dataset into a matrix. To find more about -insheet- and -outsheet-, see -[R] insheet- and -[R] outsheet-. To find more about -mkmat- and -svmat-, see the Programming manual under -[P] matrix mkmat-.
Is there a way to save and load matrices in text format?
Suppose I run Stata and want to use matrix A in another program X.
So, I want to save A in csv or txt form. Then I do some manipulations with A and want to load A back in Stata while keeping all my data unchanged.
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |