Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hadley
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
91.
▲
by
hadley
10y ago
cough tidyverse cough
92.
▲
by
hadley
10y ago
What would you recommend for visualisation?
93.
▲
by
hadley
10y ago
If you pre-order on amazon, you'll get the final version as soon as it's available.
94.
▲
by
hadley
10y ago
No, I wish there was. Those were painstakingly drawn by hand.
95.
▲
by
hadley
10y ago
No, because I don't use Jupyter notebooks.
96.
▲
by
hadley
10y ago
I'm the author, and I'm happy to answer any questions. The book should be in print by (hopefully) the end of this year, or definitely by Jan 2017. The content will not change significantly, but there is will be minor fixes and a
97.
▲
R for Data Science
(r4ds.had.co.nz)
230 points
by
hadley
10y ago
|
70 comments
98.
▲
by
hadley
10y ago
I've tried this - it helps, but it's not a silver bullet. (And GitHub doesn't use it in PRs)
99.
▲
by
hadley
10y ago
This is a real issue. I ask contributers to add a bullet at the top of NEWS.md and I frequently have to manually fix merge conflicts. This is only a problem if you're handling multiple PRs simultaneously so your project has to reach a
100.
▲
by
hadley
10y ago
No, one language (Python) isn't the right tool for every job.
101.
▲
by
hadley
10y ago
That's changed in the second edition of the book, based on the feedback I had from many people who were teaching ggplot2 to first time R users. If you've never used R before, neither base graphics nor ggplot2 is intuitive, so you&
102.
▲
by
hadley
10y ago
Because the chances are you learning R to do data science/analysis. And you're best off spending a little extra work to learn the tidyverse - that investment pays off with an ecosystem of tools that all fit together to help you s
103.
▲
by
hadley
10y ago
I disagree. The inconsistencies across the apply family makes them hard to learn, and the absence of an apply function for data frames is particularly frustrating. I obviously also disagree on what is idiomatic R. If you know ggplot2, there
104.
▲
by
hadley
10y ago
No idea about Hadley?! Oh the horror :p
105.
▲
by
hadley
10y ago
Btw it's called the tidyverse now ;)
106.
▲
by
hadley
10y ago
I think this would really benefit from some thoughtful indenting to illustrate the structure. For example, instead of: SELECT members.firstname AS "First Name", members.lastname AS "Last Name" FROM borrowings
107.
▲
by
hadley
10y ago
You can do it with httpuv, but it might a bit clunky. I think better websockets support, and better async generally, is on the roadmap for the next year.
108.
▲
by
hadley
10y ago
JSON is often a pain because it's so hierarchical and un-dataframe like. I have a few notes on working with it here: http://r4ds.had.co.nz/hierarchy.html . `ifelse()` is a nightmare of a function but I don't think
109.
▲
by
hadley
10y ago
To me, citing readr feels like citing the company that made your pipettes. It's just useful infrastructure.
110.
▲
by
hadley
10y ago
Most R users aren't programmers, and a LISP-y interface, while powerful, tends to be intimidating.
111.
▲
by
hadley
10y ago
It took me 5 minutes to figure out how that actually did work! That is rather esoteric code! (FWIW the reason that there's no native support in ggplot2 for this sort of smoothing is that I think it's a really bad idea as it tends
112.
▲
by
hadley
10y ago
I totally buy that argument, but there's probably not a huge overlap in the set of "common tasks" for R and python.
113.
▲
by
hadley
10y ago
That is not true. The FDA uses R internally, and there is no requirement that you must use any specific software tool. See https://www.r-project.org/doc/R-FDA.pdf for more details
114.
▲
by
hadley
10y ago
I'd recommend reading http://r4ds.had.co.nz for an R workflow that eliminates a lot of those pain points. (Except for infix string concatenation - I've never really understood why people prefer that to paste(). Maybe
115.
▲
by
hadley
10y ago
I would love to know what you mean by data wrangling because I think R has a lot of good tools for it.
116.
▲
by
hadley
10y ago
No. R is a language that is beautifully well suited to data analysis and interactive computing. Stat people don't use it simply because we don't know better.
117.
▲
by
hadley
10y ago
Or plot(sin) plot(D(sin)) (Programming from memory on my phone so might be slightly off)
118.
▲
by
hadley
10y ago
And on a log scale you probably want to set the minimum value to 1 since the log of zero is negative infinity (I suspect that's the root cause of your ggvis problem)
119.
▲
by
hadley
10y ago
Very strongly disagree that understanding statistics is a prerequisite to learning R. There is a lot you can do with R with understanding statistics. I also dislike the claim that R is not a real programming language. It is. Just because it
120.
▲
by
hadley
11y ago
I hope I didn't come across as "thou shalt not" - it's just never going to be high in my priority list. (And even for your use case I would think you'd be better off keeping the models in a list and saving that. The
More ›