Description Usage Arguments Details Value Note Author(s) Examples
Accepts a list of annual company listings, and graphs the number of companies in that state filing per year. It does this by counting the number of rows in each list member that correspond to a given state, and plotting it by year.
1 | state_compliance(x, state_input = "")
|
x |
A list of data frames from 2010 onwards |
state_input |
Uppercase 2-character state code. If this is not provided, the function will prompt for a state. |
This routine is a simple plotting routine that generates an x-y line graph, where x is the year, starting with 2010, and y is the number of rows per state in each data frame that is passed in. If no state is entered, Virginia (VA) is assumed. If no records are found for a given state, an error message is printed.
A line graph of annual company filings is generated
The routine assumes that the first item in the list is the data for 2010, and each subsequent list item is an additional sequential year.
Nick Lukianoff
1 2 | state_compliance(list(df1,df2,df3))
state_compliance(list(df1,df2,df3), "MD")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.