Re: [R] writing a function to work with dplyr::mutate()

2021-01-20 Thread Steven Rigatti
res > } > E.g., > > data.frame(XXX=c(95,93,10,20), YYY=c(55,66,93,98)) %>% mutate( f1(YYY, > 90, lup)) > XXX YYY YYY_mm > 1 95 55 55 > 2 93 66 66 > 3 10 93 3 > 4 20 98 NA > > -Bill > > On Tue, Jan 19, 2021 at 10:24 AM Ste

Re: [R] writing a function to work with dplyr::mutate()

2021-01-19 Thread Steven Rigatti
rt Gunter > > > >"The trouble with having an open mind is that people keep coming along > >and > >sticking things into it." > >-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > > > >On Tue, Jan 19, 2021

Re: [R] writing a function to work with dplyr::mutate()

2021-01-19 Thread Steven Rigatti
t for a more useful reply. > > Cheers, > Bert > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On

[R] writing a function to work with dplyr::mutate()

2021-01-19 Thread Steven Rigatti
I am having some problems with what seems like a pretty simple issue. I have some data where I want to convert numbers. Specifically, this is cancer data and the size of tumors is encoded using millimeter measurements. However, if the actual measurement is not available the coding may imply a less