I have loaded a dataset with 10 million records in both Power BI and R Studio. When I run the following code in R Studio I got a nice distribution of the values. (second photo)
However, when I run the same code in Power BI using R Script the frequency of all the bins is capped (First Photo). Does anyone know why this is happening? My intuition tells me that it must be the size of the data set and the R code inside Power BI is limited somehow but I cannot reproduce the problem in R Studio.