« first day (890 days earlier)      last day (2633 days later) » 

00:25
:) see you later, then. i was about to comment on your answer:

OP updated with reproducible code that has different numbers than you used here, so it's kind of hard to follow yours.
 
2 hours later…
user image
3
what are the chances? ;-)
 
2 hours later…
05:45
aloha!
@RonakShah does your look alike have a magic stick as well? ;-)
(I just couldn't resist ---^)
@Jaap hahah...I am assuming he should have one ;-)
Hello @ all
06:05
@RonakShah just saw the background image of your twitter profile page; not a scenery from Indian I presume ;-)
(looks very Dutch to me)
@Jaap perfect! It is one from the Netherlands.
Somehow came on my google image search result and it has been there since 5-6 years.
06:46
Morning all
@RonakShah is that your doppelganger? Or did you do some magic with some stick?? :D
Yes...the bullying continues :)
:-)
Uwe
Uwe
@Frank I've edited the Q because OP has posted new data for df1 but has forgotten to amend df2 accordingly.
@Sotos I think this is going to stick with me for life . No escape. ;-)
@RonakShah No, no, no, no...It's not going to stick with you for life...It's going to magic stick with you for life :D
4
07:06
hey guys ! already in bright mood I see :-D
@Cath Yup. And I even had a flat tire this morning and had to get all dirty and greesy to change it while coming to work but still... :)
then it's a strong bright mood, flat tire could have killed it
It is and was about time. I haven't felt this energetic and happy for a while now :)
Hello
Can we close this ?
08:23
This is lovely...very usefull for communication and understanding
6
Uwe
Uwe
08:40
@Sotos Good find, thx for sharing
np
Uwe
Uwe
@Frank Thank you for reminding me of the which param. Hope it's OK for you that I've edited in your version and removed mine to demonstrate best practice.
09:51
hmmm...good point by thelatemail here...is it still a typo or should I answer? (or dupe)?
 
1 hour later…
 
1 hour later…
12:22
One more delete vote.
-1
A: datatable does not render in Shiny Dashboard

Victoria Salasui <- dashboardPage( dashboardHeader(), dashboardSidebar(), dashboardBody(DT::dataTableOutput("table1")) )

Delete NAA
-1
A: Subtracting the first row from all following rows

T. RoseThe desired output should be: label Int_A Int_B Int_C ... BLK 10 20 30 ... SMP 2.5 2.5 5 ... STD 5 5 10 ... ... It does not matter if the BLK-row remains unchanged or will be set to zero.

@PierreLafortune Who came, Hadley?
12:52
@zx8754 Thanks for the heads up. I would have never seen that.
@BrodieG Maybe create a tag, too early?
@Uwe np, that's why i posted as a comment
13:32
Comment of the week
@DavidArenburg I need to explain to you: My life is a complete mess. I am in deep tribble. No funs anymore. Should I fill my half-full glass? Get a glimpse of the unive..ehm..tidyverse? separate from my wife? Well, no, how should I explain to her? She will slice me. Should I join groups of anonymous tibliholics near my nest? No, not the right group_size for me. For the nth time, order_by midnight for delivery next day! Why?! To spread my risks? I need to pull myself together, expand my views, and move on - rolling stones gather no moss! — Henrik 36 mins ago
8
13:48
@zx8754 Done.
14:56
As we say here in Cyprus, "Thursday is over, the week is over"
c u tomorrow guys...and cath :)
15:35
@DavidArenburg brillant!
15:47
in R, 5 hours ago, by Spacedman
https://stat.ethz.ch/pipermail/r-announce/2017/000620.html
^ so time for me to move to linux
16:00
So now only MRAN R build will exist?
@m0nhawk tbd, can wait to hear what Andrie reports
 
1 hour later…
17:20
@Frank Probably RStudio or the R consortium can do a build..
17:31
yeah, hopefully
i'd also miss rtools (which i still use to install devel data.table)
What's wrong with MRAN?
anyone got a dupe for split-apply-combine? stackoverflow.com/q/46474741
@m0nhawk does it have something like rtools that i can use to install packages from source on windows?
@m0nhawk what i know of mran is that it created a ton of broken links on SO after revo r was bought and i suspect that it exists in addition to cran only for the purpose of the extend phase of embrace, extend, extinguish
 
