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

Create splitStrings.R #2

Merged
merged 3 commits into from
Jul 20, 2017
Merged

Create splitStrings.R #2

merged 3 commits into from
Jul 20, 2017

Conversation

JarkoDubbeldam
Copy link
Owner

Implements a shorthand for el(strsplit(x,'')) for strings and strtoi(el(strsplit(c(x,''),''))) for numerics.

Implements a shorthand for `el(strsplit(x,''))` for strings and `strtoi(el(strsplit(c(x,''),'')))` for numerics.
Copy link

@teuschb teuschb left a comment

Choose a reason for hiding this comment

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

Looks like you need on = "" as the default argument, not on == "".

Otherwise test cases look good.

@JarkoDubbeldam
Copy link
Owner Author

Woops. To be honest, I added the argument as an afterthought. It is nice to have the option to set something different, but I don't see an obvious example where it would be useful.

@JarkoDubbeldam JarkoDubbeldam merged commit 049f010 into master Jul 20, 2017
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.

2 participants