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

output as list with engine = "R" #2

Open
ggrothendieck opened this issue Mar 16, 2018 · 0 comments
Open

output as list with engine = "R" #2

ggrothendieck opened this issue Mar 16, 2018 · 0 comments

Comments

@ggrothendieck
Copy link
Owner

In the following a list is output where a plain vector is expected. If engine = "R" is omitted then it runs correctly.

xx <- c("1 year 1 month", "11 \nmonths", "3 years 11 months", "1 year 1 month", 
"8 months", "2 years")
strapply(xx, "(\\d+) +\\W*m", as.numeric, empty = 0, simplify = TRUE, engine = "R")
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