Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
16
145
title
stringclasses
1 value
text
stringlengths
1
4k
R_base_tools/R_base_all_234_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # transform: Transform an Object, for Example a Data Frame ## Description ` transform ` is a...
R_base_tools/R_base_all_399_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # NotYet: Not Yet Implemented Functions and Unused Arguments ## Description In order to pinp...
R_base_tools/R_base_all_60_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # search: Give Search Path for R Objects ## Description Gives a list of ` [ attach ](/link/a...
R_base_tools/R_base_all_210_1.txt
n ` ), but portable code should not use Fortran names containing underscores. Use ` .Fortran ` with care for compiled Fortran 9x code: it may not work if the Fortran 9x compiler used differs from the Fortran 77 compiler used when configuring R , especially if the subroutine name is not lower-case or includes an unde...
R_base_tools/R_micropan_40_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ micropan (version 1.0 ) ](/packages/micropan/versions/1.0) # hmmerCleanOverlap and nonoverlap: Removing overlapping hits from HMMER3 scans ## Descri...
R_base_tools/strings.html7_60_0.txt
By default these matches are “greedy”: they will match the longest string possible. You can make them “lazy”, matching the shortest string possible by putting a ` ? ` after them. This is an advanced feature of regular expressions, but it’s useful to know that it exists: str_view(x, 'C{2,3}?') #> [1] ...
R_base_tools/R_base_all_182_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # ns-internals: Namespace Internals ## Description Internal namespace support functions. Not...
R_base_tools/R_base_all_125_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # LongVectors: Long Vectors ## Description Vectors of \\(2^{31}\\) or more elements were add...
R_base_tools/stringr.html4_8_0.txt
` str_sub ` also (conveniently) works with negative numbers. In this case, they work backwards from the end of a string str_sub(y, start = -7, end = -3) ## [1] "fight"
R_base_tools/R_base_all_188_1.txt
ction. Because of the way it is implemented, on a Unix-alike ` stderr = TRUE ` implies ` stdout = TRUE ` : a warning is given if this is not what was specified. When ` timeout ` is non-zero, the command is terminated after the given number of seconds. The termination works for typical commands, but is not guaranteed:...
R_base_tools/R_base_all_246_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # match: Value Matching ## Description ` match ` returns a vector of the positions of (first...
R_base_tools/strings.html7_106_0.txt
### 14.4.5 Splitting Use ` str_split() ` to split a string up into pieces. For example, we could split sentences into words:
R_base_tools/strings.html7_66_0.txt
1. Describe, in words, what these expressions will match: 1. ` (.)\1\1 ` 2. ` "(.)(.)\\2\\1" ` 3. ` (..)\1 ` 4. ` "(.).\\1.\\1" ` 5. ` "(.)(.)(.).*\\3\\2\\1" ` 2. Construct regular expressions to match words that:
R_base_tools/strings.html7_115_0.txt
When you use a pattern that’s a string, it’s automatically wrapped into a call to ` regex() ` : # The regular call: str_view(fruit, "nana") # Is shorthand for str_view(fruit, regex("nana"))
R_base_tools/R_base_all_191_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # chartr: Character Translation and Casefolding ## Description Translate characters in chara...
R_base_tools/strings.html7_77_0.txt
A common use of ` str_detect() ` is to select the elements that match a pattern. You can do this with logical subsetting, or the convenient ` str_subset() ` wrapper: words[str_detect(words, "x$")] #> [1] "box" "sex" "six" "tax" str_subset(words, "x$") #> [1] "box" "sex" "six" "tax"
R_base_tools/R_base_all_77_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # weekdays: Extract Parts of a POSIXt or Date Object ## Description Extract the weekday, mon...
R_base_tools/R_base_all_153_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # outer: Outer Product of Arrays ## Description The outer product of the arrays ` X ` and ` ...
R_base_tools/stringr.html4_30_0.txt
### Joining and splitting Next we have joining and splitting which, as the heading suggests, involves joining or splitting strings together. Joining strings is especially useful when we want to present summary information based on statistics that have yet to be computed. ` str_c ` takes a comma separated collection o...
R_base_tools/stringr.html4_50_0.txt
s <- c("apple", "pineapple", "banana") str_subset(s, "a") ## [1] "apple" "pineapple" "banana" str_subset(s, "a$") ## [1] "banana" Of course, if we actually wanted to find “^” or “$”, we would need to escape them
R_base_tools/R_base_all_260_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # levels: Levels Attributes ## Description ` levels ` provides access to the levels attribut...
R_base_tools/R_base_all_337_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # unlist: Flatten Lists ## Description Given a list structure ` x ` , ` unlist ` simplifies ...
R_base_tools/R_base_all_104_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # quit: Terminate an R Session ## Description The function ` quit ` or its alias ` q ` termi...
R_base_tools/strings.html7_131_0.txt
13 Relational data 15 Factors
R_base_tools/R_base_all_56_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # is.object: Is an Object ‘internally classed’? ## Description A function rather for interna...
R_base_tools/stringr.html4_40_0.txt
s <- c("dog", "cat", "parrot", "hamster") idx <- str_detect(s, pattern = "o") s[idx] # true and false values ## [1] "dog" "parrot" str_subset(s, "o") ## [1] "dog" "parrot" Also useful is ` str_count ` which counts the number of times a pattern appea...
R_base_tools/R_base_all_130_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # nrow: The Number of Rows/Columns of an Array ## Description ` nrow ` and ` ncol ` return t...
R_base_tools/R_base_all_197_1.txt
/dev2bitmap?package=base&version=3.6.2) ` , ` [ bitmap ](/link/bitmap?package=base&version=3.6.2) ` and ` [ embedFonts ](/link/embedFonts?package=base&version=3.6.2) ` . Consulted when those functions are invoked. Since it will be treated as if passed to ` [ system ](/link/system?package=base&version=3.6.2) ` , spaces ...
R_base_tools/R_base_all_161_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # dcf: Read and Write Data in DCF Format ## Description Reads or writes an R object from/t...
R_base_tools/R_base_all_23_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # do.call: Execute a Function Call ## Description ` do.call ` constructs and executes a func...
R_base_tools/stringr.html4_64_0.txt
s <- c("Apple", "Pineapple", "Pear", "Orange", "Peach", "Banana") str_subset(s, "ap*") ## [1] "Pineapple" "Pear" "Orange" "Peach" "Banana" This seems a little silly, but its utility becomes more apparent in the following example
R_base_tools/R_base_all_351_2.txt
apply(v, f2, outer(1:3, 1:5), y = 2*(1:5)) stopifnot(dim(a2) == c(3,5,4), all.equal(a2, a.2), identical(dimnames(a2), list(NULL,NULL,LETTERS[1:4]))) hist(replicate(100, mean(rexp(10)))) ## use of replicate() with parameters: foo <- function(x = 1, y = 2) c(x, y) # does not wo...
R_base_tools/strings.html7_123_0.txt
The downside of ` coll() ` is speed; because the rules for recognising which characters are the same are complicated, ` coll() ` is relatively slow compared to ` regex() ` and ` fixed() ` . * As you saw with ` str_split() ` you can use ` boundary() ` to match boundaries. You can also use it with the other func...
R_base_tools/R_base_all_317_1.txt
this code ](https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=packages%2Fbase%2Fversions%2F3.6.2%2Ftopics%2Fprint&utm_source=r-docs&utm_medium=docs&utm_term=print&utm_content=run_example_in_workspace) # NOT RUN { require(stats) ts(1:20) #-- print is the "Default function" --> ...
R_base_tools/R_base_all_390_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # qr: The QR Decomposition of a Matrix ## Description ` qr ` computes the QR decomposition o...
R_base_tools/R_base_all_90_1.txt
` stderr ` will be sent to the terminal unless ` ignore.stderr = TRUE ` . They can be captured (in the most likely shells) by system("some command 2>&1", intern = TRUE) For GUIs, what happens to output sent to ` stdout ` or ` stderr ` if ` intern = FALSE ` is interface-specific, and it is unsaf...
R_base_tools/R_base_all_264_3.txt
## all with same width (one more than the specified minimum) ## individual formatting to common width: fc <- formatC(1.234 + 10^(0:8), format = "fg", width = 11, big.mark = "'") cbind(fc) ## Powers of two, stored exactly, formatted individually: pow.2 <- formatC(2^-(1:32), digits = 24, width ...
R_base_tools/R_base_all_196_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # dontCheck: Identity Function to Suppress Checking ## Description The ` dontCheck ` functio...
R_base_tools/R_base_all_344_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # crossprod: Matrix Crossproduct ## Description Given matrices ` x ` and ` y ` as arguments,...
R_base_tools/R_base_all_364_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # sequence: Create A Vector of Sequences ## Description For each element of ` nvec ` the seq...
R_base_tools/R_base_all_38_1.txt
ng ` NULL ` removes the class attribute. ` unclass ` returns (a copy of) its argument with its class attribute removed. (It is not allowed for objects which cannot be copied, namely environments and external pointers.) ` inherits ` indicates whether its first argument inherits from any of the classes specified in the...
R_base_tools/R_base_all_375_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # nchar: Count the Number of Characters (or Bytes or Width) ## Description ` nchar ` takes a...
R_base_tools/R_base_all_126_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # octmode: Display Numbers in Octal ## Description Convert or print integers in octal format...
R_base_tools/stringr.html3_6_0.txt
You can also use ` str_sub() ` to modify strings: str_sub(x, 3, 3) <- "X" x #> [1] "abXdef" "ghXfjk"
R_base_tools/R_base_all_257_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # file.info: Extract File Information ## Description Utility function to extract information...
R_base_tools/R_base_all_3_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # chol: The Choleski Decomposition ## Description Compute the Choleski factorization of a re...
R_base_tools/strings.html6_19_0.txt
## Manage Lengths * ` str_length(string) ` : The width of strings (i.e. number of code points, which generally equals the number of characters). str_length(fruit)
R_base_tools/R_base_all_179_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # complex: Complex Numbers and Basic Functionality ## Description Basic functions which supp...
R_base_tools/R_tools_2_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ tools (version 3.6.2 ) ](/packages/tools/versions/3.6.2) # parseLatex: Experimental Functions to Work with LaTeX Code ## Description The ` parseLat...
R_base_tools/strings.html6_35_0.txt
see <- function(rx) str_view("abc ABC 123\t.!?\\(){}\n", rx) 1Many base R functions require classes to be wrapped in a second set of [ ], e.g. [[:digit:]] string (type this) | regex (to mean this) | matches (which matches this) | example | example output (highlighted characters are in <...
R_base_tools/R_base_all_140_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # mode: The (Storage) Mode of an Object ## Description Get or set the type or storage mode o...
R_base_tools/strings.html7_46_0.txt
1. Start with “y”. 2. End with “x” 3. Are exactly three letters long. (Don’t cheat by using ` str_length() ` !) 4. Have seven letters or more. Since this list is long, you might want to use the ` match ` argument to ` str_view() ` to show only the matching or non-matching words.
R_base_tools/R_base_all_197_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # EnvVar: Environment Variables ## Description Details of some of the environment variables ...
R_base_tools/strings.html6_44_0.txt
Use parentheses to set precedent (order of evaluation) and create groups Groups regexp | matches | example | example output (highlighted characters are in <>) ---|---|---|--- ` (ab|d)e ` | sets precedence | ` alt("(ab|d)e") ` | abc<de> Use an escaped number to refer to and duplicat...
R_base_tools/R_base_all_92_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # sort: Sorting or Ordering Vectors ## Description Sort (or _order_ ) a vector or factor (pa...
R_base_tools/strings.html7_76_0.txt
# Find all words containing at least one vowel, and negate no_vowels_1 <- !str_detect(words, "[aeiou]") # Find all words consisting only of consonants (non-vowels) no_vowels_2 <- str_detect(words, "^[^aeiou]+$") identical(no_vowels_1, no_vowels_2) #> [1] TRUE The results are identical...
R_base_tools/R_base_all_295_1.txt
_medium=docs&utm_term=strsplit&utm_content=run_example_in_workspace) # NOT RUN { noquote(strsplit("A text I want to display with spaces", NULL)[[1]]) x <- c(as = "asfef", qu = "qwerty", "yuiop[", "b", "stuff.blah.yech") # split x on the letter e strsplit(x, "e") unlist(strsp...
R_base_tools/stringr.html4_25_0.txt
Personally, I really like using this function to remove characters I don’t want by replacing a pattern with ` "" ` or ` "_" ` x <- "123-456-789" str_replace_all(x, "-", "") ## [1] "123456789"
R_base_tools/R_base_all_283_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # make.unique: Make Character Strings Unique ## Description Makes the elements of a characte...
R_base_tools/R_base_all_330_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # base-internal: Internal Objects in Package base ## Description Internal objects in the ba...
R_base_tools/strings.html7_48_0.txt
* ` \d ` : matches any digit. * ` \s ` : matches any whitespace (e.g. space, tab, newline). * ` [abc] ` : matches a, b, or c. * ` [^abc] ` : matches anything except a, b, or c. Remember, to create a regular expression containing ` \d ` or ` \s ` , you’ll need to escape the ` \ ` for the string, so you’ll t...
R_base_tools/R_base_all_16_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # Sys.which: Find Full Paths to Executables ## Description This is an interface to the syste...
R_base_tools/R_micropan_4_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ micropan (version 1.0 ) ](/packages/micropan/versions/1.0) # reverseComplement: Reverse-complement of a DNA or RNA sequence ## Description Translat...
R_base_tools/stringr.html3_14_0.txt
x <- "I like horses." str_to_upper(x) #> [1] "I LIKE HORSES." str_to_title(x) #> [1] "I Like Horses." str_to_lower(x) #> [1] "i like horses." # Turkish has two sorts of i: with and without the dot str_to_lower(x, "tr") #> [1] "ı like horses." String ordering and ...
R_base_tools/R_base_all_117_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # autoload: On-demand Loading of Packages ## Description ` autoload ` creates a promise-to-e...
R_base_tools/R_micropan_18_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ micropan (version 1.0 ) ](/packages/micropan/versions/1.0) # plot.Fasta: Plotting and printing ` Fasta ` objects ## Description Generic functions f...
R_base_tools/R_base_all_427_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # mat.or.vec: Create a Matrix or a Vector ## Description ` mat.or.vec ` creates an ` nr ` by...
R_base_tools/R_base_all_175_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # CallExternal: Modern Interfaces to C/C++ code ## Description Functions to pass R objects...
R_base_tools/R_base_all_203_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # La_library: LAPACK Library ## Description Report the name of the shared object file with `...
R_base_tools/R_base_all_252_1.txt
shQuote ](/link/shQuote?package=base&version=3.6.2) ` for quoting OS commands. ## Examples [ Run this code ](https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=packages%2Fbase%2Fversions%2F3.6.2%2Ftopics%2FsQuote&utm_source=r-docs&utm_medium=docs&utm_term=sQuote&utm_content=run_example_in_workspace) ...
R_base_tools/R_base_all_24_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # vector: Vectors ## Description ` vector ` produces a vector of the given length and mode. ...
R_base_tools/R_micropan_15_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ micropan (version 1.0 ) ](/packages/micropan/versions/1.0) # panPrep: Preparing FASTA files for pan-genomics ## Description Preparing a FASTA file ...
R_base_tools/R_base_all_40_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # all: Are All Values True? ## Description Given a set of logical vectors, are all of the va...
R_base_tools/strings.html7_118_0.txt
* ` dotall = TRUE ` allows ` . ` to match everything, including ` \n ` . There are three other functions you can use instead of ` regex() ` :
R_base_tools/R_base_all_415_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # comment: Query or Set a ` "comment" ` Attribute ## Description These functions set and que...
R_base_tools/stringr.html4_60_0.txt
s <- c("a1", "b2", "c3", "d4") # Anything BUT 1 or 3 str_subset(s, pattern = "[^13]") ## [1] "a1" "b2" "c3" "d4" str_view(s, pattern = "[^13]") ## [1] │ <a>1 ## [2] │ <b><2> ## [3] │ <c>3 ## [4] │ <d><4> By playing around a bit, we can mo...
R_base_tools/R_micropan_1_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ micropan (version 1.0 ) ](/packages/micropan/versions/1.0) # readFasta and writeFasta: Read and write biological sequence files. ## Description Rea...
R_base_tools/R_base_all_240_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # conditions: Condition Handling and Recovery ## Description These functions provide a mecha...
R_base_tools/strings.html7_78_0.txt
Typically, however, your strings will be one column of a data frame, and you’ll want to use filter instead: df <- tibble( word = words, i = seq_along(word) ) df %>% filter(str_detect(word, "x$")) #> # A tibble: 4 × 2 #> word i #> <chr> <int> #> 1 box ...
R_base_tools/stringr.html3_4_0.txt
str_length("abc") #> [1] 3 This is now equivalent to the base R function ` nchar() ` . Previously it was needed to work around issues with ` nchar() ` such as the fact that it returned 2 for ` nchar(NA) ` . This has been fixed as of R 3.3.0, so it is no longer so important.
R_base_tools/R_base_all_74_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # R.Version: Version Information ## Description ` R.Version() ` provides detailed informatio...
R_base_tools/stringr.html3_27_0.txt
str_detect(a1, fixed(a2)) #> [1] FALSE str_detect(a1, coll(a2)) #> [1] TRUE #### Collation search
R_base_tools/R_base_all_426_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # force: Force Evaluation of an Argument ## Description Forces the evaluation of a function ...
R_base_tools/R_base_all_428_0.txt
[ RDocumentation ](/) Moon [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R ](https://www.datacamp.com/learn/r) Search all packages and functions [ base (version 3.6.2 ) ](/packages/base/versions/3.6.2) # ns-load: Loading and Unloading Name Spaces ## Description Functions to load and unload nam...
R_base_tools/R_base_all_90_3.txt
ed by [ DataCamp ](https://www.datacamp.com/)
R_base_tools/R_base_all_360_3.txt
cepted. ` %z ` Signed offset in hours and minutes from UTC, so ` -0800 ` is 8 hours behind UTC. Values up to ` +1400 ` are accepted. (Standard only for output. For input R currently supports it on all platforms.) ` %Z ` (Output only.) Time zone abbreviation as a character string (empty if not available...
End of preview. Expand in Data Studio

BRIGHT: stackoverflow

A format conversion of the standard passage-retrieval setting of BRIGHT: A Realistic and Challenging Benchmark for Reasoning-Intensive Retrieval, by the original BRIGHT authors. Source: xlangai/BRIGHT, pinned to 3066d29c9651a576c8aba4832d249807b181ecae. This is a converted mirror, not an independently annotated dataset. The original dataset is distributed under CC BY 4.0. See SOURCE_README.md for the original dataset card and attribution.

Table Rows Columns
corpus 107,081 id, title, text
queries 117 id, text
qrels 478 query-id, corpus-id, score
exclusions (optional) 0 query-id, corpus-id

All published configs use the test split. corpus.text is exactly the original documents.content; title is empty. Query IDs, document IDs and original examples.query strings are preserved without normalization. qrels is the unique set of gold_ids pairs, with binary score 1. Duplicate labels are collapsed; no relevance judgments are added. Gold reasoning, gold answers, gold_ids_long, generated query rewrites and long_documents are not part of the converted evaluation inputs.

This subset has no real excluded documents; the optional exclusions table is omitted. The N/A exclusion sentinel is removed. Excluded IDs and positive IDs are validated against the corpus and must be disjoint for each query. Keep ignore_identical_ids=false: matching query/document ID strings alone do not imply a BRIGHT exclusion.

Evaluate each BRIGHT subset against its own complete corpus. Report nDCG@10 per subset and the unweighted mean across the 12 subsets. Record encoder context limits and truncation. The original evaluation code defines the protocol.

Converted with scripts/preprocess/dataset/convert_bright.py in the SPARSE project. conversion.json records source and output SHA-256 hashes, row counts and validation checks.

Downloads last month
44

Paper for Hyukkyu/bright-stackoverflow