TJUN KIAT TEO
2020-Jun-05 07:02 UTC
[R] Applying a function to dataframe column where the function value depends on the value of another column
Suppose I have a dataframe in this from a b c g 2 3 h 4 5 i 6 7 I want to apply a function to individual elements of column C where the function value depends on the value of column A [[alternative HTML version deleted]]
Jeff Newmiller
2020-Jun-05 07:13 UTC
[R] Applying a function to dataframe column where the function value depends on the value of another column
Press send too soon? This is not actually a question. Do read the Posting Guide... for one thing you need to post in plain text because the automatic text conversion tends to mess up what you send if it is HTML. On June 5, 2020 12:02:44 AM PDT, TJUN KIAT TEO <teotjunk at hotmail.com> wrote:>Suppose I have a dataframe in this from > >a b c >g 2 3 >h 4 5 >i 6 7 > >I want to apply a function to individual elements of column C where the >function value depends on the value of column A > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- Sent from my phone. Please excuse my brevity.