I currently have the following R code, which is grouping the data into "bands", based upon the value in the column BLANLIMAMT. This works perfectly.
library(dplyr)
#Import the data
MyData <- read.csv("LibFile.csv", stringsAsFactors = FALSE)
#Profile the Data
bTable<- MyData %>%
group_by(gr=cut(BLANLIMAMT, breaks= seq(0, 50000000, by = 500000)) )%>%
summarise(n= n()) %>%
arrange(as.numeric(gr))
My issues is with formatting the output. The values in column gr (in bTable) currently look like (0,5e+05). I would like them to look like 0 to 500,000 etc. Here is a screenshot of the table:
Here is a screenshot of the table
Any thoughts on how I would achieve this?