Learn R Programming

Biograph (version 1.0)

p.table: Print a table

Description

Prints a table of up to three dimensions

Usage

p.tableBiograph(table,filename,w,append)

Arguments

table
An object in table format.
filename
The name of the output file that contains the table.
w
Column width
append
A logical variable which is set to TRUE if table should be appendend to filename and to FALSE if new table should be created.

Examples

Run this code
# Print the table of transitions and exposure times that is the basis for the occurrence-exposure rates.
  data (GLHS)
  z<- Parameters (GLHS)
  occup <- Occup(GLHS)
  ist <- statesequence.ind (GLHS)
  trans <- Trans (GLHS,seq.ind=ist)
  y <- RateTable(GLHS, occup, trans)
  p.tableBiograph (table=y$Stable, filename="Stable.out",w=8,append=FALSE)

Run the code above in your browser using DataLab