g <- lapply(x, function(z) lm(y ~ z))
On 6/9/06, Wagner Costa <wemano@gmail.com> wrote:>
> Hi,
>
> I am trying to write a function in R that receives one array (y) and one
> list of arrays (mylist.of.array) with one or more arrays
> I need get y in function of the arrays in mylist.of.array . I am a newbie
> in
> R so I tryed the line bellow, that obviosly does not work
>
> g<-lm(y~ mylist.of.array)
>
> May anybody help me?
> --
> Thank you for your time and help,
> Wagner Costa
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390 (Cell)
+1 513 247 0281 (Home)
What is the problem you are trying to solve?
[[alternative HTML version deleted]]