data.year[j] <-
read.table(paste("c:/data/",year[j],".csv",sep=''),header=T,sep=",")
should do it.
Le Wang wrote:
Hi there,
Thanks for your time in advance.
I am trying to read in multiple files. For example,
data.1940 <- read.table("c:/data/1940.csv",header=TRUE,sep=",")
data.1950 <-
Is this what you want it to do ('n' is the original data frame)?
> n
v V1 V2 V3 V4
1 k a 2 1 2
2 l b 1 2 1
3 m c 2 1 2
4 n d 1 2 1
5 o e 2 1 2
> n1 <- n[,3:5]
> n2 <- duplicated(n1)
> n3 <- n[!n2,]
> n3
v V1 V2 V3 V4
1 k a 2 1 2
2 l b 1 2 1
Pankaj
Tammy Ma wrote:
2 matches
Mail list logo