anonymous function r
Anonymous Functions. As remarked at several points in this book, the purpose of the R function function() is to create functions. It instructs R to create a function that adds 1 to its argument and then assigns that function to inc. However, that last stepâthe assignmentâis not always taken.