3. Data Input

  1. Michael J. Crawley

Published Online: 14 SEP 2007

DOI: 10.1002/9780470515075.ch3

The R Book

The R Book

How to Cite

Crawley, M. J. (2007) Data Input, in The R Book, John Wiley & Sons, Ltd, Chichester, UK. doi: 10.1002/9780470515075.ch3

Author Information

  1. Imperial College London at Silwood Park, UK

Publication History

  1. Published Online: 14 SEP 2007
  2. Published Print: 20 APR 2007

ISBN Information

Print ISBN: 9780470510247

Online ISBN: 9780470515075

SEARCH

Keywords:

  • data input;
  • scan function;
  • separators and decimal points;
  • setting working directory;
  • built-in data sets;
  • readLines function;
  • R book

Summary

This chapter contains sections titled:

  • The scan Function

  • Data Input from Files

  • Saving the File from Excel

  • Common Errors when Using read.table

  • Browsing to Find Files

  • Separators and Decimal Points

  • Input and Output Formats

  • Setting the Working Directory

  • Checking Files from the Command Line

  • Reading Dates and Times from Files

  • Built-in Data Files

  • Reading Data from Files with Non-standard Formats Using scan

  • Reading Files with Different Numbers of Values per Line

  • The readLines Function