R-data - R Data Import/Export Version 2.10.1 R Development...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: R Data Import/Export Version 2.10.1 (2009-12-14) R Development Core Team Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the con- ditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another lan- guage, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the R Development Core Team. Copyright c 2000–2009 R Development Core Team ISBN 3-900051-10-0 i Table of Contents Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.1 Imports ........................................................ 2 1.2 Export to text files ............................................. 3 1.3 XML ........................................................... 4 2 Spreadsheet-like data . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1 Variations on read.table ...................................... 6 2.2 Fixed-width-format files ........................................ 8 2.3 Data Interchange Format (DIF) ................................ 8 2.4 Using scan directly ............................................ 9 2.5 Re-shaping data .............................................. 10 2.6 Flat contingency tables ........................................ 11 3 Importing from other statistical systems . . . . 12 3.1 EpiInfo, Minitab, S-PLUS, SAS, SPSS, Stata, Systat .......... 12 3.2 Octave ........................................................ 13 4 Relational databases . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.1 Why use a database? .......................................... 14 4.2 Overview of RDBMSs ......................................... 14 4.2.1 SQL queries .............................................. 15 4.2.2 Data types ............................................... 16 4.3 R interface packages .......................................... 16 4.3.1 Packages DBI and RMySQL .............................. 17 4.3.2 Package RODBC ......................................... 18 5 Binary files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.1 Binary data formats ........................................... 21 5.2 dBase files (DBF) ............................................. 21 6 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6.1 Types of connections .......................................... 22 6.2 Output to connections ........................................ 23 6.3 Input from connections ........................................ 23 6.3.1 Pushback6....
View Full Document

{[ snackBarMessage ]}

Page1 / 37

R-data - R Data Import/Export Version 2.10.1 R Development...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online