R/parsevector.R

Defines functions parsevector

parsevector <- function(x){
	#the main purpose of this function is to map JSON null values to NA.
	ifelse(is.null(x) || x == "NOT_DISPLAYED" || x == "SKIPPED", return(NA), return(x))
}

Try the Ohmage package in your browser

Any scripts or data that you put into this service are public.

Ohmage documentation built on Feb. 1, 2019, 1:04 a.m.