Now that we have acquired our stock data, let's use a couple of commands to find out what fields our data contains and get some useful information about the values contained in these fields.
You will need the data downloaded from the previous recipe, Acquiring stock market data, to begin the summary.
The following steps will walk you through a quick summary of the data:
- 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...