Hi there!
For the module I'm developing I find myself constantly copying code from one place to another, both within the same analysis and and also between different analyses (i.e. data cleansing, which is pretty much the same process for all of my analyses). So I thought it would be easier just specifying a helper function somewhere and then call it. I know it is possible within one analysis to define a function and reuse it, but is there a way to define a function in a place where all of my analyses can access these functions?
If not, could I create an R-package with these helper-functions, publish it on GitHub and call them from there?
Thanks for your help
Best,
Dan
Best place to create helper functions?
Re: Best place to create helper functions?
hi dan,
just put your helper functions in a separate .R file, then you can call them anywhere.
cheers
jonathon
just put your helper functions in a separate .R file, then you can call them anywhere.
cheers
jonathon