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
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,23 +32,24 @@ RegCensus API defines a number of periods depending on the series. For example,
32
32
There are six helper functions to retrieve information about these key components of regdata. These functions provider the following information: topics, documents, jurisdictions, series, agencies, and years with data. The list functions begin with __list__. For example, to view the list of topics call __list_topics__. When an topic id parameter is supplied, the function returns the details about a specific topic.
33
33
34
34
```
35
-
rc.list_topics()
35
+
rc.list_document_subtype()
36
36
```
37
37
38
-
Each topic comprises one or more *series*. The __list_series__ function returns the list of all series when no series id is provided.
38
+
Each subtype comprises one or more *series*. The __list_series__ function returns the list of all series when no series id is provided. This call is a great place to start if you are looking for data based on a **topic** first.
39
39
40
-
There are other helper functions that give you a tour around RegData. To see the jurisdictions with data in RegData, call __list_jurisdiction__. This function returns the complete list in a list format.
41
40
42
41
```
43
42
rc.list_jurisdictions(jurisdictionID = 38)
44
43
```
44
+
Just like the above function call, listing the jurisdictions is another great place to start. If you are looking for data for a specifc jurisdiction(s), this function
45
+
will return the jurisdiction_id for all jurisdiction, which is key for retrieving data on any individual jurisdiction.
45
46
46
-
The __get_series_period__ function returns a list of all seriesa and the years with data available.
47
+
The __get_periods__ function returns a list of all seriesa and the years with data available.
47
48
48
49
The output from this function can serve as a reference for the valid values that can be passed to parameters in the __get_values__ function. The number of records returned is the unique combination of series and jurisdictions that are available in RegData. The function takes the optional argument jurisdiction id.
49
50
50
51
```
51
-
rc.get_series_period(jurisdictionID = 38)
52
+
rc.get_periods(jurisdictionID = 38)
52
53
```
53
54
54
55
## Metadata
@@ -80,6 +81,16 @@ The __get_industries__ function returns a data frame of industries with data in
80
81
rc.get_industries(38)
81
82
```
82
83
84
+
### Documents
85
+
86
+
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 3, which is "all regulations").
87
+
88
+
The following line will get metadata for documents associated with U.S. Federal healthcare regulations.
0 commit comments