search for: netmatrix

Displaying 1 result from an estimated 1 matches for "netmatrix".

2006 Jun 27
3
reading a matrix from a file
...what I have done > INfile<-file("mTest.txt", "r") > readLines(INfile)->matrix > matrix [1] "1, 2, 3" > strsplit(matrix, ",")->splitLine > splitLine [[1]] [1] "1" " 2" " 3" > netMatrix <-matrix(c(splitLine), nrow=1,ncol=3) > netMatrix [,1] [,2] [,3] [1,] Character,3 Character,3 Character,3 Does anyone have an idea how can I read a matrix and store it in the form of a matrix. thks -Cuau Vital --------------------...