4 Typing Data Directly into R
Reminders: R is picky in its notation; you need to distinguish between upper/lower case. There are many ways of doing the same thing in R.
Type the code provided below in a R script to see the results. Typing is better than copying the code, as you might make a mistake in typing that allows you to learn how to debug your coding.
To do any analysis requires data. One can directly type data into R for use, or one could import data from an external data set or from the internet. This chapter focuses on the direct route.