x <- data.frame(a=1:3,type=c("A","C","B"))
list.parse(x)
x <- matrix(rnorm(1000),ncol=5)
rownames(x) <- paste0("item",1:nrow(x))
colnames(x) <- c("a","b","c","d","e")
list.parse(x)
z <- "
a:
type: x
class: A
registered: yes
"
list.parse(z,type="yaml")Run the code above in your browser using DataLab