powered by
Makes array names
flat_one_par(n, d, col_major = FALSE)
A character, n is an abbreviation of name
n
name
A vector of integers, to be passed to seq_array_ind()
seq_array_ind()
A logical, to be passed to seq_array_ind()
a vector of characters
# NOT RUN { a<-flat_one_par("a",1:3) # > a # [1] "a[1,1,1]" "a[1,1,2]" "a[1,1,3]" "a[1,2,1]" "a[1,2,2]" "a[1,2,3]" # }
Run the code above in your browser using DataLab