下記参照:
paste("perf.a", "1", sep="")
# [1] "perf.a1"
に値を割り当てたい場合はどうなりperf.a1
ますか?
、などを試しましたがas.name
、as.symbol
役に立ちませんでした。
as.name(paste("perf.a", "1", sep="")) = 5
# Error in as.name(paste("perf.a", "1", sep = "")) = 5 :
# target of assignment expands to non-language object
as.symbol(paste("perf.a", "1", sep="")) = 5
# Error in as.symbol(paste("perf.a", "1", sep = "")) = 5 :
# target of assignment expands to non-language object
noquote(paste("perf.a", "1", sep="")) = 5
# Error in noquote(paste("perf.a", "1", sep = "")) = 5 :
# target of assignment expands to non-language object