check type score

# Clean environment

closeAllConnections()

rm(list=ls())

# Set enviroment

setwd("~/your working directory")

# Load packages

library(bnpa)

# Load data sets from package

data.to.work <- dataQuantC

head(data.to.work)

####################################################################################

# check.types.score.R - Return the type of score needed to be used with BN learning algorithms.

###################################################################################

# Check and return a numeric value

type.variable <- check.types(data.to.work)

# Check the type of score

check.type.score(type.variable)

# Testing with qualitative data

data.to.work <- dataQualiN

# Check and return a numeric value

type.variable <- check.types(data.to.work)

# Check the type of score

check.type.score(type.variable)

###################################################################################

RESULTS:

###################################################################################