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

rxSummary transforms(n=1) fails if call has no references to existing vars #35

Open
hongooi73 opened this issue Jul 3, 2017 · 2 comments

Comments

@hongooi73
Copy link
Contributor

These fail:

mtx <- rxDataStep(mtcars, "mtcars.xdf", overwrite=TRUE)

rxSummary(~n, mtx, transforms=list(n=1L))
rxSummary(~n, mtx, transforms=list(n=rep(1L, .rxNumRows)))

These work:

rxSummary(~n, mtx, transforms=list(n=1L, m=mpg))  # throwaway variable
rxSummary(~n, mtx, transforms=list(n=rep(1L, length(mpg))))
rxSummary(~n:F(am), mtx, transforms=list(n=1L))
@hongooi73
Copy link
Contributor Author

But this also fails:

rxSummary(~n:F(am), mtx, transforms=list(n=rep(1, .rxNumRows)))

@hongooi73
Copy link
Contributor Author

TFS item 78067

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

No branches or pull requests

1 participant