Learn R Programming

ONETr (version 1.0.3)

sim.index: Similarity indices for job attributes

Description

Computes the Sorensen-Dice and/or Jaccard indices of similarity between two jobs on the named data type (e.g., knowledge, skills, etc.).

Usage

sim.index(list1, list2, FUN, index=c("sd", "ji", "all"))

Arguments

list1
list object (from socSearch) of the first job
list2
list object (from socSearch) of the second job
FUN
job data type to compare (e.g., knowledge)
index
the preferred index of similarity (Sorensen-Dice and/or Jaccard). Can use "all" to compute both.

Value

A list of the computed indices

Examples

Run this code
    data(jobData)
    data(jobData2)
    sim.index(jobData, jobData2, knowledge, index="all")

Run the code above in your browser using DataLab