Skip to content
Prev 324210 / 398503 Next

When creating a data frame with data.frame() transforms "integers" into "factors"

Hello Bert.

I didn't reply to the list because i forgot. I hit reply instead of reply all....

Thanks for your example.
I understood now that i was trying to do something that didn't made sense and that was why it failed.
I should have used an histogram do do a graph of the frequency of each number of 'posts' instead of going the convoluted way around and trying to do a scatterplot.
I now understand that table() transforms each value of the variable into a "factor" and counts how many times it shows up. It makes sense that these "factors" are then tranformed into "character" when in the data frame, because they are not a quantity, but the representation of the number.

Thanks for the help. Problem solved.

Ant?nio Brito Camacho


No dia 26/05/2013, ?s 15:00, Bert Gunter <gunter.berton at gene.com> escreveu: