I am confused which apply family to use here.
I have a data frame mydf
as
terms
A
B
C
I want to apply custom function to each of the values and get results in new columns like below
terms Value1 Value2 ResultChar
A 23 45 Good
B 12 34 Average
C 9 23 Poor
custom function is something like myfunc("A")
returns a vector like (23, 45, Good)
Any help will be appreciated.