I have a dataframe which looks like
Height Count
173 2
184 3
193 1
Usually, to plot an empirical cumulative distribution function, one: 1) expands the dataframe by using e.g. splitstackshape's expandRows function to obtain the following:
output
173
173
184
184
184
193
2) plots the ECDF using the output variable.
However, my dataframe is very large and expandRows yields an error of the 'cannot allocate vector of size X' type. Yet, what I would be interested in is an (even approximate) plot of the ECDF, rather than an expanded dataframe.
Is there a workaround to achieve this?