How to do it...

The following steps will walk you through a quick summary of the data:

  1. Take a look at the fields you imported using the following command:
> head(finviz[,1:4]) 

This command will show you the first six rows of your data, as shown in the following snippet, so that you can see what fields are in your data and also examples of possible values for the fields. In this example, we can also see that there is some missing data, identified by NA:

  No.   Ticker                             Company               Sector
1 1 A Agilent Technologies Inc. Healthcare
2 2 AA Alcoa, Inc. Basic Materials
3 3 AADR WCM/BNY Mellon Focused Growth ADR ETF Financial
4 4 AAIT iShares MSCI AC Asia Information Tech Financial
5 5 AAL American Airlines Group Inc. Services
6 6 AAMC Altisource Asset Management Corporation Financial
  1. The next command will return a summary of each field. For numeric fields, it will tell you what the min, max, mean, median, and quartiles are, and for character fields, it will tell you which appear most often: