KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a function f(var1, var2) in R. Suppose we set var2 = 1 and now I want to apply the function f() to the list L . Basically I want to get a new list L* with the outputs [f(L[1],1),f(L[2],1),...,f(L[n],1)] How do I do this with either apply , mapply or lapply ?
Tags (comma-separated)
Save Edits
Cancel