Code created by Dorian Gravier with the help of ChatGPT using webR and highlight.js.
The input boxes will permit you to use R code that will be run in the form of
paste0(input1, input2, input3, ...)
The inputs can be numerical (witout quote: 1, 2, 10+1, 1:10, 10:1) or strings (with quotes: "Hello world", "Finish;0;0;1"). If you want a carriage return use "\n".
paste0(201:210, ";Lap", 1:10, ";;0;;T", 101:110, "-T", (101:110)-1)
In some case you need a carriage return (\n) followed by a space. Use then "\n " in your string.
paste0(2002:2100, ";Control", 2:100, ";;0;CONTROL;(RAWDATA)\n 0;0;0;", 101:149, ";30;-1;0")
Code | Output | Explanation |
---|---|---|
1:10
|
1 2 3 4 5 6 7 8 9 10
|
Sequence of number from 1 to 10 with a step of 1 |
l0(1:5, 3)
|
001 002 003 004 005
|
Same with leading 0 l0(your seq, number of digits wanted) |
(1:10)+2
|
3 4 5 6 7 8 9 10 11 12
|
Same as above but add 2 to each |
rep(1:5, 2)
|
1 2 3 4 5 1 2 3 4 5
|
Repeat the sequence from 1 to 5 twice (2x) |
seq(1, 10, 2)
|
1 3 5 7 9
|
Sequence from 1 to 10 mit step 2, then 10 is not shown |
l0(rep(seq(1, 13, 3), 2), 3)
|
001 004 007 010 013 001 004 007 010 013
|
Sequence from 1 to 13 with step 3, repeated 2 times, with 3 digits (l0:leading 0) |
Output will appear here...