R
This programming language may be used to instruct a computer to perform a task.
Listed below are all of the tasks on Rosetta Code which have been solved using R.
This programming language may be used to instruct a computer to perform a task.
Official website |
---|
Type expression: | Implicit |
---|---|
Lang tag(s): | rsplus |
See Also: |
|
Your Help Needed
If you know R, please write code for some of the tasks not implemented in R.
If you know R, please write code for some of the tasks not implemented in R.
R is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues. R can be considered as a different implementation of S. There are some important differences, but much code written for S runs unaltered under R.[1]
See Also[edit]
References[edit]
Subcategories
This category has the following 3 subcategories, out of 3 total.
Pages in category "R"
The following 490 pages are in this category, out of 490 total.
A
- A+B
- ABC problem
- Abundant odd numbers
- Abundant, deficient and perfect number classifications
- Accumulator factory
- Ackermann function
- Address of a variable
- AKS test for primes
- Align columns
- Almost prime
- Amb
- Amicable pairs
- Anagrams
- Anagrams/Deranged anagrams
- Animate a pendulum
- Animation
- Anonymous recursion
- Anti-primes
- Apply a callback to an array
- Arbitrary-precision integers (included)
- Archimedean spiral
- Arithmetic-geometric mean
- Arithmetic/Complex
- Arithmetic/Integer
- Array concatenation
- Array length
- Arrays
- Assertions
- Associative array/Creation
- Associative array/Iteration
- Attractive numbers
- Average loop length
- Averages/Arithmetic mean
- Averages/Mean angle
- Averages/Median
- Averages/Mode
- Averages/Pythagorean means
- Averages/Root mean square
- Averages/Simple moving average
B
- Babbage problem
- Balanced brackets
- Barnsley fern
- Benford's law
- Bernoulli numbers
- Binary digits
- Binary search
- Biorhythms
- Bitmap
- Bitmap/Bézier curves/Cubic
- Bitmap/Bézier curves/Quadratic
- Bitmap/Flood fill
- Bitmap/Write a PPM file
- Bitwise operations
- Boolean values
- Brownian tree
- Bulls and cows
- Bulls and cows/Player
C
- Caesar cipher
- Calculating the value of e
- Call a function
- Call a function in a shared library
- Cartesian product of two or more lists
- Case-sensitivity of identifiers
- Catalan numbers
- Catamorphism
- Chaos game
- Character codes
- Check Machin-like formulas
- Check that file exists
- Chinese remainder theorem
- Cholesky decomposition
- Church numerals
- Classes
- Closest-pair problem
- Closures/Value capture
- Collections
- Colour bars/Display
- Combinations
- Command-line arguments
- Comments
- Compare a list of strings
- Compound data type
- Constrained random points on a circle
- Convert decimal number to rational
- Conway's Game of Life
- Copy a string
- Copy stdin to stdout
- Count in factors
- Count occurrences of a substring
- CRC-32
- Create a file
- Create a two-dimensional array at runtime
- CSV data manipulation
- CSV to HTML translation
- Cumulative standard deviation
D
E
- Element-wise operations
- Emirp primes
- Empty program
- Empty string
- Entropy
- Enumerations
- Environment variables
- Ethiopian multiplication
- Euler method
- Evaluate binomial coefficients
- Even or odd
- Evolutionary algorithm
- Exceptions
- Exceptions/Catch an exception thrown in a nested call
- Execute a system command
- Exponentiation operator
- Extend your language
- Extreme floating point values
F
- Factorial
- Factors of an integer
- Farey sequence
- Fast Fourier transform
- FASTA format
- Fibonacci sequence
- Fibonacci word
- Fibonacci word/fractal
- File input/output
- File modification time
- File size
- Filter
- Find common directory path
- Find limit of recursion
- Find the intersection of a line with a plane
- Find the last Sunday of each month
- Find the missing permutation
- First class environments
- First-class functions
- First-class functions/Use numbers analogously
- Five weekends
- Fivenum
- FizzBuzz
- Flatten a list
- Formatted numeric output
- Forward difference
- Fractal tree
- Function composition
- Function definition
- Fusc sequence
G
- Gamma function
- Gaussian elimination
- General FizzBuzz
- Generate Chess960 starting position
- Generate lower case ASCII alphabet
- Generate random chess position
- Generator/Exponential
- Generic swap
- Get system command output
- Gray code
- Grayscale image
- Greatest common divisor
- Greatest element of a list
- Greatest subsequential sum
- Greyscale bars/Display
- Guess the number
- Guess the number/With feedback
- Guess the number/With feedback (player)
- GUI component interaction
- GUI enabling/disabling of controls
H
- Hailstone sequence
- Hamming numbers
- Happy numbers
- Hash from two arrays
- Haversine formula
- Hello world/Graphical
- Hello world/Newline omission
- Hello world/Standard error
- Hello world/Text
- Hello world/Web server
- Heronian triangles
- Higher-order functions
- Hofstadter Q sequence
- Hofstadter-Conway $10,000 sequence
- Horner's rule for polynomial evaluation
- Host introspection
- Hostname
- HTTP
- HTTPS
I
K
L
- Langton's ant
- Last Friday of each month
- Leap year
- Least common multiple
- Left factorials
- Leonardo numbers
- Letter frequency
- Linear congruential generator
- List comprehensions
- Literals/Integer
- Literals/String
- Logical operations
- Logistic curve fitting in epidemiology
- Long multiplication
- Look-and-say sequence
- Loop over multiple arrays simultaneously
- Loops/Break
- Loops/Continue
- Loops/Do-while
- Loops/Downward for
- Loops/For
- Loops/For with a specified step
- Loops/Foreach
- Loops/Increment loop index within loop body
- Loops/Infinite
- Loops/N plus one half
- Loops/Nested
- Loops/While
- Loops/Wrong ranges
- LU decomposition
- Lucas-Lehmer test
- Luhn test of credit card numbers
- Lychrel numbers
M
- Magic 8-ball
- Magic squares of doubly even order
- Magic squares of odd order
- Magic squares of singly even order
- Man or boy test
- Mandelbrot set
- Matrix multiplication
- Matrix transposition
- Matrix-exponentiation operator
- McNuggets problem
- MD5
- Memory allocation
- Menu
- Merge and aggregate datasets
- Mind boggling card trick
- Modulinos
- Monte Carlo methods
- Monty Hall problem
- Multifactorial
- Multiple distinct objects
- Multiple regression
- Multiplication tables
- Musical scale
- Mutual recursion
N
O
P
- P-value correction
- Palindrome detection
- Pangram checker
- Partial function application
- Pascal matrix generation
- Pascal's triangle
- Password generator
- Peano curve
- Penney's game
- Pentagram
- Perfect numbers
- Perfect shuffle
- Permutation test
- Permutations
- Pi
- Pick random element
- Play recorded sounds
- Playing cards
- Plot coordinate pairs
- Polymorphism
- Polynomial long division
- Polynomial regression
- Power set
- Price fraction
- Primality by trial division
- Prime conspiracy
- Prime decomposition
- Priority queue
- Probabilistic choice
- Program name
- Program termination
- Proper divisors
- Pythagoras tree
R
- Random number generator (included)
- Random numbers
- Range expansion
- Range extraction
- Ray-casting algorithm
- Read a file line by line
- Read a specific line from a file
- Read entire file
- Real constants and functions
- Recaman's sequence
- Reduced row echelon form
- Regular expressions
- Remove duplicate elements
- Rename a file
- Repeat
- Repeat a string
- Return multiple values
- Reverse a string
- Reverse words in a string
- Roman numerals/Decode
- Roman numerals/Encode
- Roots of a function
- Roots of a quadratic function
- Roots of unity
- Rosetta Code/Count examples
- Rosetta Code/Find unimplemented tasks
- Rosetta Code/Fix code tags
- Rosetta Code/Rank languages by popularity
- Rot-13
- Run-length encoding
- Runge-Kutta method
- Runtime evaluation
- Runtime evaluation/In an environment
S
- Sattolo cycle
- Scope modifiers
- Search a list
- SEDOLs
- Send email
- Sequence of non-squares
- Seven-sided dice from five-sided dice
- SHA-1
- SHA-256
- Shell one-liner
- Short-circuit evaluation
- Show ASCII table
- Show the epoch
- Sierpinski carpet
- Sierpinski triangle
- Sierpinski triangle/Graphical
- Sieve of Eratosthenes
- Simple windowed application
- Sleep
- Sockets
- Sort an array of composite structures
- Sort an integer array
- Sort disjoint sublist
- Sort stability
- Sort three variables
- Sort using a custom comparator
- Sorting algorithms/Bogosort
- Sorting algorithms/Bubble sort
- Sorting algorithms/Cocktail sort
- Sorting algorithms/Comb sort
- Sorting algorithms/Counting sort
- Sorting algorithms/Gnome sort
- Sorting algorithms/Insertion sort
- Sorting algorithms/Merge sort
- Sorting algorithms/Permutation sort
- Sorting algorithms/Quicksort
- Sorting algorithms/Selection sort
- Sorting algorithms/Stooge sort
- Spiral matrix
- Stack
- Stack traces
- Stair-climbing puzzle
- Statistics/Basic
- Statistics/Normal distribution
- Stem-and-leaf plot
- Stern-Brocot sequence
- String case
- String comparison
- String concatenation
- String length
- Strip comments from a string
- Strip whitespace from a string/Top and tail
- Subleq
- Substring
- Sum and product of an array
- Sum digits of an integer
- Sum multiples of 3 and 5
- Sum of a series
- Sum of squares
- Sunflower fractal
- Symmetric difference
- System time
T
- Take notes on the command line
- Terminal control/Ringing the terminal bell
- Test a function
- Text processing/1
- Text processing/2
- Text processing/Max licenses in use
- The Twelve Days of Christmas
- Thue-Morse
- Time a function
- Tokenize a string
- Top rank per group
- Topological sort
- Topswops
- Towers of Hanoi
- Trabb Pardo–Knuth algorithm
- Transportation problem
- Trigonometric functions
- Truth table