I tried using \u2264 for the less than or equal sign:
> names(table_A1) <- c("x", "P(X=x)", "P(X\u2264x)")
> print(table_A1)
but this appears in the output:
> x P(X=x) **P(X=x)**
> 1 2 0.562 0.563
> 2 3 0.281 0.844
> 3 4 0.105 0.949
> 4 5 0.035 0.984
> ...
while if I click view table this appears:
> x P(X=x) **P(X≤x)**
> 1 2 0.562 0.563
> 2 3 0.281 0.844
> 3 4 0.105 0.949
> ...
Is there any other way that I can print this sign?
As requested:
> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.1 tools_3.5.1 yaml_2.2.0
I cannot reproduce this issue:
Created on 2018-11-08 by the reprex package (v0.2.1)