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

Speeds up ghcn_splitvars #355

Merged
merged 9 commits into from
Jun 10, 2020
Merged

Conversation

eliocamp
Copy link
Contributor

@eliocamp eliocamp commented Jun 8, 2020

Changes a lot of dplyr data manipulation into a data.table::melt(). This makes ghcn_splitvars() considerably faster.

Closes #352

@sckott
Copy link
Contributor

sckott commented Jun 8, 2020

can you incorporate the latest commit from master to your branch - then I'll take a look

@@ -229,3 +201,5 @@ str_extract_ <- function(string, pattern) {
str_extract_all_ <- function(string, pattern) {
regmatches(string, gregexpr(pattern, string))
}

.datatable.aware = TRUE
Copy link
Contributor

Choose a reason for hiding this comment

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

what does .datatable.aware do?

@eliocamp
Copy link
Contributor Author

eliocamp commented Jun 9, 2020

can you incorporate the latest commit from master to your branch - then I'll take a look

Sorry, I'm still a git novice. The git graph is showing me that this branch is based on current master. What am I missing?

image

@sckott
Copy link
Contributor

sckott commented Jun 10, 2020

ah nevermind, was looking at rebase, but we can merge

@sckott sckott added this to the v0.9.7 milestone Jun 10, 2020
@sckott sckott merged commit 81a2475 into ropensci:master Jun 10, 2020
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.

ghcnd_splitvars can be faster
2 participants