Siehe unten:
paste("perf.a", "1", sep="")
# [1] "perf.a1"
Was ist, wenn ich einen Wert zuweisen möchte perf.a1
?
Ich habe versucht as.name
, as.symbol
etc., ohne Erfolg:
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