Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

investigate Data::Frame subset P2R conversion bug #28

Open
zmughal opened this issue Feb 16, 2015 · 1 comment
Open

investigate Data::Frame subset P2R conversion bug #28

zmughal opened this issue Feb 16, 2015 · 1 comment

Comments

@zmughal
Copy link
Member

zmughal commented Feb 16, 2015

Creating a Data::Frame and sending it to R gives completely wrong values. This is probably something in the PDL API.

@zmughal
Copy link
Member Author

zmughal commented Dec 17, 2015

This is probably because the PDL data needs to be a copy (using ->copy or ->sever). A work around was needed for

my $s = sequence(4, 10);
my $p = Data::Frame->new( columns => [
                 a => $s->slice('(0)')->copy,  # using copy because there is a bug in the PDL
                 b => $s->slice('(1)')->copy,  # conversion in Statistics::NiceR
                 c => $s->slice('(2)')->copy,
                 d => $s->slice('(3)')->copy,
] );
use DDP; p Statistics::NiceR->new->as_matrix( $p );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant