The below code is a part of a Shiny app and that app is having a function f(x1):
y <- lapply(input$A, FUN = f)
I know that I need to add a second argument, making it f(x1, x2), where x2 is a different input. But the below code is giving me an error that I am using ... incorrectly
y <- lapply(input$A, FUN = f(..., input$B))
Can someone guide me what is the proper syntax?