RPR-Data-Import

From "A B C"
Revision as of 18:15, 19 September 2017 by Boris (talk | contribs)
Jump to navigation Jump to search

Importing data in R


 

Keywords:  Data import from unstructured text, structured text, spreadsheets, online repositories, and Web pages


 



 


Caution!

This unit is under development. There is some contents here but it is incomplete and/or may change significantly: links may lead to nowhere, the contents is likely going to be rearranged, and objectives, deliverables etc. may be incomplete or missing. Do not work with this material until it is updated to "live" status.


 


Abstract

Practical for data import from text files, spreadsheets and Web pages.


 


This unit ...

Prerequisites


 


Objectives

...


 


Outcomes

...


 


Deliverables

  • Time management: Before you begin, estimate how long it will take you to complete this unit. Then, record in your course journal: the number of hours you estimated, the number of hours you worked on the unit, and the amount of time that passed between start and completion of this unit.
  • Journal: Document your progress in your Course Journal. Some tasks may ask you to include specific items in your journal. Don't overlook these.
  • Insights: If you find something particularly noteworthy about this unit, make a note in your insights! page.


 


Evaluation

Evaluation: NA

This unit is not evaluated for course marks.


 


Contents

  • Line endings
  • Unstructured text files, headers, skip, omit, and rownames
  • Caution with stringsAsFactors
  • Caution with coerced data
  • Text files with keywords
  • Text-files: changing state
  • Text-files: csv and tsv (and Excel sheets)
  • Text-files: slurping, chunking and streaming
  • curl
  • httr GET and POST
  • XML - libraries and cpath
  • Binary Data
  • R objects: save() and load()


 


Further reading, links and resources

 


Notes


 


Self-evaluation

 



 




 

If in doubt, ask! If anything about this learning unit is not clear to you, do not proceed blindly but ask for clarification. Post your question on the course mailing list: others are likely to have similar problems. Or send an email to your instructor.



 

About ...
 
Author:

Boris Steipe <boris.steipe@utoronto.ca>

Created:

2017-09-17

Modified:

2017-09-18

Version:

0.2

Version history:

  • 0.1 Contents outline
  • 0.1 First stub

CreativeCommonsBy.png This copyrighted material is licensed under a Creative Commons Attribution 4.0 International License. Follow the link to learn more.