Making Use of External Resources :
> scan(file="c:\\s\\data2.dat",what=numeric(),36) # [Uses External file
data2.dat located in c:\\s\ having numerical values only]
[1] 4 4 1 2 3 1 3 3 3 4 8 4 4 2 3 2 1 4 5 3 4 1 2 4 8 7 1 3 4 5 6 7 8 9 0 1
> scan(file="c:\\s\\data2.dat",what=numeric(),20)
[1] 4 4 1 2 3 1 3 3 3 4 8 4 4 2 3 2 1 4 5 3
> get1 <- scan(file="c:\\s\\data1.dat",what=numeric(),10)
> get1
[1] 4 4 1 2 3 3 2 2 4 4
> edit(get1)
[1] 4 4 1 2 3 3 2 2 4 4
> get2 <- matrix(scan(file="c:\\s\\data2.dat",what=numeric(),36),ncol=9,byrow=T)