asreml.read.table | R Documentation

## Data Input

### Description

Reads in a file in table format and creates a data frame with the same number of rows as there are lines in the file, and the same number of variables as there are fields in the file. Variables whose names begin with a capital letter are converted to factors

### Usage

    asreml.read.table(...)

### Arguments

`...` | arguments are as for `read.table()`. One of `header` or `col.names` must be specified to name the variables.

### Details

asreml.read.table checks if `header` or `col.names` is set and calls `read.table`. Any variable in the resulting dataframe from `read.table` that is not a factor and begins with a capital letter is converted to a factor.

### Value

a data frame with as many rows as the file has lines (or one less if `header=T`) and as many variables as the file has fields (or one less if one variable was used for row names). Fields are initially read in as character data. If all the items in a field are numeric, the corresponding variable is numeric, subject to the field naming convention below. Otherwise, it is a factor (unordered), except as controlled by the `as.is argument` to `read.table()`. All lines must have the same number of fields (except the header, which can have one less if the first field is to be used for `row names`). Fields whose name begins with a capital letter are converted to factors.

### Author(s)

David Butler

### See Also

`read.table`