Sibanjan Das provides some of the basics of data analysis using R:
Let’s start thinking in a logical way the steps that one should perform once we have the data imported into R.
- The first step would be to discover what’s in the data file that was exported. To do this, we can:
- Use head function to view few rows from the data set. By default, head shows first 5 rows. Ex:
head(mtcars)
- str to view the structure of the imported data. Ex:
str(mtcars)
- summary to view the data summary. Ex:
summary(mtcars)
There’s a lot to data analysis, but this is a good start.