View source: R/write_analyze.R
| write.analyze.char.field | R Documentation |
Write a fixed length character field of an ANALYZE 7.5 header.
write.analyze.char.field(fh, field_value, field_length, return_bytes = FALSE)
fh |
connection to write to. |
field_value |
character string, the value to write. |
field_length |
integer, the length of the field in bytes. |
return_bytes |
logical, whether to return the raw bytes instead of writing them to the connection. |
invisible NULL (or the raw vector of length field_length if return_bytes is TRUE), called for
the side effect of writing to the connection.
The string is converted to bytes as ISO-8859-1 (latin-1), which is the inverse of the conversion that
analyze.read.char.field applies when reading, so that the content of the field survives a read
and write cycle byte for byte. Characters that latin-1 cannot represent are written as UTF-8 instead.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.