How to use R/Tutorials/Loading data

< How to use R < Tutorials

This tutorial demonstrates how to load data in R.

Note

Direct loading

1970    45    63
1980    52    59
1990    59    52
2000    63    45
setwd("<path>")                # change working directory
data <- read.table("data.txt")  # load data

Loading csv

This section is a stub. You can help Wikiversity by expanding it.


This article is issued from Wikiversity - version of the Tuesday, December 15, 2009. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.