You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unite throws error when trying to unite all columns if column selection is left empty #355
I'm having the same issue. Running unite(data = vars, col = name, sep = " ") throws this exact error. But running unite(data = vars, col = name, V1:V6, sep = " "), where V1:V6 are column names of the vars tibble, runs without error and returns the desired output. ?unite documentation explicitly states that the ... argument can be left empty and, if so, unite() will select all variables.
Activity
SteadyGiant commentedon Sep 5, 2017
I'm having the same issue. Running
unite(data = vars, col = name, sep = " ")throws this exact error. But runningunite(data = vars, col = name, V1:V6, sep = " "), whereV1:V6are column names of thevarstibble, runs without error and returns the desired output.?unitedocumentation explicitly states that the...argument can be left empty and, if so,unite()will select all variables.abautistah commentedon Oct 11, 2017
Yeah same problem, trying to leave ... argument empty to use all columns but it is not working. Instead I got all colnames and used it as argument.
columnNames <- colnames(data)unitedData <- data%>%unite(united, columNames ,sep=".")Add test for #355