1 hour later…
@DavidArenburg another one:
Had Lee mutated lead band_members? Just between you and me, they're all_equal: a distinct feature is their compulsive preoccupation with_order. To summarize, this is not a case_when we unite and arrange a last party. No, don't do it. — Henrik 3 hours ago
@Frank nearly gone
@Frank But, they make MRAN really nice and fast.
19:15
Microsoft comes on all fronts.
20:14
omg what is this "sport"?
ha, wat
@Jaap he's really internalized the 'verse
@m0nhawk tbh, speed is less of an issue for me than reliability and ease of use. as someone who compiles code maybe a couple times a year, it's nice to have binaries, and it's nice to have them on a lot of mirrors (as opposed to depending on the generosity of a single company). speed matters less since i only use a few packages so don't need to interact with the **AN often
@DavidArenburg yep Hadley
It was pretty uneventful.
Interesting to meet the guy behind the madness though
@Frank I think there is nothing wrong with CRAN. It will still exist. Also, I'm using CRAN in Microsoft R.
It's a nice way to help R community, I will check how it is compiled.
@zx8754 lol that looks like a headache
I want to tell people to stop using length(which(bool_x)) and instead use sum(bool_x). I remember some old discussions on this. True?
20:34
@PierreLafortune I don't remember the discussions, but the second version is both faster and clearer.
I wanted to show evidence of a downfall of the first if there was one. As in which returning integer(0) when none are true. But this resolves to 0.
I'll look around for edge cases
First one won't work for empty lists and vectors.
@PierreLafortune x[-which(cond)] vs x[cond] is a somewhat related edge case
if cond is always false, you get x[integer(0)] instead of x[] when going the which way
And length + which is O(n^2).
@m0nhawk interesting. one could argue that an error is the "right" answer, and the second case gets it wrong
20:41
While sum is just O(n).
last comment referring to empty vectors
sum(NULL) returning 0 could be sketchy
@PierreLafortune In mathematics the sum of empty set of numbers is zero.
fair point
@m0nhawk which is O(n), right? how does which + length become O(n)?
> X = 1; XL = rep(1L, 1e7L); system.time(length(X)); system.time(length(XL))
   user  system elapsed
      0       0       0
   user  system elapsed
      0       0       0
