0
可能性の重複:
R: How to convert string to variable name?変数として名前(文字列)を使用するにはどうすればいいですか?
私が行う場合:
ここ'a' = c(1:10)
a
[1] 1 2 3 4 5 6 7 8 9 10
私は、文字列(変数) にベクトルを割り当てるが、私は何かに必要like:
a = 'c10'
、その後
a = c(1:10)
が、最後の必見は、C10
すべきは、私はそれをどのように行うことができますか?
は 'GET'、' assign'、およびhttp://stackoverflow.com/questionsを参照してください。/2679193/how-to-the-the-fly-in-r、http://stackoverflow.com/questions/6034655/r-how-to-convert-string-to-variable-name –
また、 R 7.21に関するよくある質問http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-turn-a-string-into-a-variable_003f –