Basic numeric row:
vec <- c(1.0, 1.01, 1.001)
TexRow(vec)
#> % created using textab on Wed Apr 26 17:42:44 2023
#> \begin{tabular}{rrr}
#> 1.000 & 1.010 & 1.001 \\
#> \end{tabular}
1. Rounding
Numeric row rounded to the second decimal place:
vec <- c(1.0, 1.01, 1.001)
TexRow(vec, dec = 2)
#> % created using textab on Wed Apr 26 17:42:44 2023
#> \begin{tabular}{rrr}
#> 1.00 & 1.01 & 1.00 \\
#> \end{tabular}
Entry-specific rounding:
2. Percentage
Numeric row where all numbers are percentages:
vec <- c(20,30,40)
TexRow(vec, dec = 0, percentage = TRUE)
#> % created using textab on Wed Apr 26 17:42:44 2023
#> \begin{tabular}{rrr}
#> 20\% & 30\% & 40\% \\
#> \end{tabular}
Only some entries are percentages:
3. Dollar Sign
Numeric row where all numbers are dollars:
vec <- c(20.32,30.67,40.98)
TexRow(vec, dec = 2, dollar = TRUE)
#> % created using textab on Wed Apr 26 17:42:44 2023
#> \begin{tabular}{rrr}
#> \$20.32 & \$30.67 & \$40.98 \\
#> \end{tabular}
Only some entries are in dollars:
4. Standard Error
Numeric row where all numbers are standard errors:
vec <- c(20.32,30.67,40.98)
TexRow(vec, dec = 2, se = TRUE)
#> % created using textab on Wed Apr 26 17:42:44 2023
#> \begin{tabular}{rrr}
#> (20.32) & (30.67) & (40.98) \\
#> \end{tabular}
Only some entries are standard errors: