Quantcast
Channel: subset of data frame on based on multiple conditions - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Heroka for subset of data frame on based on multiple conditions

Your issue is your creating of the subset: the subset commands expects a boolean and you gave it a string. ('check'). So the simplest solution here is to add a 'parse'. I feel there is a more elegant...

View Article


subset of data frame on based on multiple conditions

I'm actually having a trouble with a particular task of my code. I have a data frame asn <- 6set.seed(123)df <- data.frame(x=paste0("x",seq_along(1:n)), A=sample(c(-2:2),n,replace=TRUE),...

View Article
Browsing all 2 articles
Browse latest View live