Hi R users, I first categorized the continuous data into groups (ranges or category) but now I would like to change the category into a continuous data and plot it. For example I have attached the data in which you can see two columns named "group" and "value". The group column contains a range (group, for example ), I am wondering how I can change the category data (for example: "0,0.01]" )into continuous data with a 0.1 interval. Thank you for your suggestions.
daT<-structure(list(group = c("(0,0.01]", "(0.01,0.025]", "(0.025,0.05]", "(0.05,0.075]", "(0.075,0.1]", "(0.1,0.2]", "(0.2,0.3]", "(0.3,0.4]", "(0.4,0.5]", "(0.5,0.6]", "(0.6,0.7]", "(0.7,0.8]", "(0.8,0.9]", "(0.9,1]", "(1,1.1]", "(1.1,1.5]", "(1.5,2]", "(2,2.5]"), VALUE = c(1, 1, 1, 1, 1, 1, 0.944444444, 0.916666667, 0.888888889, 0.857777778, 0.826666667, 0.66, 0.439090909, 0.328636364, 0.273409091, 0.245795455, 0.218181818, 0.084848485)), class = "data.frame", row.names = c(NA, -18L)) thanks, MW [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.