Learn R Programming

The phscs Package

The goal of phscs is to provide a unified interface to access and manipulate various Philippine statistical classifications, such as the Philippine Standard Geographic Code (PSGC), Philippine Standard Industrial Classification (PSIC), Philippine Standard Occupational Classification (PSOC), and others.

It allows users to retrieve, filter, and harmonize classification data from the Philippine Statistics Authority (PSA)’s open-access data and other sources, making it easier to work with Philippine statistical data in R.

Installation

Install from CRAN:

install.packages("phscs")

You can also install the development version of phscs from GitHub using the pak package:

# install.packages("pak")
pak::pak("yng-me/phscs")

Usage

library(phscs)

# Retrieve Philippine Standard Geographic Code (PSGC) data
psgc_data <- get_psgc()
head(psgc_data)

# Retrieve Philippine Standard Industrial Classification (PSIC) data
psic_data <- get_psic()
head(psic_data)

# Retrieve Philippine Standard Occupational Classification (PSOC) data
psoc_data <- get_psoc()
head(psoc_data)

Copy Link

Version

Install

install.packages('phscs')

Monthly Downloads

219

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Bhas Abdulsamad

Last Published

November 9th, 2025

Functions in phscs (0.1.0)

get_psic

Philippine Standard Industrial Classification (PSIC)
shorten_region_name

Shorten region name
get_psgc

Philippine Standard Geographic Code (PSGC)
get_pcoicop

Philippine Classification of Individual Consumption According to Purpose (PCOICOP)
get_psced

Philippine Standard Classification of Education (PSCED)
get_psoc

Philippine Standard Occupational Classification (PSOC)
get_pcpc

Philippine Central Product Classification (PCPC)