Hi,
You may try:
op <- options(digits=12)
r1 <- 4; c1 <- 4
A <- matrix(scan("file1.txt",n=r1*c1),r1,c1,byrow=TRUE)
options(op) #reset
A.K.
Dear all,
I’m using 'scan' function to import data into a matrix from a .txt
file. The data are numbers with 12 significant digits (e.g.
471773.30
Hi,
You may try:
op <- options(digits=12)
r1 <- 4; c1 <- 4
A <- matrix(scan("file1.txt",n=r1*c1),r1,c1,byrow=TRUE)
options(op) #reset
A.K.
Dear all,
I’m using 'scan' function to import data into a matrix from a .txt
file. The data are numbers with 12 significant digits (e.g.
471773.30987
2 matches
Mail list logo