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

Fix for logical column types #26

Merged
merged 2 commits into from
Jul 14, 2015
Merged

Fix for logical column types #26

merged 2 commits into from
Jul 14, 2015

Conversation

donarus
Copy link

@donarus donarus commented Jul 13, 2015

There is an error with updating logical values discussed in #18 and this error has been fixed by @jrowen in pull request #15

And because it seems @jrowen won't continue on this pull request, I have decided to grab at least changes related to this issue and make a standalone pull request.

#' @param cls character
#' @return converted vector
#' @seealso https://stackoverflow.com/questions/9214819/supply-a-vector-to-classes-of-dataframe
toCls = function(x, cls) tryCatch(do.call(paste("as", cls, sep = "."), list(x)),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you don't mind, can you make these non-Roxygen docs? Otherwise a spurious entry in the package docs gets created for an internal function that we don't want to export. If you just remove the ' from #' that should do the trick (on this and setHtableClass).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, this is the consequence of copy&paste approach :) I'll fix it

@trestletech
Copy link
Owner

Thanks for resurrecting this feature and taking the time to put the PR together. Just a couple of little concerns commented above but otherwise I think this will be good to go.

@trestletech
Copy link
Owner

Oh, and to give credit where credit is due, can you add in attribution for any code that you took from @jrowen (maybe an @author) and feel free to claim anything you contributed.

@donarus
Copy link
Author

donarus commented Jul 14, 2015

All fixes should be included now.

trestletech added a commit that referenced this pull request Jul 14, 2015
@trestletech trestletech merged commit 9ad45f2 into trestletech:master Jul 14, 2015
@trestletech
Copy link
Owner

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants