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

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

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