Closed byu-coug55 closed 1 year ago
Thanks, @byu-coug55. In this example, get_meta_subset()
needs the built Tplyr table and not the output dataframe. There are 2 S3 dispatch methods for get_meta_subset()
and get_meta_result()
:
https://atorus-research.github.io/Tplyr/reference/get_meta_subset.html
In this example, by providing the tplyr_table
object t
, we're able to query the metadata inside the tplyr_table
object. When working with a dataframe (in this example dat
), x
would need to be a metadata dataframe, and then you'd need to provide dat
as the target
parameter:
get_meta_subset(get_metadata(t), 'c2_1', 'var1_Placebo', target=dat)
.
Gotcha! Thank you for helping me understand this better.
Overview
Very small error I saw in a vignette.
Prerequisites
None.
Description
Metadata vignette
You start off by showing the following code:
But then in your next code block you have:
I believe the first argument in
get_meta_subset()
should bedat
nott
.