How do I fix problems with letters from a different alphabet on R? [duplicate] - r

This question already has answers here:
Why aren't these various encodings allowing me to properly display Portuguese?
(2 answers)
Closed 1 year ago.
When I first wrote my script, letters such as 'ç' and 'ã - very commonly used in portuguese - were fine. So if I wrote, for example, the word 'vagão' in portuguese, that's how it would read it. But when I reopened the project with that script, it reads "vagão". How do I fix it?

You must be looking at encoding issues or conversion issues due to encoding on Windows(assuming that you're using windows). This might give you your answer.

Related

Having issues with large numbers in R [duplicate]

This question already has answers here:
long/bigint/decimal equivalent datatype in R
(7 answers)
Closed 3 years ago.
I am assigning a large odd number to a variable (1126605209290117121) and it is being shown as (1126605209290117120) [observe the last digit] in the environment. But assigning a large even number is represented correctly. Can someone explain why?
a = 1126605209290117121
print(as.character(a))
[1] "1126605209290117120"
After searching through the internet I learned that R still has only 32-bit integers.
This blog post in R Bloggers summarises the problem clearly

Shortcut for %>% in RStudio? [duplicate]

This question already has answers here:
%>% key binding / keyboard shortcut in Rstudio
(5 answers)
Closed 5 years ago.
It's great in RStudio to have already a key short-cut for <-, which is ALT+-.
Wouldn't it be also great to have also a short-cut for %>%, which is possibly the second most frequent key sequence (after <-) that R programmers type?
Or maybe there is already one?
If you want to solve this in rstudio you can create an addin and reference a custom shortcut to your addin. Here is the reference page which will guide you through the process: https://rstudio.github.io/rstudioaddins/

The R console is in German language, how can I set R to English? [duplicate]

This question already has answers here:
The R console is in my native language, how can I set R to English?
(6 answers)
How to change language settings in R
(18 answers)
Closed 4 years ago.
I am using R on Windows 8. If I run R in RStudio, the console gives me the error messages in German. For a variety of reasons, this is undesirable, and I want R to be English.
I found the very same problem here:
The R console is in my native language, how can I set R to English?
I did exactly as was suggested (changed "Language for non-Unicode programs" to English and rewrote the Rconsole file) but it didn't help.
Best regards

determine when an R base function was added [duplicate]

This question already has answers here:
Figure out what version of R a function was introduced in
(2 answers)
Closed 9 years ago.
Is there a way to determine rather easily when an R function was added (what version number). Take for instance when were:
paste0 and browseVignettes added?
I'm not really looking for when these were added but a way to see when they were added.
Converting my comment to an answer as requested:
You can use the news() function
news(grepl("paste0", Text))
Go here: http://cran.r-project.org/src/base/NEWS.html
paste0 was in 2.15.0 and browseVignettes was 2.13.0 but it doesn't seem to mention browseVignettes.

How to display numbers in a human readable format? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Number format, writing 1e-5 instead of 0.00001
How to not display number as exponent?
I am using RStudio and have a problem that I could not find any solution for:
When working with very large numbers, R displays those number in a shorter format.
But when calculating (for example) (2000x1000x2000), I really want to see 4000000000 and not 4e+09.
How can I change that behaviour?

Resources