Hi, I am greatly aware of function cut() for slicing data according to the value set. However, some of the categories are presented by a range of numbers while some are presented by a single number. For example:
groups <- c("A", "B", "C", "D", "E") value <- c("9.9-13.9", "32.1-32.9", "0.9-6.9", 73, "14.8 AND 41.1") data <- cbind(groups, value)
- Intent to show the value in ranges but i dont know how and yes, the value in my data are in numbers
The problem is some groups are defined by a range of values, some by single number while the last group, is defined by two different value.
I am intended to substitute my original data into groups as stated in data according to the value stated to plot the frequency of the groups into a plot.
How should i do this? Thank you in advance for any comments and suggestions!