Displaying 2 results from an estimated 2 matches for "872099".
Did you mean:
852099
2017 Jul 03
2
R memory limits on table(x, y) (and bigtabulate)
I have two character vectors x and y that have the following characteristics:
length(x) # same as
length(y) # 872099
length(unique(x)) # 47740
length(unique(y)) # 52478
I need to crosstabulate them, which would lead to a table with
47740*52478 # 2505299720
cells, which is more than
2^31 # 2147483648
cells, which seems to be R's limit because I am getting the error message
Error in table(x, y) : attemp...
2017 Jul 03
0
R memory limits on table(x, y) (and bigtabulate)
...- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Jul 3, 2017 at 1:57 AM, Robert Zimbardo
<robertzimbardo at gmail.com> wrote:
> I have two character vectors x and y that have the following characteristics:
>
> length(x) # same as
> length(y) # 872099
>
> length(unique(x)) # 47740
> length(unique(y)) # 52478
>
> I need to crosstabulate them, which would lead to a table with
>
> 47740*52478 # 2505299720
>
> cells, which is more than
>
> 2^31 # 2147483648
>
> cells, which seems to be R's limit because I...