make_data_wide: Cast the dataset to wide format with every measure in its own...

Description Usage Arguments Examples

View source: R/make_data_wide.R

Description

Cast the dataset to wide format with every measure in its own column

Usage

1

Arguments

df

data.frame or data.table.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
addr_blk_cnts <- get_address_block_counts("DE")
make_data_wide(addr_blk_cnts)

# geoid year total_group_quarters total_housing_units
# 1: 100010401001000 2021                    0                  41
# 2: 100010401001001 2021                    0                  16
# 3: 100010401001002 2021                    0                  30
# 4: 100010401001003 2021                    0                  29
# 5: 100010401001004 2021                    0                   2
# ---                                                              
# 20195: 100059900000007 2021                    0                   0
# 20196: 100059900000008 2021                    0                   0
# 20197: 100059900000009 2021                    0                   0
# 20198: 100059900000010 2021                    0                   0
# 20199:           TOTAL 2021                  508              448735

uva-bi-sdad/dc.census.block.address.counts documentation built on Dec. 23, 2021, 2:05 p.m.