Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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

Note:

Example:



library ("xplore")    

readm ("mixed.dat")	   

Result:



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

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Sigbert Klinke, 980515
(C) MD*TECH Method and Data Technologies, 21.9.2000