edwindj / ffbase

Basic (statistical) functionality for R package ff
github.com/edwindj/ffbase/wiki
35 stars 15 forks source link

looking for histogram support #39

Closed vjcitn closed 10 years ago

vjcitn commented 10 years ago

is there a nice way to get a histogram from an ff vector? you seem to have most of what is needed. also, it would be nice to have a usage example in binned_tabulate man page, i don't quite understand the purpose of that function. thanks, i've had a good time with this package so far.

edwindj commented 10 years ago

Yep, there is:

library(ffbase)
# create a ff vector with a million values
x <- ff(rnorm(1e6))
hist(x)

# or if you want to store the binned values:
h <- hist(x)
plot(h)
vjcitn commented 10 years ago

ah, i missed it. should have looked into source. many thanks.

On Fri, Nov 7, 2014 at 11:36 AM, Edwin de Jonge notifications@github.com wrote:

Yep, there is:

create a ff vector with a million values

x <- ff(rnorm(1e6)) hist(x)

or if you want to store the binned values:

h <- hist(x) plot(h)

— Reply to this email directly or view it on GitHub https://github.com/edwindj/ffbase/issues/39#issuecomment-62171780.