manipulating a disk.frame's structure #334
Replies: 4 comments 6 replies
-
Can you make a simple MWE. Like fill
|
Beta Was this translation helpful? Give feedback.
-
Sure thing. It's pretty late on the evening where I am but I'll get a fully
runable reprex posted for you tomorrow morning first thing. Thank you.
…On Fri, Apr 9, 2021, 23:37 evalparse ***@***.***> wrote:
I would need you to copy the code here. Running the code will show the
desired result. So nothing that requires me to clone a repo and dig around
some code base.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#334 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASLJTRFVBDOMPBKTHSVRF5TTH7P2RANCNFSM42TZTGQA>
.
|
Beta Was this translation helpful? Give feedback.
-
I haven't learned how to share an RDS file cleanly from git but I think if you click on this link it will download the col_ids rds file for this REPREX and here is the pfl_data rds file.
This example is just for one model. So as you can see both col_ids and pfl_data are listed lists. The first layer pertains to what model I am working with. As this REPREX only has data for one model the structure will always be Ideally, I would like to save the pfl files upstream with |
Beta Was this translation helpful? Give feedback.
-
Sorry I didn't explain it well but I will definitely start working on
changing to dplyr syntax and see if I can figure it out from there.
…On Sat, Apr 10, 2021, 18:29 evalparse ***@***.***> wrote:
this work flow is too complicated to understand. I don't think reading
thru ur description is the best way to understand what's going. So I'd u
should refer anything specific to ur problem like *unique z-coordinate*
and boil it down to thing that can be solved without understand any of
those details
anyway, purrr::map2(pfl[-1], col[-1], ~ .x[c(2, .y)]) you can't pass it a
list of disk.frame because of the line I just shown. Each of your dataset
you want to subset by some different column where as a disk.fram you need
to be applying the same column selection to each chunk of the dataframe.
in general, you are putting too much burden on the other party to try and
answer your questions, I feel.
Anyway, disk.frame only support dplyr syntax so this wouldn't work anyway
pfl[-1], you need to do something like pfl %>% select(....)
Good luck.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#334 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASLJTRBNPR6BDAI5SQJJ2LDTIDUOHANCNFSM42TZTGQA>
.
|
Beta Was this translation helpful? Give feedback.
-
Hello ZJ and all disk.frame guru's,
I am working to wrangle the outputs of a large amount of models, tidy them, and finally, visualize them. The functions I have written handle all model outputs and inputs as listed objects, therefore the more models the faster my computations fill up my RAM. I'm excited to learn your tool so I can try to fix my issue's.
In one of my functions I am reading a list of txt file's and turn them into a list of data frames. This was easy enough to change to a list of as.disk.frame() objects. However, downstream I would manipulate those what was once data frames. It doesn'tmy original handling of the data frames translates well to handling disk frames. Here is the first chunk of one of my functions I am running into issue with.
pfl_data
: now a list of disk.frames, was a list of tibblescol_ids
: list of numericsAs you can see I first parallel map through the disk.frames and the listed numerics, but I have removed the first column in the dataframe (
pfl[-1]
) and the first object in the numeric list (col[-1]
). Since I changedpfl
to a disk.frame, this operation does not seem to work. Also, do I need to swap out the furrr::map variations with disk.frame::map? Can you help me rework this function to flow with disk.frame?Thanks,
Bryan
Beta Was this translation helpful? Give feedback.
All reactions