Re: [R] custom function insite dlys::mutate

2020-03-30 Thread Rasmus Liland
On 2020-03-30 13:21 +, SIMON Nicolas wrote: | Apparently the condition " if ( var1 > tt ) " | cannot be evaluated correcty. | | Could you please give me an advice to write it | properly? Hi! To understand what you wanted to do, I tried to recreate your example in classic R indexing of a

Re: [R] custom function insite dlys::mutate

2020-03-30 Thread Rasmus Liland
On 2020-03-30 13:21 +, SIMON Nicolas wrote: > Could you please give me an advice to write it > properly? Hi! To understand what you wanted to do, I tried to recreate your example in classic R indexing of a data.frame, then converting it to a tibble: var1 <- seq(0, 20, 1) var2 <- c

Re: [R] custom function insite dlys::mutate

2020-03-30 Thread Jeff Newmiller
You are comparing a 21-element vector with a 1-element vector, which gives you 21 answers. Which one of those answers are you actually interested in? I am not sure what you are trying to accomplish here, so cannot offer further advice. On March 30, 2020 6:21:45 AM PDT, SIMON Nicolas wrote: >Hi