I want to sort my own way to a specific variable. I've divided my dataset into "1-5", "6-10", "11-20" .... "> 251" and so forth. If they plot the variable or show them in sequential order in the table, the sequence in the label is "glitch" respectively.
This is not surprising because R is not aware that the sequence of these narrative variables is fact. Is there a way to manually attach the scheduled sequence?
In the form of a normal variable (or if changed) Factors S When you plot them they depend on the order factor that appears in the plot.
You probably want to use cut to create your groups. Like
DRF & lt; - data.frame (x = runif (100, 1, 256)) dfr $ groups & lt; - Cut (dfr $ x, seq (1, 256, 5)) This problem is also very similar.
Comments
Post a Comment