dear all,

a simple question, I need to write a function in which I retrive an
undetermined number of vector in the function.

I solved the problem thanks to this link

http://stackoverflow.com/questions/2540232/how-to-allow-multiple-inputs-from-user-using-r

so my function will look alike this

my_fun <- function(...){
   my_list <- lapply(..., function(x){x})
}

I need just one more suggestion.

how can give to each element of the list the name of the single variables I
used as imput of "my_fun"??

I hope I was clear in what I want to do

        [[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