In a protein, there are 4 different levels or types of structures: the primary, secondary, tertiary, and quaternary structures. The secondary structure of a protein is the formation of either a beta helix an alpha helix, or a random coil structure.
The secondary protein structure is formed when a polypeptide chain folds, the side chains interact using hydrogen bonds, so it is maintained by the hydrogen bonding between the R group.