Mock Survey Analysis Example with R

What are the basic techniques used to analyze survey response data? First off, this code generates a random sample of survey responses that we will analyze: