I'm new to R and would like to know how I can set row names to a large matrix with dimensions 92,235 x 17.
I want to set the row names so that it goes from "1 x 2", "1 x 3", "1 x 4" ... "1 x 430", "2 x 3", "2 x 4" ... "2 x 430", "3 x 4", "3 x 5" ... "3 x 430" ... "429 x 430".
I know I'll need two for-loops
for(i in 1:430) {
for(j in seq(from = i+1, to = 430, by = 1))
# set row names
}
But once I do this I get the error
Error in seq.default(from = i + 1, to = 430, by = 1) :
wrong sign in 'by' argument
How do I correct this error and how do I go about customising my row names?
TIA