read_matching_data: Read data for matching

View source: R/read_matching_data.R

read_matching_dataR Documentation

Read data for matching

Description

read_matching_data() reads a file to be used in matching_df() or matching_mt1().

Usage

read_matching_data(data, df_type = NULL, header = NULL, sep = NULL)

Arguments

data

A data frame or a data file containing preferences of proposers or proposed.

df_type

Type of df1 and df2, which should be one of "data.frame", "csv", "tsv", or "table". If not specified, matching_df() tries to determine the type.

header

A logical value showing if the data file has the header (variable names) row. If not specified, default is TRUE for "csv" and "tsv", and FALSE for "table".

sep

The field separator character. Values on each line of the file are separated by this character. If not specified, default is "," for "csv", "\t" for "tsv", and "" (white space) for "table".

Value

A data frame.

Author(s)

Yoshio Kamijo and Yuki Yanai yanai.yuki@kochi-tech.ac.jp


yukiyanai/rgamer documentation built on June 14, 2024, 7:38 p.m.