dplyr/ 0000755 0001762 0000144 00000000000 13615060710 011403 5 ustar ligges users dplyr/NAMESPACE 0000644 0001762 0000144 00000027034 13614573561 012644 0 ustar ligges users # Generated by roxygen2: do not edit by hand
S3method("[",fun_list)
S3method("[",grouped_df)
S3method(all.equal,tbl_df)
S3method(anti_join,data.frame)
S3method(anti_join,tbl_df)
S3method(arrange,data.frame)
S3method(arrange,default)
S3method(arrange,grouped_df)
S3method(arrange,tbl_df)
S3method(arrange_,data.frame)
S3method(arrange_,tbl_df)
S3method(as.data.frame,grouped_df)
S3method(as.data.frame,rowwise_df)
S3method(as.data.frame,tbl_cube)
S3method(as.table,tbl_cube)
S3method(as.tbl,data.frame)
S3method(as.tbl,tbl)
S3method(as.tbl_cube,array)
S3method(as.tbl_cube,data.frame)
S3method(as.tbl_cube,matrix)
S3method(as.tbl_cube,table)
S3method(as_tibble,grouped_df)
S3method(as_tibble,tbl_cube)
S3method(auto_copy,tbl_cube)
S3method(auto_copy,tbl_df)
S3method(cbind,grouped_df)
S3method(collapse,data.frame)
S3method(collect,data.frame)
S3method(common_by,"NULL")
S3method(common_by,character)
S3method(common_by,default)
S3method(common_by,list)
S3method(compute,data.frame)
S3method(copy_to,DBIConnection)
S3method(copy_to,src_local)
S3method(default_missing,data.frame)
S3method(default_missing,default)
S3method(dim,tbl_cube)
S3method(distinct,data.frame)
S3method(distinct,default)
S3method(distinct,grouped_df)
S3method(distinct,tbl_df)
S3method(distinct_,data.frame)
S3method(distinct_,grouped_df)
S3method(distinct_,tbl_df)
S3method(do,"NULL")
S3method(do,data.frame)
S3method(do,default)
S3method(do,grouped_df)
S3method(do,rowwise_df)
S3method(do_,"NULL")
S3method(do_,data.frame)
S3method(do_,grouped_df)
S3method(do_,rowwise_df)
S3method(filter,data.frame)
S3method(filter,default)
S3method(filter,tbl_cube)
S3method(filter,tbl_df)
S3method(filter,ts)
S3method(filter_,data.frame)
S3method(filter_,tbl_cube)
S3method(filter_,tbl_df)
S3method(format,src_local)
S3method(full_join,data.frame)
S3method(full_join,tbl_df)
S3method(group_by,data.frame)
S3method(group_by,default)
S3method(group_by,rowwise_df)
S3method(group_by,tbl_cube)
S3method(group_by_,data.frame)
S3method(group_by_,rowwise_df)
S3method(group_by_,tbl_cube)
S3method(group_by_drop_default,default)
S3method(group_by_drop_default,grouped_df)
S3method(group_data,data.frame)
S3method(group_data,grouped_df)
S3method(group_data,rowwise_df)
S3method(group_indices,data.frame)
S3method(group_indices,default)
S3method(group_indices,grouped_df)
S3method(group_indices,rowwise_df)
S3method(group_indices_,data.frame)
S3method(group_indices_,grouped_df)
S3method(group_indices_,rowwise_df)
S3method(group_keys,data.frame)
S3method(group_keys,grouped_df)
S3method(group_keys,rowwise_df)
S3method(group_modify,data.frame)
S3method(group_modify,grouped_df)
S3method(group_nest,data.frame)
S3method(group_nest,grouped_df)
S3method(group_size,data.frame)
S3method(group_size,grouped_df)
S3method(group_size,rowwise_df)
S3method(group_split,data.frame)
S3method(group_split,grouped_df)
S3method(group_split,rowwise_df)
S3method(group_trim,data.frame)
S3method(group_trim,grouped_df)
S3method(group_vars,default)
S3method(group_vars,grouped_df)
S3method(group_vars,tbl_cube)
S3method(groups,default)
S3method(groups,grouped_df)
S3method(groups,tbl_cube)
S3method(hybrid_call,data.frame)
S3method(inner_join,data.frame)
S3method(inner_join,tbl_df)
S3method(intersect,data.frame)
S3method(intersect,default)
S3method(left_join,data.frame)
S3method(left_join,tbl_df)
S3method(mutate,data.frame)
S3method(mutate,default)
S3method(mutate,tbl_df)
S3method(mutate_,data.frame)
S3method(mutate_,tbl_df)
S3method(n_groups,data.frame)
S3method(n_groups,grouped_df)
S3method(n_groups,rowwise_df)
S3method(nest_join,data.frame)
S3method(nest_join,tbl_df)
S3method(print,BoolResult)
S3method(print,all_vars)
S3method(print,any_vars)
S3method(print,dplyr_sel_vars)
S3method(print,fun_list)
S3method(print,hybrid_call)
S3method(print,location)
S3method(print,rowwise_df)
S3method(print,src)
S3method(print,tbl_cube)
S3method(pull,data.frame)
S3method(rbind,grouped_df)
S3method(recode,character)
S3method(recode,factor)
S3method(recode,numeric)
S3method(rename,data.frame)
S3method(rename,default)
S3method(rename,grouped_df)
S3method(rename,tbl_cube)
S3method(rename_,data.frame)
S3method(rename_,grouped_df)
S3method(rename_,tbl_cube)
S3method(right_join,data.frame)
S3method(right_join,tbl_df)
S3method(same_src,data.frame)
S3method(same_src,tbl_cube)
S3method(sample_frac,data.frame)
S3method(sample_frac,default)
S3method(sample_n,data.frame)
S3method(sample_n,default)
S3method(select,data.frame)
S3method(select,default)
S3method(select,grouped_df)
S3method(select,list)
S3method(select,tbl_cube)
S3method(select_,data.frame)
S3method(select_,grouped_df)
S3method(select_,tbl_cube)
S3method(semi_join,data.frame)
S3method(semi_join,tbl_df)
S3method(setdiff,data.frame)
S3method(setdiff,default)
S3method(setequal,data.frame)
S3method(setequal,default)
S3method(slice,data.frame)
S3method(slice,default)
S3method(slice,tbl_df)
S3method(slice_,data.frame)
S3method(slice_,tbl_df)
S3method(src_tbls,src_local)
S3method(summarise,data.frame)
S3method(summarise,default)
S3method(summarise,tbl_cube)
S3method(summarise,tbl_df)
S3method(summarise_,data.frame)
S3method(summarise_,tbl_cube)
S3method(summarise_,tbl_df)
S3method(tbl,DBIConnection)
S3method(tbl,src_local)
S3method(tbl_sum,grouped_df)
S3method(tbl_vars,data.frame)
S3method(tbl_vars,tbl_cube)
S3method(transmute,default)
S3method(transmute,grouped_df)
S3method(transmute_,default)
S3method(transmute_,grouped_df)
S3method(ungroup,data.frame)
S3method(ungroup,grouped_df)
S3method(ungroup,rowwise_df)
S3method(union,data.frame)
S3method(union,default)
S3method(union_all,data.frame)
S3method(union_all,default)
export("%>%")
export(.data)
export(add_count)
export(add_count_)
export(add_row)
export(add_rownames)
export(add_tally)
export(add_tally_)
export(all_equal)
export(all_vars)
export(anti_join)
export(any_vars)
export(arrange)
export(arrange_)
export(arrange_all)
export(arrange_at)
export(arrange_if)
export(as.tbl)
export(as.tbl_cube)
export(as_data_frame)
export(as_label)
export(as_tibble)
export(auto_copy)
export(bench_tbls)
export(between)
export(bind_cols)
export(bind_rows)
export(case_when)
export(changes)
export(check_dbplyr)
export(coalesce)
export(collapse)
export(collect)
export(combine)
export(common_by)
export(compare_tbls)
export(compare_tbls2)
export(compute)
export(contains)
export(copy_to)
export(count)
export(count_)
export(cumall)
export(cumany)
export(cume_dist)
export(cummean)
export(current_vars)
export(data_frame)
export(data_frame_)
export(db_analyze)
export(db_begin)
export(db_commit)
export(db_create_index)
export(db_create_indexes)
export(db_create_table)
export(db_data_type)
export(db_desc)
export(db_drop_table)
export(db_explain)
export(db_has_table)
export(db_insert_into)
export(db_list_tables)
export(db_query_fields)
export(db_query_rows)
export(db_rollback)
export(db_save_query)
export(db_write_table)
export(dense_rank)
export(desc)
export(dim_desc)
export(distinct)
export(distinct_)
export(distinct_all)
export(distinct_at)
export(distinct_if)
export(distinct_prepare)
export(do)
export(do_)
export(dr_dplyr)
export(ends_with)
export(enexpr)
export(enexprs)
export(enquo)
export(enquos)
export(ensym)
export(ensyms)
export(eval_tbls)
export(eval_tbls2)
export(everything)
export(explain)
export(expr)
export(failwith)
export(filter)
export(filter_)
export(filter_all)
export(filter_at)
export(filter_if)
export(first)
export(frame_data)
export(full_join)
export(funs)
export(funs_)
export(glimpse)
export(group_by)
export(group_by_)
export(group_by_all)
export(group_by_at)
export(group_by_drop_default)
export(group_by_if)
export(group_by_prepare)
export(group_cols)
export(group_data)
export(group_indices)
export(group_indices_)
export(group_keys)
export(group_map)
export(group_modify)
export(group_nest)
export(group_rows)
export(group_size)
export(group_split)
export(group_trim)
export(group_vars)
export(group_walk)
export(grouped_df)
export(groups)
export(hybrid_call)
export(id)
export(ident)
export(if_else)
export(inner_join)
export(intersect)
export(is.grouped_df)
export(is.src)
export(is.tbl)
export(is_grouped_df)
export(lag)
export(last)
export(last_col)
export(lead)
export(left_join)
export(location)
export(lst)
export(lst_)
export(make_tbl)
export(matches)
export(min_rank)
export(mutate)
export(mutate_)
export(mutate_all)
export(mutate_at)
export(mutate_each)
export(mutate_each_)
export(mutate_if)
export(n)
export(n_distinct)
export(n_groups)
export(na_if)
export(near)
export(nest_join)
export(new_grouped_df)
export(nth)
export(ntile)
export(num_range)
export(one_of)
export(order_by)
export(percent_rank)
export(progress_estimated)
export(pull)
export(quo)
export(quo_name)
export(quos)
export(rbind_all)
export(rbind_list)
export(recode)
export(recode_factor)
export(rename)
export(rename_)
export(rename_all)
export(rename_at)
export(rename_if)
export(rename_vars)
export(rename_vars_)
export(right_join)
export(row_number)
export(rowwise)
export(same_src)
export(sample_frac)
export(sample_n)
export(select)
export(select_)
export(select_all)
export(select_at)
export(select_if)
export(select_var)
export(select_vars)
export(select_vars_)
export(semi_join)
export(setdiff)
export(setequal)
export(show_query)
export(slice)
export(slice_)
export(sql)
export(sql_escape_ident)
export(sql_escape_string)
export(sql_join)
export(sql_select)
export(sql_semi_join)
export(sql_set_op)
export(sql_subquery)
export(sql_translate_env)
export(src)
export(src_df)
export(src_local)
export(src_mysql)
export(src_postgres)
export(src_sqlite)
export(src_tbls)
export(starts_with)
export(summarise)
export(summarise_)
export(summarise_all)
export(summarise_at)
export(summarise_each)
export(summarise_each_)
export(summarise_if)
export(summarize)
export(summarize_)
export(summarize_all)
export(summarize_at)
export(summarize_each)
export(summarize_each_)
export(summarize_if)
export(sym)
export(syms)
export(tally)
export(tally_)
export(tbl)
export(tbl_cube)
export(tbl_df)
export(tbl_nongroup_vars)
export(tbl_sum)
export(tbl_vars)
export(tibble)
export(top_frac)
export(top_n)
export(transmute)
export(transmute_)
export(transmute_all)
export(transmute_at)
export(transmute_if)
export(tribble)
export(trunc_mat)
export(type_sum)
export(ungroup)
export(union)
export(union_all)
export(validate_grouped_df)
export(vars)
export(with_order)
export(wrap_dbplyr_obj)
import(rlang)
importFrom(R6,R6Class)
importFrom(Rcpp,Rcpp.plugin.maker)
importFrom(Rcpp,cppFunction)
importFrom(assertthat,"on_failure<-")
importFrom(assertthat,assert_that)
importFrom(assertthat,is.flag)
importFrom(glue,glue)
importFrom(magrittr,"%>%")
importFrom(methods,is)
importFrom(pkgconfig,get_config)
importFrom(rlang,":=")
importFrom(rlang,.data)
importFrom(rlang,as_label)
importFrom(rlang,as_name)
importFrom(rlang,dots_n)
importFrom(rlang,enquo)
importFrom(rlang,enquos)
importFrom(rlang,expr)
importFrom(rlang,sym)
importFrom(rlang,syms)
importFrom(stats,lag)
importFrom(stats,setNames)
importFrom(stats,update)
importFrom(tibble,add_row)
importFrom(tibble,as_data_frame)
importFrom(tibble,as_tibble)
importFrom(tibble,data_frame)
importFrom(tibble,data_frame_)
importFrom(tibble,frame_data)
importFrom(tibble,glimpse)
importFrom(tibble,is_tibble)
importFrom(tibble,lst)
importFrom(tibble,lst_)
importFrom(tibble,new_tibble)
importFrom(tibble,tbl_sum)
importFrom(tibble,tibble)
importFrom(tibble,tribble)
importFrom(tibble,trunc_mat)
importFrom(tibble,type_sum)
importFrom(tibble,view)
importFrom(tidyselect,contains)
importFrom(tidyselect,ends_with)
importFrom(tidyselect,everything)
importFrom(tidyselect,last_col)
importFrom(tidyselect,matches)
importFrom(tidyselect,num_range)
importFrom(tidyselect,one_of)
importFrom(tidyselect,starts_with)
importFrom(utils,head)
importFrom(utils,tail)
useDynLib(dplyr, .registration = TRUE)
dplyr/LICENSE 0000644 0001762 0000144 00000000052 13614573561 012421 0 ustar ligges users YEAR: 2013-2015
COPYRIGHT HOLDER: RStudio
dplyr/README.md 0000644 0001762 0000144 00000013351 13614573562 012702 0 ustar ligges users
# dplyr
[](https://cran.r-project.org/package=dplyr)
[](https://travis-ci.org/tidyverse/dplyr)
[](https://ci.appveyor.com/project/tidyverse/dplyr)
[](https://codecov.io/gh/tidyverse/dplyr?branch=master)
## Overview
dplyr is a grammar of data manipulation, providing a consistent set of
verbs that help you solve the most common data manipulation challenges:
- `mutate()` adds new variables that are functions of existing
variables
- `select()` picks variables based on their names.
- `filter()` picks cases based on their values.
- `summarise()` reduces multiple values down to a single summary.
- `arrange()` changes the ordering of the rows.
These all combine naturally with `group_by()` which allows you to
perform any operation “by group”. You can learn more about them in
`vignette("dplyr")`. As well as these single-table verbs, dplyr also
provides a variety of two-table verbs, which you can learn about in
`vignette("two-table")`.
dplyr is designed to abstract over how the data is stored. That means as
well as working with local data frames, you can also work with remote
database tables, using exactly the same R code. Install the dbplyr
package then read `vignette("databases", package = "dbplyr")`.
If you are new to dplyr, the best place to start is the [data import
chapter](http://r4ds.had.co.nz/transform.html) in R for data science.
## Installation
``` r
# The easiest way to get dplyr is to install the whole tidyverse:
install.packages("tidyverse")
# Alternatively, install just dplyr:
install.packages("dplyr")
```
### Development version
To get a bug fix, or use a feature from the development version, you can
install dplyr from GitHub.
``` r
# install.packages("devtools")
devtools::install_github("tidyverse/dplyr")
```
## Cheatsheet
## Usage
``` r
library(dplyr)
starwars %>%
filter(species == "Droid")
#> # A tibble: 5 x 13
#> name height mass hair_color skin_color eye_color birth_year gender
#>
#> 1 C-3PO 167 75 gold yellow 112
#> 2 R2-D2 96 32 white, bl… red 33
#> 3 R5-D4 97 32 white, red red NA
#> 4 IG-88 200 140 none metal red 15 none
#> 5 BB8 NA NA none none black NA none
#> # … with 5 more variables: homeworld , species , films ,
#> # vehicles , starships
starwars %>%
select(name, ends_with("color"))
#> # A tibble: 87 x 4
#> name hair_color skin_color eye_color
#>
#> 1 Luke Skywalker blond fair blue
#> 2 C-3PO gold yellow
#> 3 R2-D2 white, blue red
#> 4 Darth Vader none white yellow
#> 5 Leia Organa brown light brown
#> # … with 82 more rows
starwars %>%
mutate(name, bmi = mass / ((height / 100) ^ 2)) %>%
select(name:mass, bmi)
#> # A tibble: 87 x 4
#> name height mass bmi
#>
#> 1 Luke Skywalker 172 77 26.0
#> 2 C-3PO 167 75 26.9
#> 3 R2-D2 96 32 34.7
#> 4 Darth Vader 202 136 33.3
#> 5 Leia Organa 150 49 21.8
#> # … with 82 more rows
starwars %>%
arrange(desc(mass))
#> # A tibble: 87 x 13
#> name height mass hair_color skin_color eye_color birth_year gender
#>
#> 1 Jabb… 175 1358 green-tan… orange 600 herma…
#> 2 Grie… 216 159 none brown, wh… green, y… NA male
#> 3 IG-88 200 140 none metal red 15 none
#> 4 Dart… 202 136 none white yellow 41.9 male
#> 5 Tarf… 234 136 brown brown blue NA male
#> # … with 82 more rows, and 5 more variables: homeworld ,
#> # species , films , vehicles , starships
starwars %>%
group_by(species) %>%
summarise(
n = n(),
mass = mean(mass, na.rm = TRUE)
) %>%
filter(n > 1,
mass > 50)
#> # A tibble: 8 x 3
#> species n mass
#>
#> 1 Droid 5 69.8
#> 2 Gungan 3 74
#> 3 Human 35 82.8
#> 4 Kaminoan 2 88
#> 5 Mirialan 2 53.1
#> # … with 3 more rows
```
## Getting help
If you encounter a clear bug, please file a minimal reproducible example
on [github](https://github.com/tidyverse/dplyr/issues). For questions
and other discussion, please use
[community.rstudio.com](https://community.rstudio.com/), or the
[manipulatr mailing list](https://groups.google.com/group/manipulatr).
-----
Please note that this project is released with a [Contributor Code of
Conduct](https://dplyr.tidyverse.org/CODE_OF_CONDUCT). By participating
in this project you agree to abide by its terms.
dplyr/data/ 0000755 0001762 0000144 00000000000 13614573562 012331 5 ustar ligges users dplyr/data/starwars.rda 0000644 0001762 0000144 00000006462 13614573562 014677 0 ustar ligges users BZh91AY&SY_o @$2[W@FH=}zm.;ܻҝ)7"4OG=MMS@='@4OS=F 4
ڞOSA4&CIfTd