The chemical reactions and pathways involving rRNA, ribosomal RNA, a structural constituent of ribosomes.