Skip to content
Prev 314061 / 398503 Next

Difficulty importing data from PARI/GP

One way is to use 'readLines' to read in the file, change the ';' to
'\n', write the file out and then read it back in:
[1] "1,2,3,4,5,6;1,2,3,4,5,6;1,2,3,4,5,6;1,2,3,4,5,6;1,2,3,4,5,6;1,2,3,4,5,6;1,2,3,4,5,6;1,2,3,4,5,6;1,2,3,4,5,6;1,2,3,4,5,6;1,2,3,4,5,6;1,2,3,4,5,6\r\n"
V1 V2 V3 V4 V5 V6
1   1  2  3  4  5  6
2   1  2  3  4  5  6
3   1  2  3  4  5  6
4   1  2  3  4  5  6
5   1  2  3  4  5  6
6   1  2  3  4  5  6
7   1  2  3  4  5  6
8   1  2  3  4  5  6
9   1  2  3  4  5  6
10  1  2  3  4  5  6
11  1  2  3  4  5  6
12  1  2  3  4  5  6
On Fri, Dec 21, 2012 at 12:39 PM, murfs <jm9461 at my.bristol.ac.uk> wrote: