hi

how do I exactly use the get(). I am reading the help for get() but the way
I am using it causes an error/

thanks
ADias

2011/1/4 Sarah Goslee <sarah.gos...@gmail.com>

> With get().
>
> On Tue, Jan 4, 2011 at 11:58 AM, ADias <diasan...@gmail.com> wrote:
> >
> > Hi,
> >
> > Still with the above problem:
> >
> > But for instance, i have a data base with 30 variables and I created an
> > object each with one varibale missing:
> >
> > DataBase - has 30 variables
> > DataBase1 has 29 variables with the 1st variable gone
> > DataBase2 has 29 variables with the 2nd variable gone
> >
> > for(i in 1:length(database))
> assign(paste("database",i,sep=""),database[-i])
> >
> >
> > Now, I wish to create the 30 distance matrix:
> >
> > for (i in 1:length(database))
> > assign(paste("distancematrix",i,sep=""),
> > dist(database[i]))
> >
> > But doing like this - database[i] - I am just refering to the 1st value
> on
> > the object database and not to the entire database i.
> >
> > How do I do this?
> >
> > thanks
> > Regards,
> > A.Dias
> > --
> --
> Sarah Goslee
> http://www.functionaldiversity.org
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to