This is a quick-and-dirty method of guessing a file's classes (hence the
g in gclass()
).
gclass(x, n = 6L, ...)
gclass()
to read. Default is 6.gclass()
. See Details
.gclass()
makes an estiamte as to which read function to use. For
example, if you pass the parameter widths
then gclass
assumes
you are trying to read from a fixed-width file and so uses read.fwf
to
read the number of lines specified by the parameter n
.