search for: riskharmoth

Displaying 2 results from an estimated 2 matches for "riskharmoth".

2017 Sep 26
2
Surprising message "Error in FUN(newX[, i], ...) : all arguments must have the same length"
...alues in four columns: > apply(datTAF[,75:78],2,table,na.rm=TRUE) Error in FUN(newX[, i], ...) : all arguments must have the same length ### odd, surely as it's a data frame all x going into table() should be same length. Check: > apply(datTAF[,75:78],2,length) RiskSuicide RiskSelfHarm RiskHarmOth RiskLegal 3009 3009 3009 3009 ### I has reasons to think the tables should all be the same length. Check: > apply(datTAF[,75:78],2,function(x){length(table(x))}) RiskSuicide RiskSelfHarm RiskHarmOth RiskLegal 6 6 6...
2017 Sep 26
0
Surprising message "Error in FUN(newX[, i], ...) : all arguments must have the same length"
...pply(datTAF[,75:78],2,table,na.rm=TRUE) > Error in FUN(newX[, i], ...) : all arguments must have the same length > > ### odd, surely as it's a data frame all x going into table() should be > same length. Check: > > apply(datTAF[,75:78],2,length) > RiskSuicide RiskSelfHarm RiskHarmOth RiskLegal > 3009 3009 3009 3009 > > ### I has reasons to think the tables should all be the same length. > Check: > > apply(datTAF[,75:78],2,function(x){length(table(x))}) > RiskSuicide RiskSelfHarm RiskHarmOth RiskLegal > 6...