Learn R Programming

gimmeTools (version 0.1)

gen_path_mat: Generate path matrix from data file

Description

Helper function to generate an empty similarity matrix based on header of individual data file

Usage

gen_path_mat(x, diag = T)

Arguments

x

The data file

diag

Whether diagonal elements should exist

Value

Empty matrix with named rows and columns corresponding to individual data files

Examples

Run this code
# NOT RUN {
gen_path_mat(data.frame(V1 = rnorm(10, 0, 1), V2 = rnorm(10, 0, 1)))
# }

Run the code above in your browser using DataLab