It's an anonymous function. Whenever you have a function that you could write in one line and you don't think it's worth to give it a name, you use this syntax. The backslash character was added in R 4.1 if I'm not mistaken and basically is the equivalent of writing function So, it's the equivalent of the following code lapply(dat, function(x) x - min(x)) |> list2DF() Answer from tururut_tururut on reddit.com
🌐
R Project
cran.r-project.org › doc › manuals › r-devel › R-lang.pdf pdf
The R Language Definition Version 4.6.0 Under development (2025-12-11) DRAFT
Computation in R consists of sequentially evaluating statements. Statements, such as x<-1:10 · or mean(y), can be separated by either a semi-colon or a new line.
🌐
McGill Library
libraryguides.mcgill.ca › c.php
Common Operators in R - Learn R - Guides at McGill Library
This guide focuses on transformation and cleaning functions in R that are especially useful for working with tabular datasets.
🌐
Quora
quora.com › What-does-r-mean-in-a-programming-language
What does \r mean in a programming language? - Quora
In most computer languages “\r” represents a “carriage return”. The two characters when entered into a computer program will be replaced by a single character with the ASCII code of 13.
🌐
R Project
cran.r-project.org › doc › manuals › r-release › R-lang.pdf pdf
R Language Definition Version 4.5.2 (2025-10-31) DRAFT R Core Team
Computation in R consists of sequentially evaluating statements. Statements, such as x<-1:10 · or mean(y), can be separated by either a semi-colon or a new line.
🌐
Wikipedia
en.wikipedia.org › wiki › R.
R. - Wikipedia
August 7, 2024 - Regnavit or rexit, abbreviated as r., used in historiography to designate the ruling period of a person in dynastic power, to distinguish from his or her lifespan (e.g. "Charles V (r.
🌐
YourDictionary
yourdictionary.com › home › dictionary meanings › r definition
R Definition & Meaning | YourDictionary
Any of the speech sounds that this letter represents, as, in English, the (r) of rude.
Find elsewhere
🌐
Cambridge Dictionary
dictionary.cambridge.org › dictionary › english › r
R, r | English meaning - Cambridge Dictionary
R, r definition: 1. the 18th letter of the English alphabet 2. written abbreviation for river, used in writing…. Learn more.
🌐
Reddit
reddit.com › r/rlanguage › what does ``` mean in r?
What does ``` mean in R? : r/Rlanguage
March 11, 2021 - To answer your question: the three backticks (followed by {r} in Rmarkdown tell the parser that the next bit is R code that needs to be executed.
🌐
Quora
quora.com › What-does-mean-in-R
What does ! mean in R? - Quora
Answer (1 of 2): "!" means the opposite of a command, is you write !is.na, you're asking R to count all the non-NA values.
🌐
Encyclopedia Britannica
britannica.com › dictionary › R
R Definition & Meaning | Britannica Dictionary
R meaning: used as a special mark to indicate that people over the age of 17 or 18 may see a particular movie but that younger people may only see the movie in a movie theater with a parent or guardian
Top answer
1 of 12
1085

In terms of ascii code, it's 3 -- since they're 10 and 13 respectively;-).

But seriously, there are many:

  • in Unix and all Unix-like systems, \n is the code for end-of-line, \r means nothing special
  • as a consequence, in C and most languages that somehow copy it (even remotely), \n is the standard escape sequence for end of line (translated to/from OS-specific sequences as needed)
  • in old Mac systems (pre-OS X), \r was the code for end-of-line instead
  • in Windows (and many old OSs), the code for end of line is 2 characters, \r\n, in this order
  • as a (surprising;-) consequence (harking back to OSs much older than Windows), \r\n is the standard line-termination for text formats on the Internet
  • for electromechanical teletype-like "terminals", \r commands the carriage to go back leftwards until it hits the leftmost stop (a slow operation), \n commands the roller to roll up one line (a much faster operation) -- that's the reason you always have \r before \n, so that the roller can move while the carriage is still going leftwards!-) Wikipedia has a more detailed explanation.
  • for character-mode terminals (typically emulating even-older printing ones as above), in raw mode, \r and \n act similarly (except both in terms of the cursor, as there is no carriage or roller;-)

In practice, in the modern context of writing to a text file, you should always use \n (the underlying runtime will translate that if you're on a weird OS, e.g., Windows;-). The only reason to use \r is if you're writing to a character terminal (or more likely a "console window" emulating it) and want the next line you write to overwrite the last one you just wrote (sometimes used for goofy "ascii animation" effects of e.g. progress bars) -- this is getting pretty obsolete in a world of GUIs, though;-).

2 of 12
212

Historically a \n was used to move the carriage down, while the \r was used to move the carriage back to the left side of the page.

🌐
Quora
quora.com › What-is-the-meaning-of-this-R
What is the meaning of this R
Answer (1 of 12): The registered trademark symbol, ®, is a typographic symbol that provides notice that the preceding word or symbol is a trademark or service mark that has been registered with a national trademark office.
🌐
Dictionary.com
dictionary.com › browse › r
R Definition & Meaning | Dictionary.com
R definition: the 18th letter of the English alphabet, a consonant.. See examples of R used in a sentence.
🌐
Investopedia
investopedia.com › terms › r › r.asp
R: What it Means, Uses, Financial Formulas
July 23, 2020 - R is a letter addendum to a stock ticker to identify the security as a rights offering. R is also the abbreviation for "return" in formulas.