Oh, sorry, I said nonsense.
20:46
ok np
@m0nhawk in that spirit, consider the expression abs(NA) + 1 > 0 -- NA is an unknown value, but whatever it is, this should evaluate to true, but...
nope, thanks to order of operations. i wonder if mathematica would do better, or maybe it doesn't have a missing-data notion
@Frank interesting edge case.
NULL + NULL
I expected to see integer(0) not numeric
@PierreLafortune nice :) i feel like that's rationalizable as the right behavior, NULL doesn't promote to integer, since it's not part of that hierarchy (logical, integer, etc)
@PierreLafortune Another interesting one. I wouldn't have had an expectation.
@PierreLafortune It's integer(0) for me...
20:56
interesting
Maybe someone gets NULL back? Thinking about it that makes most sense to me.
I'm on mac 10.12, R 3.3.2
oh, nvm, nope i cannot rationalize it. for some reason my eyes betrayed me and i thought i saw NULL back again
R version 3.4.1
Windows MRAN
@PierreLafortune You and CRAN. Caused my tests to fail b/c old-rel is at the wrong version there.
Should be 3.3.3.
20:58
next puzzle, unary +NULL gives an error
And back to sum(NULL), I don't think this should return 0. Empty "numerical" sets may sum to zero, but R can have sets of non-numerical objects which do not have a math sum
abs(NA) + 1 > 0 actually, this is correct and NA.
In R NA is a logical value.
abs(NaN) + 1 > 0
Is also OK.
@m0nhawk I think Frank is saying that for any possible value the statement should be TRUE, so even though we don't know what NA is, the statement must be TRUE.
@m0nhawk i just wrote it that way for conciseness, the same result is seen with abs(NA_real_) + 1 > 0
similar to how NA | TRUE evaluates to true
@Frank Maybe we can convince Hadley to mask > with one that behaves properly and recognizes the truth of the statement ;).
21:05
:)
@Frank NA != a number that is unknown. It can also mean "apple", and I don't think you think that apple + 1 is larger than 0.
@eddi Wouldn't that be NaN?
@eddi NA_real_ is an unknown number
as.numeric('apple') is equal to NA_real_
@BrodieG I'd say that NaN is a subset of NA_real_.
@eddi Fair enough.
21:17
@eddi I don't think so.
NA is "not available".
And NaN is "not a number".
@m0nhawk I think he means from an R semantics standpoint, as per is.na(NaN) being TRUE.
I mean from both R and life standpoints. Say value "a" is "not available". Do you think that provides enough information to you to say that it has to be a number?
> is.nan(NA)
[1] FALSE
@BrodieG Then it's logical.
NaN is a not "not available".
that's right, NaN is a subset of NA, but not vice versa
so NaN is.na, but NA is not is.nan
@eddi not sure i follow. if you project apple onto the space of real numbers then it becomes a real number with an unknown value. the space of numbers doesn't become {numbers} u {"apple"} at that point...?
if NA really can mean apple, then NA | TRUE should also return NA, right?
apple | TRUE does not compute, so we give up and say NA, just as the rationale for NA with abs(NA) + 1 > 0, if i understand you correctly
21:30
In case of as.numeric('apple') it is NA due to not available "apple" in numeric field.
@Frank point is that you can't project an apple onto the real numbers, as hard as you may want to try, and if you claim that as.numeric('apple') + 1 > 0 then you know something about apples that I don't.
@eddi so your interpretation of NA is "hopelessly unknown thing that confounds analysis"? so NA | TRUE should also conform to your rule, NA (logical) could also be as.logical("apple")
@Frank That's a curious case. One could make the argument that TRUE | apple is TRUE (because once you see "TRUE |" you can close your eyes), and thus so should be apple | TRUE.
@eddi btw, you missed the abs() in this comment. not sure if you forgot or are in this convo having missed that part
but I don't see any issue with that being NA as well
@Frank I didn't miss it. I read it as abs(as.numeric('apple')).
21:34
ok, meant you transcribed without it there is all
my understanding is that the design goal of NA_field_ was to hold "undecided member of this field". ideally we'd want logical statements involving it to behave accordingly... another working example any(c(1, NA) > 0) does give true (same basic example as NA | TRUE) ... i guess these any, all, &, | special cases are just implemented for convenience but don't reflect aspiration to this more ambitious use of missing values
in R-intro, the rationale for 1 == NA being NA is given in terms of it being "undecidable", but maybe that's a throwaway term
Design goals are great, but unless as.numeric('apple') stops producing NA_real_ you can't interpret NA_real_ as an "a real number that someone didn't bother to tell me", and have to interpret it as "hopelessly unknown thing", to borrow the term:)
@eddi heh, well, i am fine with disagreeing on that. when i call a function, i do have its range condition in mind and not union(range, {maybe an apple}) :) in the sense of en.wikipedia.org/wiki/Range_(mathematics)
21:49
@Frank you need to elaborate - I'm missing your point (it's NA?)
@Satrapes feel free to read, but write access is limited. Check out the faq in upper right corner for details
@eddi yes, as.numeric("apple") is NA which to me means "unknown number" not "anything". so class(is.numeric("apple")) is still numeric and i can still proceed as if my vector x = as.numeric(c("apple", "yam", "11", "kumquat", "22")) describes numbers, because if i can't, i should really have an if(anyNA(x)) stop("omgwtfbbq") line right afterwards
anyway, that's how i think about and use NAs. maybe it comes down to where i see them and what i need to do in my work
(side note: i should add "omgwtfbbq" messages anyways, to soften the blow of a script failing)
2
@Frank I was going to say the same thing. I went to a omgwtfbbq a few weeks ago. It was pretty crazy
:)

« first day (890 days earlier)      last day (2633 days later) »