Open asbates opened 11 months ago
I like the feature and I think this is doable. I think what we could actually do is create a new function called preview()
.
Here's how I could envision the process flow:
tplyr_table
tplyr_mock_data()
function you suggested, but automated based on layer info
@asbates any more thoughts?
@mstackhouse One thing I think most people would want is the ability to specify factor levels in addition to treatment groups. If I'm making an AE table for example, I want to see specific values for SOC, not a generic "label 1", "label 2".
Description
Be able to generate mock tables where placeholders are used instead of numbers. For example instead of having
1.23
for a mean, we can build a table that hasx.xx
.Example Usage
I think an argument to
build
would be the most natural API.I could see this being problematic though because
tplyr_table
expects a data frame and the layers use NSE. So maybe there could be a helper function to generate a mock data set. Something like