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
Working on a complex dataset with text fields and numeric data. I need to split my dataset into two, summarize and rejoin. I need to be able to quickly select out the numeric columns and one other column (for grouping, summarizing and joining later), and then negate this for the other types.
My suggestion is a type_of() selection function to be able to put in the type of data.
select(DF, which(sapply(DF, typeof) == "double"))
Working on a complex dataset with text fields and numeric data. I need to split my dataset into two, summarize and rejoin. I need to be able to quickly select out the numeric columns and one other column (for grouping, summarizing and joining later), and then negate this for the other types.
My suggestion is a type_of() selection function to be able to put in the type of data.
select(DF, which(sapply(DF, typeof) == "double"))
From: https://stat.ethz.ch/R-manual/R-devel/library/base/html/typeof.html
"logical", "integer", "double", "complex", "character", "raw" and "list", "NULL", "closure"
Note: this doesn't work :/
The text was updated successfully, but these errors were encountered: