Quantcast
Channel: ListenData
Viewing all articles
Browse latest Browse all 425

Copy Data from Excel to R

$
0
0
This tutorial explains how to copy data from MS Excel to R.
Copy Data from Excel to R

data = read.table(text="
X Y Z
6 5 0
6 3 NA
6 1 5
8 5 3", header=TRUE)

It creates 3 columns - X, Y and Z. The header = TRUE tells R to consider first row as header. 

Viewing all articles
Browse latest Browse all 425

Trending Articles