I want to subset just one line of cor() matrix
when I run the cor() function, It gives me this result
ex)
a b c d e
a 1 2 3 4 5
b 5 1 3 2 1
c 2 3 1 5 6
d 1 1 1 1 1
e 1 1 1 1 1
I only want this section
a b c d e
a 1 2 3 4 5
or
b c d e
a 2 3 4 5
Any Suggestion?
I tried result[1, 1:5] but the result was
a b c d e
1 2 3 4 5