[R] range of input data

From: Carsten Steinhoff <carsten.steinhoff_at_stud.uni-goettingen.de>
Date: Wed 29 Jun 2005 - 23:10:00 EST


I've written this function:  

g = function(test,p1,p2)

for (z in 1:length(test))
  F22=log(1-plnorm(test[length(test)+1-z],p1,p2))   F2= F21+F22



When I call it for e.g. test = 1:10 it only returns ONE value. Instead what I want to have is 10 values (like it makes the dlnorm for instance). I could make that with a loop, but maybe there is there a more simple trick ?  


        [[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 Received on Wed Jun 29 23:15:11 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:06 EST