If a dataframe has a variable name "" then select will not work (this is being returned by a dataframe in a function someone else wrote) Here I'm running dplyr() 0.2
require(dplyr)
ds=data.frame(x=rnorm(5), y=rnorm(5))
tmp1= select(ds, x) # this works
names(ds) = c("V1", "") # this is not a good idea, but it is legal?tmp2= select(ds, V1) # this does not work
Here is the error message:
Error in list2env(names_list, parent = env) :
attempt to use zero-length variable name
The text was updated successfully, but these errors were encountered:
If a dataframe has a variable name "" then select will not work (this is being returned by a dataframe in a function someone else wrote) Here I'm running dplyr() 0.2
Here is the error message:
The text was updated successfully, but these errors were encountered: