Displaying 1 result from an estimated 1 matches for "has_daily_data".
2010 Mar 05
2
Sweave and optional document sections
...onal sections in a Sweave-generated report
document, complete with section header(s), text and code chunks? In other
words, I'd like for my report to include or omit certain sections based on
the data itself.
For example, If I examine the input dataset early on in the report and set a
variable has_daily_data = TRUE, then I'd like to have a section that looks
at the daily data in detail, with subsections, text and code chunks. What
facilities do I have in Sweave (or odfWeave) for that?
Perhaps, for code chunks, I could wrap all the code inside in
if(has_daily_data) {...}? What about inserting condi...