Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
Dear r-developers- After many years of using and coding in R and other languages, I came across something that I think should be flagged by the parser: bug <- function (x) { return (x + 1) * 1000 } > bug(1) [1] 2 The...
Hi all- Looking through stackoverflow for R string combining examples, I found the following from 3 years ago: <https://stackoverflow.com/questions/63881854/how-to-format-strings-using-values-from-other-column-in-r> The top answer suggests to use...
Thanks Gabor, I like your solution that splits the args into separate columns, in turn making the sprintf() call more interpretable . Cheers. Mateo. -- Mateo Obreg?n On Friday, 29 December 2023 18:45:06 GMT Gabor Grothendieck wrote: > If the...
I'm not thinking of complicated cases. This happened to me in a function that returns 10 minute slots slot <- function (seconds) { return (seconds %/% 600) * 600 } Obviously I found the issue while debugging and corrected my code with surrounding parenthesis...
Thanks Dirk for your response. The "base" R code is just too unwieldy to be easily understandable. The eval(parse(sprintf())) solution provided is ungainly too, but at least its more understandable from a casual reading of it. I'll...
I don't see how anything operating on the "result" of a return() call could be legal. The special semantics of the return() call is that it does **not** return control to the place it was called from, but rather...
Can't find what you're looking for? Try searching with Google .