Motivation-and-Behaviour / sleepIPD_analysis

Analysis for the sleep and physical activity pooled study (https://osf.io/gzj9w/)
Other
0 stars 0 forks source link

Categorical variable names being appended to levels in tables #65

Closed conig closed 1 year ago

conig commented 1 year ago

I had an issue where a table couldnt be placed by LaTeX due to this extremely long cell:

Accelerometer wear locationwrist $\\times$ Sleep regularity$^2$

I think we could detect whether moderators are categorical, and then gsub out the moderator name from the terms to prevent this. That way the cell would just be:

wrist $\\times$ Sleep regularity$^2$

conig commented 1 year ago

This actually wasn't being caused by this issue. It was due to trying to cram 50 figures into a single pdf. LaTeX was not having it on.