Example (reflection and projection onto plane)
To reflect a point in $\R^3$ about a plane normal to $\hat n$ through the origin, the matrix is $$ R_{ij} = \delta_{ij} - 2n_in_j. $$
To project it onto the plane, the matrix is $$ R_{ij} = \delta_{ij} - n_in_j. $$