Common errors emerge from mix matched data types but the error ouput rarely tell you this-if ever.
In the console, when you print a data frame it will give you the data type of each column displayed. This is helpful because it gives you a hint. I could not figure out a way to display a data frame with the the column types below but can display the output of the str function on the mtcars data set
Yesterday I was working with the infer package and I was working through the examples and applying the examples to my own dataset. I could not figure out why the specify function would not work.
I needed a factor variable and I had a factor variable but not the right type of factor variable.
I had the data type <ord>and it was not working. The <ord> data type is an ordered factor.
It did not work to simply convert from an <ord> to a regular factor.
I will have update this post with some updated data.
About
Kevin is a nonprofit data professional operating out of Lakeland, Florida.
My expertise is helping nonprofits collect, manage and analyze their program data.