format.IdfObject | R Documentation |
Format an IddObject into a character vector in the same way as in IDF Editor.
## S3 method for class 'IdfObject'
format(x, comment = TRUE, leading = 4L, sep_at = 29L, all = FALSE, ...)
x |
An IdfObject object. |
comment |
If |
leading |
Leading spaces added to each field. Default: |
sep_at |
The character width to separate value string and field string.
Default: |
all |
If |
... |
Further arguments passed to or from other methods. |
A character vector.
## Not run:
idf <- read_idf(system.file("extdata/1ZoneUncontrolled.idf", package = "eplusr"),
idd = use_idd("8.8", download = "auto"))
# get the IdfObject of material named "C5 - 4 IN HW CONCRETE"
mat <- idf$Material[["C5 - 4 IN HW CONCRETE"]]
cat(format(mat, leading = 0, sep_at = 10))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.