TCData: Example hierarchical Tables

Description Usage Format Source Examples

Description

A list containing a number of example Tables that can be converted to LongForm dataframes by TableToLongForm. Each Tables is stored as a character matrix.

These datasets are generally not immediately useful as data, as they must first be converted (e.g. by using TableToLongForm).

If the user prefers to have these data in their Global Environment rather than nested inside a single list, they can use attach(TCData).

Usage

1

Format

list containing character matrices of varying size.

Source

Department of Internal Affairs (New Zealand) (2012) New Zealand Qualifications Authority (2012) Statistics New Zealand (2013)

Examples

1
2
3
4
5
6
7
  data(TCData)

  ## list all Tables
  names(TCData)

  ## One such Toy Example Table
  TCData$ToyExByEmptyBelow

Example output

 [1] "ToyExByEmptyBelow"           "ToyExByEmptyBelowT"         
 [3] "ToyExByEmptyRight1"          "ToyExByEmptyRight2"         
 [5] "ToyExByEmptyRight3"          "ToyExComplete"              
 [7] "ToyExFindSingleTable"        "ToyExIrregularColumnLabels" 
 [9] "ToyExMisalignedColumnLabel"  "ToyExMisalignedColumnLabel2"
[11] "ToyExMismatchedColumnLabel"  "ToyExMultiRowColumnLabel"   
[13] "NZQAScholarships"            "NZQASubjects"               
[15] "StatsNZGDP"                  "StatsNZLabourForce"         
[17] "DIATop100BabyBoysNames2011"  "DIATop100BabyGirlsNames2011"
     V1            V2           V3         V4         V5         V6        
[1,] NA            NA           "Column 1" "Column 2" "Column 3" "Column 4"
[2,] "Row Parent1" "Row Child1" "10"       "20"       "30"       "40"      
[3,] NA            "Row Child2" "11"       "21"       "31"       "41"      
[4,] "Row Parent2" "Row Child1" "12"       "22"       "32"       "42"      
[5,] NA            "Row Child2" "13"       "23"       "33"       "43"      

TableToLongForm documentation built on May 1, 2019, 7:15 p.m.