id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
R_base_all/R_base_all_91_1.txt | _The New S Language_ .
Wadsworth & Brooks/Cole.
## See Also
` [ aperm ](/link/aperm?package=base&version=3.6.2) ` , ` [ matrix
](/link/matrix?package=base&version=3.6.2) ` , ` [ dim
](/link/dim?package=base&version=3.6.2) ` , ` [ dimnames
](/link/dimnames?package=base&version=3.6.2) ` .
## Examples
[ Run this co... | |
R_base_all/pandas.Series.str.split.html8_41_0.txt |
>>> s.str.split(expand=True)
0 1 2 3 4
0 this is a regular sentence
1 https://docs.python.org/3/tutorial/index.html None None None None
2 ... | |
R_base_all/1358206-date-manipulation-volume-weighted-average1_18_0.txt | * Clyde Schechter
* Join Date: Apr 2014
* Posts: 28624
* * * * | |
R_base_all/getting-started-simulating-data8_98_0.txt | # Repeatedly simulate data with replicate()
The ` replicate() ` function is a real workhorse when making repeated
simulations. It is a member of the apply family in R, and is specifically
made (per the documentation) for the repeated evaluation of an expression
(which will usually involve random number generation)... | |
R_base_all/R_base_all_127_1.txt | I'm brave") && `I'm brave` &&
identical(.Platform$OS.type, "unix") && grepl("^/tmp/", tempdir())) {
cat("Current tempdir(): ", tempdir(), "\n")
cat("Removing it :", file.remove(tempdir()),
"; dir.exists(tempdir()):", dir.exists(tempdir()), "\n")
cat("and now tempdir(check = TRUE) :",... | |
R_base_all/weighted-average-excel4_27_0.txt | ## Weighted Average in Excel – Formula Explained
Here is a video with Weighted Average formula explained. Please watch it below
to learn more. Alternatively, head to my YouTube page to see the weighted
averages in Excel video. | |
R_base_all/Simulation.html9_6_0.txt | Since the last command sampled without replacement, no number appears more
than once in the output.
LETTERS is a predefined variable in R containing a vector of all 26 letters of
the English alphabet. Take a look at it now. | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_190_0.txt | Split a data frame column based on a comma
1 | |
R_base_all/weighted-average-excel4_304_0.txt | Sorry, the correct link is - http://forum.chandoo.org/threads/weighted-
average-time-spent.18887/
Reply | |
R_base_all/R_base_all_20_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)
# list.files: List the Files in a Directory/Folder
## Description
These functions produce a ... | |
R_base_all/index.html6_33_0.txt | Below are the values that get returned.
## [1] "species_B" "species_B" "species_A" "species_A" "species_A" "species_A"
## [7] "species_A" "species_A" "species_A" "species_C" "species_A" "species_A"
## [13] "species_A" "species_C" "species_A" "species_C" "species_B" "species_A"
## [19] "spec... | |
R_base_all/pandas.Series.str.split.html8_40_0.txt |
>>> s.str.split(pat="/")
0 [this is a regular sentence]
1 [https:, , docs.python.org, 3, tutorial, index...
2 NaN
dtype: object
When using ` expand=True ` , the split elements will expand out into separate
c... | |
R_base_all/R_base_all_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
[ base (version 3.6.2 ) ](/packages/base/versions/3.6.2)
# path.expand: Expand File Paths
## Description
Expand a path name, for example by replacing... | |
R_base_all/R_base_all_170_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.single: Is an Object of Single Precision Type?
## Description
` is.single ` reports an ... | |
R_base_all/getting-started-simulating-data8_7_0.txt | # Overview
There are many reasons we might want to simulate data in R, and I find being
able to simulate data to be incredibly useful in my day-to-day work. But how
does someone get started simulating data? | |
R_base_all/R_base_all_350_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)
# difftime: Time Intervals / Differences
## Description
Time intervals creation, printing, a... | |
R_base_all/R_base_all_91_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)
# array: Multi-way Arrays
## Description
Creates or tests for arrays.
## Usage
... | |
R_base_all/R_base_all_103_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.glob: Wildcard Expansion on File Paths
## Description
Function to do wildcard expansio... | |
R_base_all/R_base_all_34_1.txt | l. = FALSE)
testit() ## no call
suppressWarnings(warning("testit"))
# }
Run the code above in your browser using [ DataCamp Workspace
](https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=packages%2Fbase%2Fversions%2F3.6.2%2Ftopics%2Fwarning&utm_source=r-docs&utm_medium=docs&utm_term=warn... | |
R_base_all/weighted-average-excel4_348_0.txt | Attach a sample file to simplify the response
Reply | |
R_base_all/getting-started-simulating-data8_10_0.txt | An easy way to generate numeric data is to pull random numbers from some
distribution. This can be done via the functions for generating random
deviates. These functions always start with ` r ` (for “random”).
The basic distributions that I use the most for generating random numbers are
the normal ( ` rnorm() ` ) and ... | |
R_base_all/R_base_all_134_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)
# taskCallbackNames: Query the Names of the Current Internal Top-Level Task
Callbacks
## Desc... | |
R_base_all/R_base_all_138_1.txt | ormat.POSIXct?package=base&version=3.6.2) ` ) and for
other classes such as ` format.octmode ` and ` format.dist ` .
` format.data.frame ` formats the data frame column by column, applying the
appropriate method of ` format ` for each column. Methods for columns are
often similar to ` as.character ` but offer more con... | |
R_base_all/R_base_all_334_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.equal: Test if Two Objects are (Nearly) Equal
## Description
` all.equal(x, y) ` is a ... | |
R_base_all/R_base_all_272_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)
# interactive: Is R Running Interactively?
## Description
Return ` TRUE ` when R is being ... | |
R_base_all/R_base_all_48_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)
# Deprecated: Marking Objects as Deprecated
## Description
When an object is about to be rem... | |
R_base_all/R_base_all_317_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)
# print: Print Values
## Description
` print ` prints its argument and returns it _invisibly... | |
R_base_all/weighted-average-excel4_121_0.txt | 25. Hui... says:
September 21, 2011 at 8:39 am | |
R_base_all/1370168_5_0.txt | 1. First all items in day 2020-01-01
2. 10 + 100 + 20 + 80 = 210
3. 10/210 = 0.048, 100/210 = 0.48, 20/210 = 0.095, 80/210 = 0.38
4. 10 * 0.048 + 100 * 0.48 + 20 * 0.095 + 80 * 0.38 = 0.48 + 48 + 1.9 + 30.4 = 80.78
5. 80.78/(0.048 + 0.48 + 0.095 + 0.38) = 80.78/1.003 = 80.54
6. And the same process for... | |
R_base_all/index.html6_1_0.txt | # Creating simulated data sets in R
#### Brad Duthie | |
R_base_all/weighted-average-excel4_200_0.txt | August 1, 2012 at 3:24 pm
@Ouz | |
R_base_all/weighted-average-excel4_246_0.txt | April 5, 2013 at 3:16 pm
Hello - I am trying to figure out how to create an average line on a graph. When I try to create it, the line always ends at the correct average but begins at zero. How do I make an automated average line that is completely vertical | ?
Thank you! | |
R_base_all/Simulation.html9_11_0.txt |
flips
## [1] 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1 1
## [36] 0 1 1 1 1 1 1 1 1 1 1 0 1 0 1 1 1 0 1 1 0 0 1 1 1 0 0 0 1 0 1 1 1 1 1
## [71] 1 1 1 0 1 1 0 0 0 1 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 0 0 1 1 1
Since we set the probability of landing heads on a... | |
R_base_all/weighted-average-excel4_140_0.txt | 32. Needing help! says:
November 10, 2011 at 6:08 pm | |
R_base_all/R_base_all_379_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)
# double: Double-Precision Vectors
## Description
Create, coerce to or test for a double-pre... | |
R_base_all/simulation.html8_0_1.txt | 8.2 Figuring Out What’s Wrong
* 18.3 Debugging Tools in R
* 18.4 Using ` traceback() `
* 18.5 Using ` debug() `
* 18.6 Using ` recover() `
* 18.7 Summary
* 19 Profiling R Code
* 19.1 Using ` system.time() `
* 19.2 Timing Longer Expressions
* 19.3 The R Profiler
* 19... | |
R_base_all/pandas.Series.str.split.html8_30_0.txt | Standard library version for split.
` str.rsplit ` | |
R_base_all/1358206-date-manipulation-volume-weighted-average1_13_0.txt | #1
## Date manipulation + volume weighted average | |
R_base_all/1370168_2_0.txt | ernijs12 May 12, 2022, 8:20pm 1
I am going to start with an example: | |
R_base_all/R_base_all_80_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.readlink: Read File Symbolic Links
## Description
Find out if a file path is a symboli... | |
R_base_all/R_base_all_307_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)
# message: Diagnostic Messages
## Description
Generate a diagnostic message from its argumen... | |
R_base_all/R_base_all_328_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)
# getDLLRegisteredRoutines: Reflectance Information for C/Fortran routines in
a DLL
## Descri... | |
R_base_all/pandas.Series.str.split.html8_35_0.txt | Use of regex =False with a pat as a compiled regex will raise an error.
Examples | |
R_base_all/weighted-average-excel4_75_0.txt | And how would you calculate the MEDIAN of a data set that is presented as
values and frequencies?
I have tried a couple of approaches, but could not come up with a solution
that was elegant and scalable to data sets with an abritrary number of rows. | |
R_base_all/R_base_all_385_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)
# Dates: Date Class
## Description
Description of the class ` "Date" ` representing calendar... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_115_0.txt | 2,755 1 1 gold badge 26 26 silver badges 40 40 bronze badges
2 | |
R_base_all/index.html6_25_0.txt | Sometimes it is useful to sample a set of values from a vector or list. The R
function ` sample ` is very flexible for sampling a subset of numbers or
elements from some structure ( ` x ` ) in R according to some set
probabilities ( ` prob ` ). Elements can be sampled from ` x ` some number of
times ( ` size ` ) with o... | |
R_base_all/R_base_all_11_1.txt | "col")
x3 <- array(x, dim = c(dim(x),3),
dimnames = c(dimnames(x), list(C = paste0("cop.",1:3))))
identical(x, apply( x, 2, identity))
identical(x3, apply(x3, 2:3, identity))
# }
# NOT RUN {
##- function with extra args:
cave <- function(x, c1, c2) c(mean(x[c1]), mean(x[c2]))
... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_97_0.txt | 31
To add to the options, you could also use my ` splitstackshape::cSplit `
function like this: | |
R_base_all/R_base_all_168_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)
# dyn.load: Foreign Function Interface
## Description
Load or unload DLLs (also known as sha... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_156_0.txt | Since this question was asked ` separate ` has been superseded by `
separate_longer_* ` and ` separate_wider_* ` functions.
The way to do it now is: | |
R_base_all/pandas.Series.str.split.html8_19_0.txt | Returns :
| |
R_base_all/R_base_all_113_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)
# Trig: Trigonometric Functions
## Description
These functions give the obvious trigonometri... | |
R_base_all/R_base_all_24_1.txt | nk/is.list?package=base&version=3.6.2) ` , etc.
## Examples
[ Run this code
](https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=packages%2Fbase%2Fversions%2F3.6.2%2Ftopics%2Fvector&utm_source=r-docs&utm_medium=docs&utm_term=vector&utm_content=run_example_in_workspace)
# NOT RUN {
df ... | |
R_base_all/getting-started-simulating-data8_55_0.txt | Letters can be pulled out via the extract brackets ( ` [ ` ). I use these
built-in constants for pure convenience when I need to make a basic
categorical vector and it doesn’t matter what form those categories take. I
find it more straightforward to type out the word and brackets than a vector
of characters (complete w... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_163_0.txt | In this case, we can also make it shorter by replacing it with default ` sep `
argument so we don't have to mention it explicitly
cbind(before[1], read.table(text = gsub('_and_', ' ', before$type),
col.names = paste0("type_", 1:2)))
| |
R_base_all/R_base_all_269_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)
# readline: Read a Line from the Terminal
## Description
` readline ` reads a line from the ... | |
R_base_all/weighted-average-excel4_219_0.txt | Refer: http://chandoo.org/forums/topic/posting-a-sample-workbook
Reply | |
R_base_all/ts_moving_averages6_18_0.txt |
# convert to data frame
elecsales.df <- data.frame(year = time(elecsales), sales = elecsales)
nrow(elecsales.df)
## [1] 20
An even-numbered moving average is unbalanced, and for our purposes, the
unbalancing will be in favor of more recent observations. For example, to
calculate a 4... | |
R_base_all/R_base_all_248_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)
# utf8Conversion: Convert Integer Vectors to or from UTF-8-encoded Character
Vectors
## Descr... | |
R_base_all/R_base_all_190_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)
# split: Divide into Groups and Reassemble
## Description
` split ` divides the data in the ... | |
R_base_all/weighted-average-excel4_288_0.txt | 62. JB says:
August 6, 2014 at 7:34 pm | |
R_base_all/Simulation.html9_5_0.txt | Now sample 10 numbers between 1 and 20, WITHOUT replacement. To sample without
replacement, simply leave off the ‘replace’ argument.
sample(1:20, 10)
## [1] 16 11 8 1 12 7 3 14 2 9 | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_4_0.txt | * Meta Stack Overflow
### your communities | |
R_base_all/weighted-average-excel4_190_0.txt | Typically you will setup a number of criteria and then rank each criteria from
say 1 to 10
Add up the criteria | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_69_0.txt | @Gecko I'm not sure what is the question. If you just use ` strsplit ` it
creates a single vector with 2 values in each slot, so ` tstrsplit `
transposes it into 2 vectors with a single value in each. ` paste0 ` is just
used in order to create the column names, it is not used on the values. On the
LHS of the equation a... | |
R_base_all/R_base_all_84_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)
# .Script: Scripting Language Interface
## Description
Internal interface to run a script th... | |
R_base_all/R_base_all_305_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.show: Display One or More Text Files
## Description
Display one or more (plain) text ... | |
R_base_all/R_base_all_72_1.txt | ther different and is reported by `
icuGetCollate("actual") ` , often ` "root" ` ). Most English locales fall back
to ` "root" ` as although e.g. ` "en_GB" ` is a valid locale (at least on some
platforms), it contains no special rules for collation. Note that ` "C" ` is
not a supported ICU locale and hence ` R_ICU_LOCA... | |
R_base_all/weighted-average-excel4_195_0.txt | 44. ouz says:
August 1, 2012 at 12:48 pm | |
R_base_all/1358206-date-manipulation-volume-weighted-average1_4_0.txt | # Announcement
Collapse | |
R_base_all/R_base_all_87_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.language: Is an Object a Language Object?
## Description
` is.language ` returns ` TRUE... | |
R_base_all/R_base_all_166_1.txt | se&version=3.6.2) ` , which
attempts to convert to a numeric matrix.
A matrix is the special case of a two-dimensional ` [ array
](/link/array?package=base&version=3.6.2) ` .
## Examples
[ Run this code
](https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=packages%2Fbase%2Fversions%2F3.6.2%2Ftopics%2Fm... | |
R_base_all/weighted-average-excel4_48_0.txt | Learn Excel
### Compound Interest Formula in Excel | |
R_base_all/weighted-average-excel4_60_0.txt | I use weighted average almost every day, when I want to compute the progress
of my projects in terms of functional coverage :
1\. I have a list of tasks during from 1 day to 20 days.
2\. It is obvious that each task must be weighted regarding its duration.
3\. My functional coverage is calculated with :
sumprodu... | |
R_base_all/getting-started-simulating-data8_77_0.txt | I often teach/blog with all the steps clearly delineated as I think it’s
easier when you are starting out, so (as always) use the method that works for
you.
data.frame(group = rep(letters[1:2], each = 3),
response = rnorm(n = 6, mean = 0, sd = 1) )
group response
1 ... | |
R_base_all/weighted-average-excel4_240_0.txt | 5
123
NY Omelette
1
OMEL
60.0%
$4.50
6
124
PA Omelette
1
OMEL
15.0%
$6.70 | |
R_base_all/getting-started-simulating-data8_49_0.txt | There is mild right-skew when we draw a histogram of the values.
hist(y) | |
R_base_all/weighted-average-excel4_227_0.txt | See this example .
Reply | |
R_base_all/simulation.html8_22_0.txt | We can also simulate from generalized linear model where the errors are no
longer from a Normal distribution but come from some other distribution. For
examples, suppose we want to simulate from a Poisson log-linear model where
\\[ Y \sim Poisson(\mu) \\] | |
R_base_all/R_base_all_185_2.txt |
not matter whether they are visible in the environment in which the generic is
defined.) As from R 3.5.0, the registration data base is searched after the
top level environment (see ` [ topenv
](/link/topenv?package=base&version=3.6.2) ` ) of the calling environment (but
before the parents of the top level environme... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_38_0.txt | Jul 28, 2015 at 6:53
* I would like to split with a pattern that has "...", when I apply that function, it returns nothing. What could be the problem. my type is something like "test...score" | |
R_base_all/Simulation.html9_7_0.txt |
LETTERS
## [1] "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q"
## [18] "R" "S" "T" "U" "V" "W" "X" "Y" "Z"
The sample() function can also be used to permute, or rearrange, the elements
of a vector. For example, try sample(LETTERS) to permute all 26 letters of the
En... | |
R_base_all/getting-started-simulating-data8_19_0.txt | Making sure someone else will be able to exactly reproduce your results when
running the same code can be desirable in teaching. It is also is useful when
making an example dataset to demonstrate a coding issue, like if you were
asking a code question on Stack Overflow.
You’ll also see me set the seed when I’m making ... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_118_0.txt | * I am glad you still find it useful @MEC. My R knowledge has abandoned me and don't know how to hint you with this part. I think Python ` pandas ` might offer something but needs some homework...
– Yannis P. | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_143_0.txt | Swifty McSwifterton Swifty McSwifterton
2,647 1 1 gold badge 31 31 silver badges 37 37 bronze badges | |
R_base_all/R_base_all_417_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)
# contributors: R Project Contributors
## Description
The R Who-is-who, describing who mad... | |
R_base_all/R_base_all_210_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)
# Foreign: Foreign Function Interface
## Description
Functions to make calls to compiled cod... | |
R_base_all/weighted-average-excel4_185_0.txt | I am wondering if I can use any function in excel to help me make a better
purchase decision.....
for example, if I am looking for a product (say, a laptop computer) and I go
on a shopping website and I find out following information.
1\. Model number
2\. number of reviews
3\. actual review rating (out of 10) | |
R_base_all/R_base_all_330_1.txt | .subset2 ` are essentially equivalent to the `
[ [ ](/link/%5B?package=base&version=3.6.2) ` and ` [ [[
](/link/%5B%5B?package=base&version=3.6.2) ` operators, except that methods
dispatch does not take place. This is to avoid expensive unclassing when
applying the default method to an object. They should not normally ... | |
R_base_all/getting-started-simulating-data8_18_0.txt | ### Setting the random seed for reproducible random numbers
Second, if we run this code again we’ll get different numbers. To get
reproducible random numbers we need to set the seed via ` set.seed() ` . | |
R_base_all/index.html6_53_1.txt | a analysis. For
example, given this covariance structure and these small differences in mass,
is a sample size of 20 really enough to even get a significant difference
among species masses using an ANOVA? What if we tried to test for differences
among masses using some sort of randomisation approach Instead? Would th... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_14_0.txt | ##### Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you
use most. | |
R_base_all/R_base_all_157_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)
# seq.POSIXt: Generate Regular Sequences of Times
## Description
The method for ` [ seq ](/l... | |
R_base_all/1188876_10_0.txt | Here's a tidyverse solution, @ysc !
library(tidyverse) # loading tidyverse
# create the sample data frame
df <- data.frame(
var1 = c("1", "2,3", "4", "5"),
var2 = c("3", "4", "5,6", "7,8"),
var3 = c("2", "5", "6", "9,10")
)
# create a new data frame with the ... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_5_0.txt | Sign up or log in to customize your list.
### more stack exchange communities | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_51_0.txt | answered Jun 11, 2014 at 16:50
hadley hadley | |
R_base_all/pandas.Series.str.split.html8_0_0.txt | Skip to main content
Back to top | |
R_base_all/R_base_all_401_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)
# l10n_info: Localization Information
## Description
Report on localization information.
##... | |
R_base_all/R_base_all_331_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)
# body: Access to and Manipulation of the Body of a Function
## Description
Get or set the b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.