列名を変更しようとして colnames() を使った時に下記エラーメッセージ。
attempt to set ‘colnames’ on an object with less than two dimensions
下記フォーラムの回答によると、
stackoverflow.com
I would like to add an open price as a new row at the end of…
列名の数が足りないときにこのエラーメッセージが出てくる様子。
……そうだった。colnames だと、全部の列名を指定しないといけないんだった。