Excelente update no dplyr! A principal mudança é a facilidade para programar, permitindo que você utilize mais facilmente o dplyr em suas próprias funções/pacotes (sem ter que ficar fazendo malabarismos com eval e substitute).
I’m very pleased to announce that dplyr 0.3 is now available from CRAN. Get the latest version by running:
install.packages("dplyr")
There are four major new features:
- Four new high-level verbs:
distinct()
,slice()
,rename()
, andtransmute()
. - Three new helper functions
between
,count()
, anddata_frame()
. - More flexible join specifications.
- Support for row-based set operations.
There are two new features of interest to developers. They make it easier to write packages that use dplyr:
- It’s now much easier to program with dplyr (using standard evaluation).
- Improved database backends.
I describe each of these in turn below.
New verbs
distinct()
returns distinct (unique) rows of a table:
library(nycflights13) # Find all origin-destination pairs flights %>% select(origin, dest) %>% distinct() #> Source: local data frame [224 x 2] #> #> origin dest #> 1 EWR IAH #> 2 LGA IAH #> 3 JFK MIA #> 4 JFK BQN…
Ver o post original 1.285 mais palavras