私は、他人の身長と体重の推定値が多いExcelスプレッドシートを持っています。さらに、「この見積もりにはそのようなものが考慮されている」のように、両方の推定セルにコメントを残している人もいます。元々Excelスプレッドシートにデータを表示するために使用できるテキスト形式は何ですか?
私はスプレッドシートからデータを取り出して(私はすでにそれを解析する方法を考え出しています)、簡単なテキストファイルで表現して、構造化されたフォーマットに簡単に戻すことができます(Perl、理想的には)。
もともと私はYAMLを使用するために考えた:
Tom:
Height:
Estimate: 5
Comment: Not that confident
Weight:
Estimate: 7
Comment: Very confident
Natalia: ...
しかし、今、私はこれが読み少し難しいと思っていて、読みやすくなりますいくつかのテキスト表形式表現があった場合、私は思っていましたまだ解析できません。以下のような
何か:
PERSON HEIGHT Weight
-----------------------------
Tom 5 7
___START_HEIGHT_COMMENT___
We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness. That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed [...]
Wait, what's this project about again?
___END_HEIGHT_COMMENT___
___START_WEIGHT_COMMENT___
We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness. That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed [...]
Wait, what's this project about again?
___END_WEIGHT_COMMENT___
Natalia 2 4
John 3 3
はこれを行うには良い方法はありますか?
これはコメントを考慮していないと思います。 –
単に「コメント」列を代わりに使用することができます。最終結果は、人物、高さの推定値、高さのコメント、重みの推定値、重みのコメントの列のセットになります。 –
CSVはYAMLよりも読みにくいです。多くの列があり、列の幅が変化するのは恐ろしいことです。 –