ONETr is a package for R that facilitates interaction with the O*NET™ API. The functions can perform searches of the occupational data based on keywords or O*NET™-SOC codes, and parse the XML output into a list
object. Then, individual functions can extract specific data as desired (see ONETr manual for more information).
This software is released under the GPL-3 license.
Note: User must be registered for an account with O*NET™ Web Services and have login credentials (specifically, a username and password) for the API.
Install from CRAN: install.packages("ONETr")
or
Install from GitHub:
- If not installed already, install dependencies (
RCurl
,XML
, andplyr
) anddevtools
package:install.packages("RCurl","XML”,”plyr”,”devtools")
. - Call
library(devtools)
to prepare for GitHub installation. - Use
install_github("eknud/ONETr")
to install the ONETr package.
To use the package:
- Initiate ONETr:
library(ONETr)
- Set API credentials provided by O*NET™ Web Services:
setCreds("username","password")
- Use
keySearch
andsocSearch
to search for and store occupational data. - Once job data is stored (using
socSearch
), all package functions should now be equipped to run. Read ONETr manual for detailed description of each function.