Displaying 2 results from an estimated 2 matches for "myfunt".
Did you mean:
myfun
2004 Sep 06
1
Applying function to lots of separate data sets
I have a total mental block and can't find my way around this seemingly
simple problem:
I have created a function such that:
my_answer_1=myfuntion(my_input_1)
I am wanting to perform this calculation over a large number of datasets,
but am having real difficulty calling and assigning - i think the problem
les in the fact that I need to paste for call and assign.
this is my best attempt so far..I can't seem to find a way around this.....
2012 Mar 13
2
beginner's loop issue
Dear All,
I hope you don't mind helping me with this small issue. I haven't been using
R in years and I'm trying to fill in a matrix
with the output of a function (I'm probably using the Matlab logic here and
it's not working).
Here is my code:
for (i in 1:length(input)){
out[i,1:3] <- MyFunction(input[i,1],input[i,2], input[i,3])
out[i,4:6] <-