Reputation: 57
For work, I've been asked to export a function that I create to R. Say that I have created a model, inventively called 'model'. So, I create a function as follows:
f.m <- function(x_) {
return ( predict (model, x = x_ )$ y ) }
Is there a way I can export this function to Excel? I suppose it would, for example, go into column B, while the inputs x_ would go into column A. Thank you.
Upvotes: 0
Views: 93
Reputation: 5068
The question is a bit broad, but in the interest of pointing you in the right direction, here are two projects which I know of:
BERT
toolkit available hereRExcel
project, available for download hereI can't comment at length on how good they are, but I did tinker with BERT once and it seems to work. Here's a blog on the topic of getting Excel and R to talk to each other.
Upvotes: 1