Re: [R] simple problem with unquoting argument

2024-07-03 Thread Troels Ring
Dear Ivan and Rui - thanks a lot for the effective help. All best wishes Troels Den 03-07-2024 kl. 10:25 skrev Ivan Krylov: В Wed, 3 Jul 2024 10:13:59 +0200 Troels Ring пишет: Now e looks right - but I have been unable to find out how to get the string e converted to the proper argument for

Re: [R] simple problem with unquoting argument

2024-07-03 Thread Ivan Krylov via R-help
В Wed, 3 Jul 2024 10:13:59 +0200 Troels Ring пишет: > Now e looks right - but I have been unable to find out how to get the > string e converted to the proper argument for sum()  - i.e. what  is > function xx? get(e) will return the value of the variable with the name stored in the variable e.

Re: [R] simple problem with unquoting argument

2024-07-03 Thread Rui Barradas
Às 09:13 de 03/07/2024, Troels Ring escreveu: Hi  friends - I'm in problems finding out how to unquote - I have a series of vectors named adds1adds11 and need to e.g. find the sum of each of them So I try SS <- c() for (i in 1:11) { e <- paste("adds",i,sep="") SS[i]  <- sum(xx(e)) } N

[R] simple problem with unquoting argument

2024-07-03 Thread Troels Ring
Hi  friends - I'm in problems finding out how to unquote - I have a series of vectors named adds1adds11 and need to e.g. find the sum of each of them So I try SS <- c() for (i in 1:11) { e <- paste("adds",i,sep="") SS[i]  <- sum(xx(e)) } Now e looks right - but I have been unable to fi