May 9, 2017 at 9:35 pm
Comments posted to this topic are about the item Testing values in R
May 10, 2017 at 12:08 am
Good question, thanks, learned something new in R.
...
May 10, 2017 at 1:50 am
Yes good question. Something new. Thanks Steve.
May 10, 2017 at 2:50 am
Finally an R question I knew without research. Still amazed at the power of the R language to automate some data cleansing jobs we've been working through.
May 10, 2017 at 3:35 am
Nice one, thanks Steve
____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
βlibera tute vulgaris exβ
May 10, 2017 at 8:19 am
Elementary, dear Watson. π
Thanks, Steve!
May 10, 2017 at 9:42 am
Thanks for another lesson in R-language. I was a bit confused by the title of today's QotD "Testing values in R", but I tried again something new.
The usage of the function in the form REP() I do not recommend...π
May 12, 2017 at 6:19 am
George Vobr - Wednesday, May 10, 2017 9:42 AMThanks for another lesson in R-language. I was a bit confused by the title of today's QotD "Testing values in R", but I tried again something new.
The usage of the function in the form REP() I do not recommend...π
I agree that "REP" is an odd form.
The answer is a bit off, as rep can do a lot more than just replicate a string. It can replicate non-string arguments (vectors, dates, times, and more) and the "each" argument allows it to do two-dimensional replication of vectors (or component-wise one-dimensional representation if the tiimes argument is 1 and the length.out argument is NA) and I haven't yet grasped exactly what the length.out argument does when it isn't NA (haven't really tried yet). But I guess we are all beginners in R and the tutorial that Steve pointed us to in a previous qotd introduces rep with the string replication mode, and teh answer is fair for beginners.
Tom
June 7, 2017 at 9:59 am
June 7, 2017 at 11:29 am
Sorry, keyword habit of capitalizing those.
Corrected.
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply