You're right, it's not exactly what you wanted.
But... data.frames are lists, so you would access each element of it as
you intended to:
HIV$hiv.dat1$predictions
My opinion is that it's easier to work with data.frames when possible
(as opposed to lists), and I don't see why you would break do
Hi Ivan,
Thanks for the reply.
> Would that do?
But I won't do.
> names(dat1) <- names(dat2) <- c("labels","predictions")
> HIV <- list(hiv.dat1=dat1, hiv.dat2=dat2)
The above snippet produces this instead:
> names(dat1) <- names(dat2) <- c("labels","predictions")
> HIV <- list(hiv.dat1=dat1
Hi,
Would that do?
names(dat1) <- names(dat2) <- c("labels","predictions")
HIV <- list(hiv.dat1=dat1, hiv.dat2=dat2)
Ivan
Le 1/31/2011 10:50, Gundala Viswanath a écrit :
Dear Experts,
I have a data that looks like this.
file1="dat1.tab"
file2="dat2.tab"
dat1<-read.table(file1)
print(dat1)
3 matches
Mail list logo