Re: [R] Convert a character string to variable names

2022-02-08 Thread Jeff Newmiller
Your definition of "value" is inappropriately limited. A data frame is a value. It is not a numeric value, but it is a value. See 3.1.3 in the R Language Definition document. Likewise, an atomic vector is a value. All of the elements of the vector together are in fact a value. Not just the indi

Re: [R] Convert a character string to variable names

2022-02-08 Thread Ebert,Timothy Aaron
"A variable in R can refer to many things, ..." I agree. "It absolutely _can_ refer to a list, ..." I partly agree. In R as a programming language I agree. In R as a statistical analysis tool then only partly. Typically one would need to limit the list so each variable would be of the same lengt

Re: [R] Convert a character string to variable names

2022-02-08 Thread Jeff Newmiller
A variable in R can refer to many things, but it cannot be an element of a vector. It absolutely _can_ refer to a list, a list of lists, a function, an environment, and any of the various kinds of atomic vectors that you seem to think of as variables. (R does _not_ name individual elements of ve