You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You check if y is a character and you set it to a factor first, so it can never pass this if statement. What you want to do is check if y_labels is a character.
if ( !is.character(y) ) {
stop('y_labels must be a character vector')
}
The text was updated successfully, but these errors were encountered:
You check if
y
is a character and you set it to a factor first, so it can never pass this if statement. What you want to do is check ify_labels
is a character.The text was updated successfully, but these errors were encountered: