-
Notifications
You must be signed in to change notification settings - Fork 50
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different semantics of groupBy and fcol #195
Comments
Generally I like and prefer the We could provide both and rewrite all combineFeatures <- function(object, groupBy, fcol) {
if (missing(groupBy)) {
groupBy <- fData(object)[, fcol, drop=FALSE]
}
# ...
} (or wrap that in a Or we take the length and type of the argument: if |
I agree that
That's what I had in mind. In addition, we would need to make sure that I also like the other option with two arguments, |
fcol
generally stands for a feature variable from which to extract tovector
/factor
, whilegroupBy
expects avector
/factor
. This lead to a problem incombineFeatures
(which expects the latter) callingnFeautres
(expecting the former).Revise this behaviour, making sure that the two are supported interchangeably.
The text was updated successfully, but these errors were encountered: