Re: [R] find all objects of a particular class

2007-09-23 Thread Zhang Honglian
Hello, I would like to find all objects of a particular class. Is that possible to do so in R? I knew that in SPLUS, the function objects(class="classname") can do this. But in R, I cannot find the similar function to do so. Is there any way that I can distinguish where an object c

Re: [R] return(x=x,y=y,prob=prob) hasn't been used in R now?

2007-09-23 Thread Zhang Honglian
I don't know what exactly you want the program to do. But if you want to let the function to return several values in the same time, you have to put them into a list. E.g. in the following program, the function will return 4 different things, x and y are vectors, prob is a matrix and p