Skip to content

Switch df[,col] to df[[col]] to get column vectors#76

Open
rhagenson wants to merge 1 commit intoraerose01:masterfrom
rhagenson:vector-syntax
Open

Switch df[,col] to df[[col]] to get column vectors#76
rhagenson wants to merge 1 commit intoraerose01:masterfrom
rhagenson:vector-syntax

Conversation

@rhagenson
Copy link

The package previously used the format df[, col] to extract a column as a vector I changed these to be df[[col]] which is compliant with more recent versions of R where df[, col] returns a data.frame with one column rather than a vector. This return type leads to expressions such as mut[, ref] %in% c('A', 'T', 'C', 'G') failing as it is not checking the values of ref, but rather the data.frame names for matching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant