search for: myfun1

Displaying 3 results from an estimated 3 matches for "myfun1".

Did you mean: myfun
2008 Jan 22
2
R object as a function
I want to use a function as an argument to ingtegrate it twice. See the following (senseless) example of a double integration: test<-function(sf,lo,up,rest) { innerFkn<-function(sf,lo) { inte=integrate(f=sf,lower=lo,upper=4) return( inte$value ) } integral=integrate(f=innerFkn,lower=1,upper=2,sf=sf,lo=lo,up=up) return( integral$vlaue+rest ) }
2005 Jun 07
9
how to define functions in such a situation
hi R folks, I need read a file from hardisk or www web. Then I need to define some new functions according to the contents of the read file. For example, i need write a package name "mypackage" like this: >library(mypackage) >read(some_file_on_web) #to see its content, suppose it contains: eat.drink.sleep then 3 new functions need to be created and usable. the problem is, how
2010 Sep 16
8
function help?
Hi all, I am writing a function (fun.R), but I dont know how to code the function so that the Help Text will be shown up when one types ?fun (of course, after he loads it up). Anyone has any advice for me how to do that? Thanks, D.