Commit d8d4ee30 authored by Holger Brandl's avatar Holger Brandl

added get_col

parent 8cef897d
......@@ -319,6 +319,10 @@ as = function(df, name){
distinct_all = function (x, ...) distinct(x, ..., .keep_all=T)
## fetch a column of a matrix in a magrittr pipe. Useful along with str_*
get_col = function(data, col_index) data[, col_index] ## also could use magrittr::extract here
reload_dplyr <- function(){
unloadNamespace('tidyr')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment