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
Submitted by: Garrett See; Assigned to: Nobody; R-Forge link
From an e-mail to the list
I have a list of data.tables and I am trying to extract a subset from each of them. I can achieve what I want with this:
data.table
L <- list(data.table(BOD), data.table(BOD)) lapply(L, function(x) x[Time==3L]) # [[1]] # Time demand #1: 3 19 # # [[2]] # Time demand #1: 3 19
However, I'd rather not type have to create an anonymous function. I tried the below, but [.data.frame is being dispatched.
[.data.frame
lapply(L, "[", Time==3L) # Error in `[.data.frame`(x, i) : object 'Time' not found
Even if I am explicit, [.data.table does not get dispatched:
[.data.table
lapply(L, data.table:::`[.data.table`, Time==3L) # Error in `[.data.frame`(x, i) : object 'Time' not found
The text was updated successfully, but these errors were encountered:
e0ce69a
arunsrinivasan
No branches or pull requests
Submitted by: Garrett See; Assigned to: Nobody; R-Forge link
From an e-mail to the list
I have a list of
data.table
s and I am trying to extract a subset from each of them. I can achieve what I want with this:However, I'd rather not type have to create an anonymous function. I tried the below, but
[.data.frame
is being dispatched.Even if I am explicit,
[.data.table
does not get dispatched:The text was updated successfully, but these errors were encountered: