as.latex.table.discrete: Creates a LaTeX view with the discrete values

Description Usage Arguments Value Author(s) Examples

Description

Create a table view of the solved problem, with integer values. Ready to be written into a tex file.

Usage

1

Arguments

sp

a solved case produced by matching.solve

maxcol

an optional integer containing the highest count of columns to display (useful for large tables)

Value

a string containing a LaTeX table

Author(s)

Samuel Thiriot <samuel.thiriot@res-ear.ch>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(dwellings_households)
prepared <- matching.prepare(
                     dwellings_households$sample.A, dwellings_households$sample.B, 
                     dwellings_households$pdi, dwellings_households$pdj, 
                     dwellings_households$pij)
solved <- matching.solve(
                     prepared, nA=50000, nB=40000, nu.A=1, phi.A=0, 
                     delta.A=0, gamma=0, delta.B=0, phi.B=0, nu.B=1, verbose=TRUE)
# create the string
dv <- as.latex.table.discrete(solved)
print(dv)
# write it into a file
# write(dv, , file="case1_discrete.tex")

samthiriot/gosp.dpp documentation built on May 18, 2019, 3:44 p.m.