Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cwyers
on July 5, 2019
|
parent
|
context
|
favorite
| on:
An opinionated view of the Tidyverse “dialect” of ...
map() in purrr is functionally equivalent to lapply(). If you can do something in lapply, you can do it with map.
notafraudster
on July 6, 2019
[–]
Right, which is why my example used its cousin, apply, instead of lapply. apply over the row margins of a data frame does not have an equivalent in tidyverse.
hadley
on July 6, 2019
|
parent
[–]
Beware that apply() coerces data frames to matrices, which is time consuming and forces all columns to have the same type.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: