We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
http://stackoverflow.com/questions/40999920/data-table-into-nested-list
## install.packages(c("gapminder", "data.table")) library(gapminder) library(data.table) gapminder <- data.table(gapminder) my_table <- gapminder[, .(mdl = .(lm(lifeExp ~ pop + gdpPercap, data = gapminder))), by = .(country, continent)] first_list <- split(my_table, my_table$continent) second_list <- lapply(first_list, function(x){ split(x[, country := as.character(country)], x$country) }) final_list <- sapply(second_list, function(x) sapply(x, function(y) y$mdl)) split(my_table, by=c("continent", "country"), keep.by = FALSE, flatten = FALSE) #Error in `[.data.table`(x, i = make.levels(x, cols = "country", sorted = FALSE), : # Logical error. Type of column should have been checked by now
after convert to character it process fine.
The text was updated successfully, but these errors were encountered:
Issue on hold till #2300 gets resolved.
Sorry, something went wrong.
This is already fixed by recent commit 862df78.
jangorecki
No branches or pull requests
http://stackoverflow.com/questions/40999920/data-table-into-nested-list
after convert to character it process fine.
The text was updated successfully, but these errors were encountered: