Luke Tierney

138 posts

Luke Tierney

Luke Tierney

@LukeTierney4

Katılım Eylül 2012
243 Takip Edilen494 Takipçiler
Antoine Fabri
Antoine Fabri@antoine_fabri·
In #rstats an environment can be its own parent, or we can have longer cycles. I wonder if there's anything cool we can do with this. e1 <- new.env() e2 <- new.env() e3 <- new.env() parent.env(e1) <- e2 parent.env(e2) <- e3 parent.env(e3) <- e1
English
5
1
11
2K
Luke Tierney
Luke Tierney@LukeTierney4·
@tslumley Went through the same considerations eons ago with LispStat. Ended up with nonlinear models inheriting from linear in order to pick up things like diagnostics.
English
0
0
0
118
Dirk Eddelbuettel
Dirk Eddelbuettel@eddelbuettel·
@mpiktas Character variables are internally hashed so you save on use of repeated values; that was an important change many (many!!) moons ago. We can all bow in the general direction of Iowa and thank @LukeTierney4 for this (and so many other internal improvements). #rstats
English
1
1
9
1.2K
Vaidotas Zemlys-Balevičius
I have a 12mln row data.frame in R with 6 columns. 5 columns lots of repeating strings. Exported CSV weighs ~3Gb, but object.size shows that it uses only 0.6Gb, or 8 bytes exactly for each cell. Does R use some in-memory columnar storage? #rstats
English
2
2
1
1.9K
Luke Tierney
Luke Tierney@LukeTierney4·
@ijlyttle So THAT’s the reason they didn’t have room for an ‘r’ in the new name. Makes sense now. Thanks!
English
0
0
3
0
Ian Lyttle
Ian Lyttle@ijlyttle·
in somewhat related news, thinking of trying "posit" as my new wordle starter
English
2
0
8
0
Ian Lyttle
Ian Lyttle@ijlyttle·
following a six-day hiatus, had a lucky second guess Wordle 406 3/6* ⬛⬛⬛🟨⬛ 🟩⬛⬛⬛🟨 🟩🟩🟩🟩🟩
English
1
0
0
0
Luke Tierney
Luke Tierney@LukeTierney4·
@tslumley @hadleywickham That was the first one that went through my mind as well. Can't imagine why. Would have come with some good emoji too🍺🍻
English
0
0
0
0
Hadley Wickham
Hadley Wickham@hadleywickham·
@asmae_toumi I realise now we should’ve done a bit where I wrestle an actual python
English
11
6
194
0
Luke Tierney
Luke Tierney@LukeTierney4·
@jimhester_ Seems like a missed opportunity to provide a good quality mask with the conference badge printed on it
English
1
0
1
0
Luke Tierney
Luke Tierney@LukeTierney4·
@henrikbengtsson @jimhester_ @tslumley @ekuber @Thoughtfulnz Nobody is suggesting removing that. But neither python nor julia tell you how to get out in their startup messages, and that's OK: for both an end of file (^D) does the job, which the generic terminal REPL quit. And that works in R too.
English
1
0
0
0
Luke Tierney
Luke Tierney@LukeTierney4·
@jimhester_ @tslumley @ekuber @Thoughtfulnz In any case, the startup message would most likely have scrolled off the screen at the point where 'type this' information would be useful. An IDE with a help menu that is always visible and provides this information would be more useful.
English
1
0
0
0
Luke Tierney
Luke Tierney@LukeTierney4·
@jimhester_ @tslumley @ekuber @Thoughtfulnz One could argue that having a larger startup message that python, as R and Julia both do, might make it slightly more likely that a user would notice and look, but I doubt it.
English
1
0
0
0
Jim Hester
Jim Hester@jimhester_·
@tslumley @ekuber @Thoughtfulnz I think the problem is more that the rest of the default startup message is not very useful for most interactive sessions, and the help part is buried in the middle of a sentence so users just ignore all of it because it doesn’t seem relevant
English
1
0
4
0
Luke Tierney
Luke Tierney@LukeTierney4·
@sid_mnnit @kategchalmers Using vectorized operations, if that is possible, will give the best performance. But rewriting a loop in terms of vectorized operations is not always easy.
English
0
0
1
0
Luke Tierney
Luke Tierney@LukeTierney4·
@sid_mnnit @kategchalmers In principle, apply function calls could more easily be optimized to perform better, but this currently doesn't happen. Once you are used to them, using apply functions can produce cleaner code and simplify debugging.
English
1
0
1
0
Kate Chalmers
Kate Chalmers@kategchalmers·
I prefer loops in #RStats because I found them easier as a beginner. I sometimes feel like I’m a minority/missing out on something by not using apply tho. What do other people use? Is it worth making the switch? #R #DataScience #coding
English
75
14
271
0