In Matlab if I have a function f such as the signature is f(a,b,c), I can make a function which has only one variable b, which would call f with a fixed a=a1 and c=c1:
g = @(b) f(a1, b, c1);
Is there an equivalent in R, or do I just need to redefine a new function ?