id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
R_base_all/split-data-frame-string-column-into-multiple-columns0_86_0.txt
answered Dec 3, 2010 at 23:35 IRTFM IRTFM
R_base_all/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_all/weighted-average-excel4_80_0.txt
Reply 11. Ouiski7 says:
R_base_all/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_all/pandas.Series.str.split.html8_51_0.txt
© 2024, pandas via NumFOCUS, Inc. Hosted by OVHcloud . Created using Sphinx 7.2.6.
R_base_all/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_all/Simulation.html9_2_0.txt
?sample Let’s simulate rolling four six-sided dice: sample(1:6, 4, replace = TRUE).
R_base_all/split-data-frame-string-column-into-multiple-columns0_7_0.txt
1. 1. Home 2. Questions
R_base_all/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_all/split-data-frame-string-column-into-multiple-columns0_19_0.txt
Ask Question Asked 13 years, 5 months ago
R_base_all/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_all/weighted-average-excel4_113_0.txt
22. Hui... says: September 3, 2011 at 12:40 am
R_base_all/index.html6_14_0.txt
## [1] -1.62366254 0.44484705 -0.36194250 0.02640805 -0.21144759 0.85520311 ## [7] 1.52687944 1.20101330 0.12107444 -0.53072527 We can verify that a standard normal distribution is generated by plotting a histogram of a very large number of values created using ` rnorm ` .
R_base_all/split-data-frame-string-column-into-multiple-columns0_112_0.txt
And then we can use ` gather ` to tidy up... after %>% gather(key, val, -attr, na.rm = T) attr key val 1 1 type_1 foo 2 30 type_1 foo 3 4 type_1 foo 4 6 type_1 foo 5 1 type_2 bar 6 30 type_2 bar_2 7 4 type_2 bar_2 ...
R_base_all/getting-started-simulating-data8_64_0.txt
Here we’ll make a two-group variable of length 5. This means the second group will have one less value than the first. rep(letters[1:2], length.out = 5) [1] "a" "b" "a" "b" "a"
R_base_all/1358206-date-manipulation-volume-weighted-average1_19_0.txt
#2 27 Sep 2016, 09:07
R_base_all/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_all/split-data-frame-string-column-into-multiple-columns0_37_0.txt
this worked pretty fine for my problem today as well.. but it was adding a 'c' at the beginning of each row. Any idea why is that??? ` left_right <- str_split_fixed(as.character(split_df),'\">',2) ` – LearneR
R_base_all/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_all/getting-started-simulating-data8_32_0.txt
This particular example doesn’t show much of a pattern, but if you take this code and run it may times you’ll see some pretty surprising relationships. x = rnorm(n = 10, mean = 0, sd = 1) y = rnorm(n = 10, mean = 0, sd = 1) plot(y ~ x)
R_base_all/weighted-average-excel4_13_0.txt
## How to Calculate Weighted Average in Excel with Percentages There is no built-in formula in Excel to calculate weighted averages. However, there is an easy fix to that. You can use SUMPRODUCT formula . By definition, SUMPRODUCT formula takes 2 or more lists of numbers and returns the sum of product of correspond...
R_base_all/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_all/weighted-average-excel4_160_0.txt
Transaction Type AHT Per Day Tran 120 Sec Trans 120 3 180 Sec Trans 180 87 208 Sec Trans 208 2954 240 Sec Trans 240 354 293 Sec Trans 293 4 300 Sec Trans 300 79 120 Sec Trans 322 2464 380 Sec Trans 380 19 381 Sec Trans 381 229 120 Sec Trans 396 182 401 Sec Trans 401 655 480 Sec Trans 480 49 54...
R_base_all/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_all/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_all/weighted-average-excel4_344_0.txt
February 20, 2017 at 12:21 am I am trying to calculate the variance between budget to actual for various departments so I can get a per unit. I was trying to use weighted average. At the end, I need to end up with a variance per unit$. How do I do it? here's the sample data: Division Actual $ Actual Units Budget $ B...
R_base_all/weighted-average-excel4_51_0.txt
Financial Modeling ### Loan Amortization Schedule in Excel – FREE Template
R_base_all/weighted-average-excel4_358_0.txt
#### Get Started * Excel Basics * Advanced Excel * 100+ Formulas * Free Crash Course * Pivot Tables * Power BI
R_base_all/index.html6_53_0.txt
species | Length | Width | Mass | offspring ---|---|---|---|--- species_1 | 160.0961 | 249.7890 | 25.93705 | 3 species_1 | 160.5342 | 247.5876 | 26.06193 | 3 species_1 | 159.9338 | 244.3800 | 26.44370 | 2 species_1 | 155.9637 | 246.8168 | 27.22432 | 4 species_1 ...
R_base_all/weighted-average-excel4_44_0.txt
Hey there, I have a SUPER exciting announcement! April is about to get a whole lot sweeter with our Power BI Dashboard Contest! Your mission, should you choose to accept it: Craft the most EPIC dashboard for the Awesome Chocolates CEO with sales & financial insights! Winners stand a chance to score up to $500 in Amazon...
R_base_all/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_all/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_all/getting-started-simulating-data8_68_0.txt
As your simulation situation get more complicated, like if you are simulating data from a blocked design or with multiple sizes of experimental units, you may need more complicated patterns for your categorical variable. The ` each ` argument can be combined with ` times ` to first repeat each value elementwise (via ` ...
R_base_all/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_all/split-data-frame-string-column-into-multiple-columns0_207_0.txt
* What happens to the waste products from Crude Oil Refining? * Where does length contraction occur towards? * What does the block time represent? * Wind needed to deflect a bullet * Why does Ripley buy six train tickets? * What is the source of this cheesy quote? * Does the destination plant in Tra...
R_base_all/weighted-average-excel4_73_0.txt
Daniel Ferry excelhero.com Reply
R_base_all/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_all/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_all/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_all/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_all/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_all/weighted-average-excel4_35_0.txt
Next How to calculate the Gender Pay Gap using Excel Formulas? (Free Calculator Template) Next ### Welcome to Chandoo.org
R_base_all/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_all/weighted-average-excel4_53_0.txt
Featured ### VLOOKUP(), MATCH() and INDEX() – explained in plain English
R_base_all/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_all/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_all/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_all/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_all/pandas.Series.str.split.html8_13_0.txt
Expand the split strings into separate columns. * If ` True ` , return DataFrame/MultiIndex expanding dimensionality.
R_base_all/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_all/weighted-average-excel4_108_0.txt
21. RAJU says: September 2, 2011 at 3:37 pm
R_base_all/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_all/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_all/split-data-frame-string-column-into-multiple-columns0_161_0.txt
Add a comment | 1
R_base_all/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_all/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_all/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_all/split-data-frame-string-column-into-multiple-columns0_187_0.txt
How to split column into two in R using separate 7
R_base_all/getting-started-simulating-data8_14_0.txt
The ` n ` argument is the number of observations we want to generate. The ` mean ` and ` sd ` arguments show what the default values of the parameters are (note that ` sd ` is the standard deviation , not the variance). Not all ` r ` functions have defaults to the parameter arguments like this. To get 5 random numbe...
R_base_all/weighted-average-excel4_276_0.txt
* Hui... says: October 24, 2013 at 11:47 pm
R_base_all/weighted-average-excel4_209_0.txt
* Hui says: September 6, 2012 at 2:44 am
R_base_all/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_all/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_all/split-data-frame-string-column-into-multiple-columns0_208_0.txt
Question feed # Subscribe to RSS
R_base_all/split-data-frame-string-column-into-multiple-columns0_151_0.txt
4 Another approach if you want to stick with ` strsplit() ` is to use the ` unlist() ` command. Here's a solution along those lines.
R_base_all/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_all/split-data-frame-string-column-into-multiple-columns0_95_0.txt
* did this function get renamed to ` strsplit() ` ? – user5359531
R_base_all/weighted-average-excel4_52_0.txt
Excel Howtos ### How-to create Dependent Drop Downs in Excel [Dynamic & Multiple]
R_base_all/getting-started-simulating-data8_65_0.txt
## Repeat each element a different number of times Unlike ` each ` and ` length.out ` , we can use ` times ` with a vector of values. This allows us to repeat each element of the character vector a different number of times. This is one way to simulate unbalanced groups.
R_base_all/ts_moving_averages6_17_0.txt
## Moving Averages of Moving Averages The concept of simple moving averages can be extended to taking moving averages of moving averages. This technique is often employed with an even number of data points so that the final product is symmetric around each point. For example, let’s look at the built-in data set ` ele...
R_base_all/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_all/split-data-frame-string-column-into-multiple-columns0_148_0.txt
Share Follow
R_base_all/weighted-average-excel4_79_0.txt
June 16, 2010 at 1:30 am @Gregor Have a look at http://www.tech- archive.net/Archive/Excel/microsoft.public.excel.worksheet.functions/2008-06/msg02179.html
R_base_all/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_all/weighted-average-excel4_192_0.txt
You need to be careful about weighting scores on the number of responses Reply
R_base_all/getting-started-simulating-data8_67_0.txt
rep(letters[1:2], times = c(2, 4) ) [1] "a" "a" "b" "b" "b" "b" ## Combining each with times
R_base_all/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_all/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_all/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_all/getting-started-simulating-data8_80_0.txt
We need to repeat the values in a way that every combination of ` group ` and ` factor ` is present in the dataset exactly one time. Remember the ` group ` factor is repeated elementwise.
R_base_all/weighted-average-excel4_95_0.txt
Data: Date Amount 01-Jan-11 1200 08-Mar-11 1000 05-Jun-11 1200 17-Mar-11 1500 30-Jun-11 1600
R_base_all/weighted-average-excel4_207_0.txt
I am trying to create a weighted average for a series of tests with some testing readministered on a second date. Not all tests are administered on each testing. The workaround I have been using is to use a second matrix with an if function, but I am curious if there is a more elegant solution. Sample data is below: W...
R_base_all/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_all/split-data-frame-string-column-into-multiple-columns0_114_0.txt
answered Nov 1, 2017 at 17:26 Yannis P. Yannis P.
R_base_all/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_all/Simulation.html9_14_0.txt
A binomial random variable represents the number of ‘successes’ (heads) in a given number of independent ‘trials’ (coin flips). Therefore, we can generate a single random variable that represents the number of heads in 100 flips of our unfair coin using rbinom(1, size = 100, prob = 0.7). Note that you only specify the ...
R_base_all/split-data-frame-string-column-into-multiple-columns0_102_0.txt
192k 30 30 gold badges 410 410 silver badges 490 490 bronze badges 3
R_base_all/pandas.Series.str.split.html8_2_0.txt
* Getting started * User Guide * API reference * Development * Release notes * GitHub * Twitter * Mastodon
R_base_all/split-data-frame-string-column-into-multiple-columns0_22_0.txt
I'd like to take data of the form before = data.frame(attr = c(1,30,4,6), type=c('foo_and_bar','foo_and_bar_2')) attr type 1 1 foo_and_bar 2 30 foo_and_bar_2 3 4 foo_and_bar 4 6 foo_and_bar_2
R_base_all/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_all/split-data-frame-string-column-into-multiple-columns0_174_0.txt
Procedure attach(before) before$type2 <- gsub("(\\w*)_and_(\\w*)", "c('\\1', '\\2')", type) #this recode the column type to c("blah", "blah") form cbind(before,t(sapply(1:nrow(before), function(x) eval(parse(text=before$type2[x]))))) #this split the desired column into several ones n...
R_base_all/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_all/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_all/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_all/weighted-average-excel4_188_0.txt
Reply * Hui... says:
R_base_all/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_all/weighted-average-excel4_322_0.txt
[…] Weighted Average in Excel – Formulas to Calculate Weighted … – Learn how to calculate weighted averages in excel using formulas. In this article we will learn what a weighted average is and how to Excel’s SUMPRODUCT formula […] Reply
R_base_all/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_all/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_all/split-data-frame-string-column-into-multiple-columns0_157_0.txt
library(tidyr) separate_wider_delim(before, type, delim = "_and_", names_sep = "_") You could also use ` separate_wider_regex ` , but I'll leave that as an exercise to the reader :-)