Error when using purrr's map and possibly
问题 I'm trying to run a looped chi-square dataframe . I'm using map and possibly , both from purrr , to allow the loop to run even if an error is thrown. Somewhere in my data.frame, I have a column that apparently has less than two values -- I can't find it. But, that's why I'm trying to run possibly . But, I'm now getting an error that says: Can't convert a list to function. I'm not sure how to reconcile this error. I've gotten a replicable example that throws the error using the mtcars data