Displaying 2 results from an estimated 2 matches for "ariann".
Did you mean:
ariane
2007 Apr 02
3
Random number from density()
...ut
can this also be used to generate a random number? All the help I can
find suggests getting the quantile function (the reciprocal of the
integral of the pdf), however, it doesn't seem as though density()
returns a pdf that can be manipulated in this way. Any suggestions?
Thanks in advance,
Arianne
--
passerelle antivirus du campus CNRS de Montpellier
--
[[alternative HTML version deleted]]
2006 Jan 20
1
indexing within a function
...time[pop=="x"&id=="y"]
+ print(xx)}
> myfunc(1,6)
numeric(0)
But, if I just enter:
>time[pop=="1"&id=="6"]
[1] 1
I get the right answer... Does anyone know why the indexing works
outside the function, but not inside?
Thanks in advance,
Arianne Albert
_______________________
Arianne Albert (PhD candidate)
Zoology Dept, UBC
6270 University Blvd
Vancouver, BC, V6T 1Z4, Canada
Ph: 604-822-5966
email: albert at zoology.ubc.ca
http://www.zoology.ubc.ca/~albert