What are the functions of primary groups and secondary groups?

A primary group has fact to face interactions and is more intimate than secondary groups. Secondary groups are more formal.