Commit 3911e6e1 authored by Holger Brandl's avatar Holger Brandl

added as_var() as replacement for as()

parent 587a70e4
......@@ -105,7 +105,6 @@ load_pack(DT)
########################################################################################################################
#### Convenience aliases
......@@ -336,6 +335,12 @@ filter_count <- function(df, ...){
# Example: publications %>% count(journal) %>% as("num_pubs")
as = function(df, name){
warning("DEPRECATED use 'as_var' instead of 'as'")
names(df)[length(names(df))] = name
df
}
as_var = function(df, name){
names(df)[length(names(df))] = name
df
}
......
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