| read.list | R Documentation |
The common functions for manipulating objects of structure ruList: reading from file, writing to file of format ruList.txt and checking ruList object for appropriateness.
read.list(file) write.list(x, file="") check.list(x)
x |
the object of format |
file |
a character string naming a file |
ruList and ruList.txt is the internal dbs-package format for representing complex objects.
The structure of ruList format can be described as three-level nested object: (1) list with any number of elements of 2-d level, (2) list with any number of elements of 3-d level, (3) objects of classes: data.frame, matrix, numeric, character, integer, logical, mod.frame. Any level may have attributes of classes: data.frame, matrix, numeric, character, integer, logical.
The ruList.txt is a human readable representation of ruList object saved to .TXT file.
read.list returns the object of ruList format
check.list returns logical TRUE if the object x has appropriate structure
The current version of check.list does not check attributes of 3-d level.
The current version of write.list does not check x argument for consistency. Be carefull.
list
### write, read and check ruList
models<-list(example4_ruSlv)
write.list(models, "models.txt")
models1<-read.list("models.txt")
check.list(models1) # output: TRUE
all.equal(models1, models) # output: 'names for target but not for current'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.