You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-23Lines changed: 13 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,10 @@ RegCensus API defines a number of dates depending on the series. For example, th
35
35
36
36
There are five helper functions to retrieve information about these key components of regdata. These functions provider the following information: document types, jurisdictions, series, agencies, and dates with data. The list functions begin with __list__.
37
37
38
-
Each document type comprises one or more *series*. The __list_series__ function returns the list of all series when no series id is provided.
38
+
Each document type comprises one or more *series*. The __list_series__ function returns the list of all series.
39
39
40
40
```
41
-
rc.list_series(jurisdictionID = 38)
41
+
rc.list_series()
42
42
```
43
43
44
44
Listing the jurisdictions is another great place to start. If you are looking for data for a specifc jurisdiction(s), this function
@@ -66,7 +66,7 @@ The __get_agencies__ function returns a data frame of agencies with data in RegD
66
66
The following code snippet will return data for all agencies in the Federal United States:
67
67
68
68
```
69
-
rc.get_agencies(jurisdiction = 38)
69
+
rc.get_agencies(jurisdictionID = 38)
70
70
```
71
71
72
72
Likewise, this code snippet will return data for all agencies (in any jurisdiction) containing the word "education" (not case sensitive):
@@ -84,38 +84,28 @@ The __get_industries__ function returns a data frame of industries with data in
84
84
The following line will get you industry information for all 4-digit NAICS industries:
85
85
86
86
```
87
-
rc.get_industries(codeLevel = 4)
87
+
rc.get_industries(labellevel = 4)
88
88
```
89
89
90
-
This line will get you information for the BEA industries:
90
+
This line will get you information for the BEA industries (this function is temporarily disabled as of 1.0.0):
91
91
92
92
```
93
-
rc.get_industries(standard = 'BEA')
93
+
rc.get_industries(labelsource = 'BEA')
94
94
```
95
95
96
-
Like the __get_agencies__ function, the `keyword` argument may also be used. The following code snippet will return information for all 6-digit NAICS industries with the word "fishing" in the name:
96
+
Like the __get_agencies__ function, the `keyword` argument may also be used. The following code snippet will return information for all 6-digit NAICS industries with the word "fishing" in the name (this function is temporarily disabled as of 1.0.0):
The __get_documents__ function returns a data frame with metadata for document-level data. The fucntion takes two parameters, jurisdictionID (required) and documentType (default value of 1, which is "all regulations").
105
-
106
-
The following line will get metadata for documents associated with U.S. Federal healthcare regulations.
The __get_values__ function is the primary function for obtaining RegData from the RegCensus API. The function takes the following parameters:
115
105
116
106
* jurisdiction (required) - value or list of jurisdiction IDs
117
107
* series (required) - value or list of series IDs
118
-
*date (required) - value or list of years
108
+
*year (required) - value or list of years
119
109
* agency (optional) - value or list of agencies
120
110
* industry (optional) - value of list of agencies
121
111
* dateIsRange (optional) - specify if the list of years provided for the parameter years is a range. Default is True.
@@ -130,15 +120,15 @@ The __get_values__ function is the primary function for obtaining RegData from t
130
120
In the example below, we are interested in the total number of restrictions and total number of words for the US (get_jurisdictions(38)) for the dates 2010 to 2019.
131
121
132
122
```
133
-
rc.get_values(series = [1,2], jurisdiction = 38, date = [2010, 2019])
123
+
rc.get_values(series = [1,2], jurisdiction = 38, year = [2010, 2019])
134
124
```
135
125
136
126
### Get all Values for a Country
137
127
138
-
The `country` argument can be used to get all values for one or multiple series for a specific national jurisdiction. The following line will get you a summary of the national and state-level restriction counts for the United States from 2016 to 2019:
128
+
The `country` argument can be used to get all values for one or multiple series for a specific national jurisdiction. The following line will get you a summary of the national and state-level restriction counts for the United States from 2016 to 2019 (this function is temporarily disabled as of 1.0.0):
0 commit comments