search for: honeyoak

Displaying 4 results from an estimated 4 matches for "honeyoak".

2011 Oct 14
4
using do.call to call a list of functions
...[[3]]() [1] 0.9092999 0.7307774 0.4647443 what I want to do is create a function that calls all three functions in the list at one go. from what I understand as.call() can be used to do this but I am having trouble connecting the dots and getting 6 uniform random draws from function.list. thanks, honeyoak. -- View this message in context: http://r.789695.n4.nabble.com/using-do-call-to-call-a-list-of-functions-tp3906337p3906337.html Sent from the R help mailing list archive at Nabble.com.
2011 Oct 05
4
dynamically creating functions in r
it is possible to dynamically create functions in R using lists? what I want to do is something like this: a = list() for (i in 1:10) a[[i]] = function(seed = i) runif(seed) so that when I call a[i] I get random draws 1,2,....i unfortunately R only uses the last i . I would also like to know if there is a run-all function without explicitly looping or using lapply. for example if I
2011 May 12
1
extract integers from string
I have a vector with a long list of sentences that contain integers. I would like to extract the integers in a manner such that they are separate and manipulatable. for example: x[i] <- "sally has 20 dollars in her pocket and 3 marbles" x[i+1] <- "30 days ago john had a 400k house" all sentences are different and contain a mixture of both integers and characters. i
2011 May 31
1
while loop problems
Hi , i am trying to get this loop in my r program to work but it is not giving me the results that I desire. I am trying to model an insurance contract where there are n securities that have a fixed likelihood of default vector(data[i,2]) and a payout vector(data[i,1]). i need to price the value of stop losses at the security level and at the portfolio level. to do this i created two while loops