smargin.table: For a contingency table in array form, compute the sum of...

Description Usage Arguments Examples

View source: R/redefine.R

Description

Redefines margin.table to deal with NA values

Usage

1
  smargin.table(x, margin = NULL, na.rm = TRUE)

Arguments

x

an array

margin

index number (1 for rows, etc.)

na.rm

logical. Should missing values be removed? Passed to sum()

Examples

1
2
3
##m <- matrix(1:4,2)
##surveyor:::smargin.table(m, 1)
##surveyor:::smargin.table(m, 2)

andrie/surveyor documentation built on June 3, 2017, 7:04 p.m.