search for: yeserror

Displaying 1 result from an estimated 1 matches for "yeserror".

Did you mean: oserror
2007 Jul 28
1
Error when using the cat function
...bug or am I using the cat function incorrectly? Thanks, Stan > ifelse(class(data[[n]])!="factor",{print("yes")},{print("no")}) [1] "yes" [1] "yes" > ifelse(class(data[[n]])!="factor",{cat("yes")},{cat("no")}) yesError in ans[test & !nas] <- rep(yes, length.out = length(ans))[test & : incompatible types (from NULL to logical) in subassignment type fix >cat("yes") yes > class(data[[n]])!="factor" [1] TRUE > class(data[[n]]) [1] "numeric" > n [1] 28 > leng...