I want to combine cell values with numeric and character data into the same cell.
Specifically, I'm trying to combine named columns with the 'SEM' columns, with a ± symbol in between, to eventually become a table I can publish with latex
# A tibble: 4 x 10
Variety n Probes Probes SEM Walks Walks SEM Cleans Cleans SEM Off_Leaf Off_SEM
<chr> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 10LB mean 41 1.40 0.140 0.710 0.170 0.460 0.140 0.120 0.0520
2 3LB mean 48 1.50 0.130 0.880 0.170 0.310 0.0900 0.190 0.0710
3 4LB mean 43 1.80 0.160 1.10 0.190 0.370 0.120 0.280 0.190
4 RB mean 44 2.80 0.390 1.50 0.260 0.180 0.0750 0.0910 0.0440
Is there any way to make the previous table look like this:
# A tibble: 4 x 6
Variety n Probes Walks Cleans Off Leaf
<chr> <int> <chr> <chr> <chr> <chr>
1 10LB 41 1.4 ± 0.1 0.7 ± 0.2 0.5 ± 0.1 0.1 ± 0.05
2 3LB 48 1.5 ± 0.1 0. 9± 0.2 0.3 ± 0.09 0.2 ± 0.07
3 4LB 43 1.8 ± 0.2 1.1 ± 0.2 0.4 ± 0.1 0.3 ± 0.2
4 RB 44 2.8 ± 0.4 1.5 ± 0.3 0.2 ± 0.07 0.09 ± 0.04
while remaining in R?