Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

matscan

Read matrix data from a file


Description

Reads matrix data from a file

Usage

matscan(file, num.cols = utils::count.fields(file)[1], what = 0, sk = 0)

Arguments

file

A filename.

num.cols

The number of columns of data in the file.

what

A template for the data elements in the file, it should be a number for numeric data (the default) or a string for string data. Note that an Splus matrix can only hold one type of data (string or numeric), for mixed types use data tables and the read.table function.

sk

The number of leading lines of the file to skip.

Details

This function has been partially superseded by the introduction of data frames and the read.table function. It is still useful however for reading data into Splus matrix objects.

Value

A matrix corresponding to the data in file.

See Also

read.table


emuR

Main Package of the EMU Speech Database Management System

v2.2.0
GPL (>= 2)
Authors
Raphael Winkelmann [aut, cre], Klaus Jaensch [aut, ctb], Steve Cassidy [aut, ctb], Jonathan Harrington [aut, ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.