Skip to content

Different behavior from GnuR - Dataframe column names #58

@rbotafogo

Description

@rbotafogo

The following code:

x = list(a = (1:10), beta = exp(-3:3), logic = c(TRUE, FALSE, FALSE, TRUE))
quant = lapply(x, quantile)
print(quant)

has this output in fastR:

$a
       0% 25,00000% 50,00000% 75,00000% 100,0000% 
     1.00      3.25      5.50      7.75     10.00 

$beta
         0%   25,00000%   50,00000%   75,00000%   100,0000% 
 0.04978707  0.25160736  1.00000000  5.05366896 20.08553692 

$logic
       0% 25,00000% 50,00000% 75,00000% 100,0000% 
      0.0       0.0       0.5       1.0       1.0 

Where the column names have 5 digits after the decimal mark.

In GnuR the same code has this output:

$`a`
   0%   25%   50%   75%  100% 
 1.00  3.25  5.50  7.75 10.00 

$beta
         0%         25%         50%         75%        100% 
 0.04978707  0.25160736  1.00000000  5.05366896 20.08553692 

$logic
  0%  25%  50%  75% 100% 
 0.0  0.0  0.5  1.0  1.0 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions