dplyr 0.3


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).

RStudio Blog

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(), and transmute().
  • Three new helper functions between, count(), and data_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

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair /  Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair /  Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair /  Alterar )

Conectando a %s