« first day (1637 days earlier)      last day (1655 days later) » 

12:15 AM
@zx8754 not sure I understood if you agree or disagree with him
 
 
6 hours later…
6:17 AM
morning all
 
6:38 AM
hello
@Sotos how is your coffee consumption?
 
Hello
 
@Jaap My coffee mugs are getting bigger and bigger
 
27 messages moved to Trash can
 
@DavidArenburg Do you agree with him? Maybe this a bit broad question, there might be some points I agree.
@Sotos you will get to bath level pretty soon.
 
@Sotos "oktober fest" size?
 
6:46 AM
@zx8754 hahaha...I ll need a bigger office :D
@Jaap Yes...the boot :)
 
hello hello :-)
 
7:22 AM
@Frank phew, I'd like to see the code on how they end up with this mistake.
 
7:44 AM
Hello
 
8:26 AM
I'm still baffled checking meta.se and the "Monica-Gate" ...
 
8:41 AM
So far I've been successful at more or less steering clear of any meta posts.
It's sad that we have to talk about this to begin with.
SE could have a subtitle - Don't be a dick and be done with it.
 
@RomanLuštrik I follow this rule, too. But some want to know "exactly" what is meant by this regarding topic x, y z, etc., then all shit hits the fan, as everyone has their own truth(s).
And SE chose one of those truth(s) and killing all others.
 
 
2 hours later…
@zx8754 I was gonna say "too broad" anyway but there is an accepted answer so I guess rollback to first form of the Q
 
Also reject edit on answer
I think OP is trying to delete the whole thing
 
@zx8754 strange, what would be the point?
 
How can I drop a data.table when selecting one column?
DT = data.table(a=1:3,b=c(4,5,6),d=c(7L,8L,9L))
DT[, j = .(var), with = FALSE]

# Error in `[.data.table`(DT, , j = .(var), with = FALSE) :
#   When with=FALSE, j-argument should be of type logical/character/integer indicating the columns to select.

DT[, j = colnames(DT) %in% var, with = FALSE]
b
1: 4
2: 5
3: 6
I also tried
DT[, j = colnames(DT) %in% var]
DT[, j = .(colnames(DT) %in% var)]
 
unlist or use of $
 
11:20 AM
unlist sounds expensive.
 
Oct 10 at 8:57, by Jaap
@zx8754 DT[[ someVar ]]?
 
@RomanLuštrik how about get(var)?
 
@zx8754 Brilliant, thanks
This should be in FAQ if not already.
If it is, I missed it.
1.5 I assigned a variable mycol="x" but then DT[,mycol] returns "x". How
do I get it to look up the column name contained in the mycol
variable?
This is what we mean when we say the j expression ’sees’ objects in the calling scope. The
variable mycol does not exist as a column name of DT so R then looked in the calling scope and
found mycol there and returned its value "x". This is correct behaviour. Had mycol been a
column name, then that column’s data would have been returned. What you probably meant was
 
@RomanLuštrik Thanks @Jaap ;)
 
11:51 AM
@Cath dupe but not the right target: stackoverflow.com/q/58393849/680068
 
@zx8754 I admit I read fast :-/ I'll look for a better target. Thanks
@zx8754 I think I got it
 
12:29 PM
@zx8754 you're welcome; it's also a base R thingy ;-)
so maybe thank R Core too ;-)
 
1:07 PM
After deploying an app to shinyapps.io, subsetting of a matrix was notoriously slow. Four-8 seconds for a 2000x20000 matrix. Today I tried to optimize things using data.table and when I deployed the new version, RStudio seemed to fix something and now the old version works as fast as expected. Dang.
DT[[ 'somevar' ]] took half the time compared to MATRIX[, 'somevar']. But I'm talking 75 ms vs 150 ms...
 
1:53 PM
@RomanLuštrik You are not alone in looking for this. Hence, my answer got 90 upvotes so far.
 
2:08 PM
91 :)
 
 
3 hours later…
4:51 PM
@zx8754 I agree with you that he sound a bit strong & extreme. In general, I believe that extreme people are the most genuine ones and truly believe in what they say. The problem in life is that though, is that many people can be right simultaneously, while representing polar opinions, i.e., life isn't black and white. Hence, instead of being always right, one should be always smart.
Another thing is, that one should always try to check how his actions affect other people
 
 
1 hour later…
5:58 PM
@zx8754 until i hear more, i'll assume excel was involved :)
 
 
2 hours later…
8:13 PM
wow, didn't expect that one
441
Q: I'm resigning as a Stack Overflow Community Elected Moderator

George StockerI'm resigning as a Stack Overflow Moderator. Thank you to everyone who has worked hard to make this Q&A site what it is. I'm resigning for three reasons: Stack Overflow Inc. has forgotten how to lead, how to persuade, and how to talk with the community. This has been a slow decline since 2014...

 

« first day (1637 days earlier)      last day (1655 days later) »