Rows: 9 Columns: 17
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (1): IPCC Area
dbl (16): Cattle - dairy, Cattle - non-dairy, Buffaloes, Swine - market, Swi...
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 3 × 6
id st_mean st_median st_sd st_min st_max
<chr> <dbl> <dbl> <dbl> <dbl> <dbl>
1 a 0.0312 -0.00141 0.978 -2.71 2.43
2 b 0.471 0.461 0.271 0.00192 0.987
3 c 0.995 0.671 0.906 0.0192 4.12
map_dfr(list(a,b,c),weights_stats,pivot=T)
# A tibble: 15 × 3
id name value
<chr> <chr> <dbl>
1 a st_mean 0.0312
2 a st_median -0.00141
3 a st_sd 0.978
4 a st_min -2.71
5 a st_max 2.43
6 b st_mean 0.471
7 b st_median 0.461
8 b st_sd 0.271
9 b st_min 0.00192
10 b st_max 0.987
11 c st_mean 0.995
12 c st_median 0.671
13 c st_sd 0.906
14 c st_min 0.0192
15 c st_max 4.12