Re: [R] My simple ORDER is broken
Show us the output of str(tmp_df) Your problem could be caused by the Democratic column being a character or factor column instead of a numeric column: "71" > "227" but 71 < 227. Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Oct 26, 2015 at 9:08 AM, Jim Burke wrote: > tmp_df[order(tmp_
[R] My simple ORDER is broken
tmp_df[order(tmp_df$Democratic),] Precinct Last.Name Democratic Republican.Total Registered.Voters 2 2904 Open Seat 1015 NA 2903 Open Seat227 245 2035 3 2905 Open Seat 71 202