load_cosine: Generates cosine histogram across all possible pairwise...

Description Usage Arguments Value Author(s) Examples

View source: R/industry.R View source: R/comparison.R

Description

load_cosine() loads .csv file that contains industry_group_name_a, industry_group_name_b and cosine_similarity_group column fields. The function returns 1 ggplot:

  1. skills - Histogram plot of cosine similarity for all possible pairwise industries

Usage

1
load_cosine(file, field = NULL)

Arguments

file

Path to the input file

field

Column name of the cosine index. By default, cosine_similarity_group is the column field.

Value

load_cosine() returns 1 ggplot object skills

Author(s)

Kai Wei Tan kaitan@linkedin.com

Examples

1
2
3
4
5
6
7
8
#load library
library('comparison')

#calling load_file function
test <- load_cosine("./dummy_data.csv", field = 'cosine_similarity_group')

#Plot histogram across all possible pairwise industries
test$skills

kitcatkai/comparision documentation built on Jan. 1, 2021, 7:20 a.m.