finished with the "R introduction" on r-tutor.com

cat-town
Dan Buch 13 years ago
parent 8cb1c01c19
commit 9dfeecd729

BIN
.RData

Binary file not shown.

@ -114,3 +114,33 @@ head(mtcars)
q()
s
q()
mtcars[[[9]]
mtcars[[9]]
mtcars[["am]]
mtcars[["am"]]
mtcars$am
mtcars[1]
head(mtcars[1])
mtcars["mpg"]
mtcars[c("mpg", "hp")]
mtcars[c("mpg", "hp")][1]
mtcars[c("mpg", "hp")][[1]]
mtcars[24,]
mtcars["Camaro Z28",]
mtcars[c("Datsun 710", "Camaro Z28")]
mtcars[c("Datsun 710", "Camaro Z28",)]
mtcars[c("Datsun 710", "Camaro Z28"),]
L = mtcars$am == 0
L
mtcars[L,]
mtcars[L,]
mtcars[L,]$mpg
library(gdata)
library(foreign)
help(read.mtp)
mydata = read.table("mydata.txt")
mydata
mydata = read.csv("mydata.csv")
mydata
getwd()
q()

@ -0,0 +1,4 @@
Col1,Col2,Col3
100,a1,b1
200,a2,b2
300,a3,b3
1 Col1 Col2 Col3
2 100 a1 b1
3 200 a2 b2
4 300 a3 b3

@ -0,0 +1,4 @@
100 a1 b1
200 a2 b2
300 a3 b3
400 a4 b4
Loading…
Cancel
Save