我想從R製作yaml格式文件。我知道有這樣的工作包,但它的例子是如此簡單,我的對象有點棘手!製作一個複雜的yaml從R
,所以我想提出類似下面的,但我不知道我應該如何塑造它爲R對象(數據幀?!):
tree:
format: newick
translate: ./My_example-1.translation
file: ./Xtol_example-1.tree
tracks:
- class: colorstrip
source: ./My_example-1.catdomain
rel_height: 0.6
title: Catalytic domain
- class: colorstrip
source: ./My_example-1.kingdom
rel_height: 0.6
title: Itsname
- class: colorstrip
source: ./My_example-1.temp
我與其開發人員聯繫,他修復了錯誤,現在,用你的方法它工作得很好 – user702846 2011-06-23 06:32:59
你能告訴我他是如何修復這個bug的嗎?如果可以修復這些問題,我想自己開始使用yaml。 – Soumendra 2011-06-23 10:57:21
哦,你可以做str(z)來查看你從yaml生成的對象的結構。再次,請你告訴我們yaml軟件包的作者對此有何評論? – Soumendra 2011-06-24 07:04:14