Commit 7f40a802 authored by Holger Brandl's avatar Holger Brandl
Browse files

disabled as()

parent c2d005ab
...@@ -339,11 +339,11 @@ filter_count <- function(df, ...){ ...@@ -339,11 +339,11 @@ filter_count <- function(df, ...){
} }
# Example: publications %>% count(journal) %>% as("num_pubs") # Example: publications %>% count(journal) %>% as("num_pubs")
as = function(df, name){ # as = function(df, name){
warning("DEPRECATED use 'as_var' instead of 'as'") # warning("DEPRECATED use 'as_var' instead of 'as'")
names(df)[length(names(df))] = name # names(df)[length(names(df))] = name
df # df
} # }
n_as = function(df, name){ n_as = function(df, name){
names(df)[length(names(df))] = name names(df)[length(names(df))] = name
......
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