Coerce an IdfObject into a character vector in the same way as in IDF Editor.

# S3 method for IdfObject
as.character(x, comment = TRUE, leading = 4L,
  sep_at = 29L, all = FALSE, ...)

Arguments

x

An IddObject object.

comment

A character vector to be used as comments of returned string format object. If NULL, no comments are inserted. Default: NULL.

leading

Leading spaces added to each field. Default: 4.

sep_at

The character width to separate value string and field string. Default: 29 which is the same as IDF Editor.

all

If TRUE, all fields in current class are returned, otherwise only minimum fields are returned.

...

Further arguments passed to or from other methods.

Value

A character vector.

Examples

if (FALSE) { 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"]] as.character(mat, leading = 0, sep_at = 10) }