SyntaxFix
Write A Post
Hire A Developer
Questions
Yes. But place your "test" after the comma if you want the column...
> A <- matrix(sample(1:12,12,T),ncol=4) > rownames(A) <- letters[1:3] > colnames(A) <- letters[11:14] > A[,"l"] a b c 6 10 1
see also help(Extract)
help(Extract)