Library: | xplore |
See also: | read write readascii |
Quantlet: | readm | |
Description: | readm reads mixed data from a file. |
Usage: | z = readm (filename {, separators}) | |
Input: | ||
filename | name of the data file | |
separators | string that contains the data separator (default=" \t\n") | |
Output: | ||
z.type | (p+q) vector types of columns in file | |
z.double | n x p matrix numerical vectors | |
z.text | n x q matrix text vectors |
library ("xplore") readm ("mixed.dat")
Contents of string [1,] "readm: Found 3 line(s) and 7 column(s)" Contents of z.type [1,] 0 [2,] 0 [3,] 0 [4,] 0 [5,] 1 [6,] 0 [7,] 0 Contents of z.double [1,] 1 2 3 4 4.5 +NAN [2,] 5 6 7 0 6.7 8.9 Contents of z.text [1,] "hallo" [2,] "hallo_again"
Library: | xplore |
See also: | read write readascii |