id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
R_base_all/R_base_all_412_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.function: Is an Object of Type (Primitive) Function?
## Description
Checks whether its ... | |
R_base_all/R_base_all_111_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)
# unique: Extract Unique Elements
## Description
` unique ` returns a vector, data frame or ... | |
R_base_all/getting-started-simulating-data8_85_0.txt |
data.frame(group = rep(letters[1:2], each = 3),
factor = rep(LETTERS[3:5], times = 2),
response = rnorm(n = 6, mean = 0, sd = 1) )
group factor response
1 a C 0.4255576
2 a D 0.2903586
3 a E -0.3638877
4 b ... | |
R_base_all/R_base_all_231_1.txt | rators can be used for
replacement.
` [[ ` can be applied recursively to lists, so that if the single index ` i `
is a vector of length ` p ` , ` alist[[i]] ` is equivalent to `
alist[[i1]]…[[ip]] ` providing all but the final indexing results in a list.
Note that in all three kinds of replacement, a value of ` NULL ... | |
R_base_all/weighted-average-excel4_267_0.txt | October 23, 2013 at 6:31 pm
SEPT '12 SEPT '13
A 102 85
B 970 1,004
C 380 307
D 33 27
Grand Total 1,452 1,396 | |
R_base_all/weighted-average-excel4_171_0.txt | Reply
41. Himanshu says: | |
R_base_all/getting-started-simulating-data8_27_0.txt |
rnorm(n = 10, mean = c(0, 5, 20), sd = 1)
[1] -1.6630805 5.5759095 20.4727601 -0.5427317 6.1276871 18.3522024
[7] -0.3141739 4.8173184 21.4704785 -0.8658988
A vector can also be passed to ` sd ` . Here both the means and standard
deviations vary among the three distributions used t... | |
R_base_all/weighted-average-excel4_23_0.txt | ## Weighted Average with Extra Conditions
Let’s say you have city wise observations and weights. And you want to
calculate the weighted average, only for Boston values. In this case, you
can use a variation of the formula like below: | |
R_base_all/weighted-average-excel4_133_0.txt | 29. Hui... says:
October 28, 2011 at 3:00 am | |
R_base_all/R_base_all_284_2.txt | e C Programming Language._
Second edition, Prentice Hall. Describes the format options in table B-1 in
the Appendix.
The C Standards, especially ISO/IEC 9899:1999 for ‘C99’. Links can be found at
[ https://developer.r-project.org/Portability.html
](https://developer.r-project.org/Portability.html) .
` man sprintf ` o... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_21_0.txt | Part of R Language Collective
338 | |
R_base_all/ts_moving_averages6_30_0.txt | You can see we’ve smoothed out the seasonality but have captured the overall
trend.
## Exercises | |
R_base_all/R_base_all_1_3.txt | nif(1); .Random.seed[1:6]
## If there is no seed, a "random" new one is created:
rm(.Random.seed); runif(1); .Random.seed[1:6]
# }
# NOT RUN {
ok <- RNGkind()
RNGkind("Wich") # (partial string matching on 'kind')
## This shows how 'runif(.)' works for Wichmann-Hill,
## using only... | |
R_base_all/R_base_all_386_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)
# pushBack: Push Text Back on to a Connection
## Description
Functions to push back text lin... | |
R_base_all/R_base_all_274_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)
# matmult: Matrix Multiplication
## Description
Multiplies two matrices, if they are conform... | |
R_base_all/R_base_all_302_1.txt | alue to be specified
## -- it is always NULL
for(i in c(-1:3, 9)) print(switch(i, 1, 2 , 3, 4))
## visibility
switch(1, invisible(pi), pi)
switch(2, invisible(pi), pi)
# }
Run the code above in your browser using [ DataCamp Workspace
](https://app.datacamp.com/workspace/preview?_tag... | |
R_base_all/weighted-average-excel4_67_0.txt | If I was the CEO of ACME.... Coyote would be armored like Iron Man !!!
Reply | |
R_base_all/R_base_all_135_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)
# identity: Identity Function
## Description
A trivial identity function returning its argum... | |
R_base_all/R_base_all_173_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)
# noquote: Class for ‘no quote’ Printing of Character Strings
## Description
Print character... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_27_0.txt | edited Jun 3, 2018 at 7:37
David Arenburg | |
R_base_all/getting-started-simulating-data8_4_0.txt | I’ve been trying to participate a little more in the R community outside of my
narrow professional world, so when the co-organizer of the Eugene R Users
Group invited me to come talk at one of their meet-ups I agreed (even though
it involved public speaking! 😱).
I started out thinking I’d talk about doing simulatio... | |
R_base_all/index.html6_32_0.txt | This gives three possible categories, which I can now use ` sample ` to draw
from. Assume that I want to simulate the sampling of these three species,
perhaps with ` species_A ` being twice as common as ` species_B ` and `
species_C ` . I might use the following code to sample 24 times.
sp_sample <- samp... | |
R_base_all/1358206-date-manipulation-volume-weighted-average1_5_0.txt | No announcement yet.
X | |
R_base_all/R_base_all_228_1.txt | , "a" < "b")
## More convenient for interactive "line by line" evaluation:
stopifnot(exprs = {
all.equal(pi, 3.1415927)
2 < 2
all(1:10 < 12)
"a" < "b"
})
# long all.equal() error messages are abbreviated:
stopifnot(all.equal(rep(list(pi),4), list(3.1, 3.14, 3.141, 3.1415... | |
R_base_all/R_base_all_395_1.txt | rwise usually ` 8 ` .
sizeof.longdouble
the number of bytes in a C ` long double ` type. Will be zero if there is no
such type (or its use was disabled when R was built), otherwise possibly `
12 ` (most 32-bit builds) or ` 16 ` (most 64-bit builds).
sizeof.pointer
the number of bytes in a C ` SEXP ` t... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_81_0.txt | 46
Notice that sapply with "[" can be used to extract either the first or second
items in those lists so: | |
R_base_all/ts_moving_averages6_9_0.txt |
savings %>%
gather(metric, value, srate:srate_ma10) %>%
ggplot(aes(date, value, color = metric)) +
geom_line()
You may notice that as the number of points used for the average increases,
the curve becomes smoother and smoother. Choosing a value for k is a balance
between eliminat... | |
R_base_all/R_base_all_391_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)
# trimws: Remove Leading/Trailing Whitespace
## Description
Remove leading and/or trailing w... | |
R_base_all/R_base_all_238_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)
# reg.finalizer: Finalization of Objects
## Description
Registers an R function to be call... | |
R_base_all/R_base_all_348_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)
# srcfile: References to Source Files and Code
## Description
These functions are for workin... | |
R_base_all/R_base_all_122_1.txt | ): it is only portable to use
` file.rename ` to change file name(s) within a single directory.
## Details
The ` … ` arguments are concatenated to form one character string: you can
specify the files separately or as one vector. All of these functions expand
path names: see ` [ path.expand
](/link/path.expand?packag... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_99_0.txt | Follow
edited Jul 12, 2017 at 12:34 | |
R_base_all/R_base_all_26_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)
# colSums: Form Row and Column Sums and Means
## Description
Form row and column sums and me... | |
R_base_all/Simulation.html9_24_0.txt |
my_pois
## [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13]
## [1,] 10 10 10 8 11 6 10 8 9 4 10 13 9
## [2,] 3 12 10 9 7 13 9 7 12 13 10 9 11
## [3,] 12 8 11 6 5 15 1... | |
R_base_all/index.html6_18_0.txt |
rand_poissons_10000 <- rpois(n = 10000, lambda = 4.5);
hist(rand_poissons_10000, xlab = "Random value (X)", col = "grey",
main = "", cex.lab = 1.5, cex.axis = 1.5);
Sampling from a binomial distribution | |
R_base_all/simulation.html8_8_0.txt |
> x <- rnorm(10, 20, 2)
> x
[1] 22.20356 21.51156 19.52353 21.97489 21.48278 20.17869 18.09011 19.60970
[9] 21.85104 20.96596
> summary(x)
Min. 1st Qu. Median Mean 3rd Qu. Max.
18.09 19.75 21.22 20.74 21.77 22.20
If you wanted to know what was the probab... | |
R_base_all/R_base_all_39_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)
# findInterval: Find Interval Numbers or Indices
## Description
Given a vector of non-decrea... | |
R_base_all/R_base_all_124_1.txt | ll return ` from ` .
For ` seq ` (only), up to two of ` from ` , ` to ` and ` by ` can be supplied
as complex values provided ` length.out ` or ` along.with ` is specified. More
generally, the default method of ` seq ` will handle classed objects with
methods for the ` Math ` , ` Ops ` and ` Summary ` group generics.
... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_24_0.txt | I came up with something unbelievably complex involving some form of ` apply `
that worked, but I've since misplaced that. It seemed far too complicated to
be the best way. I can use ` strsplit ` as below, but then unclear how to get
that back into 2 columns in the data frame.
> strsplit(as.character(bef... | |
R_base_all/weighted-average-excel4_96_0.txt | Kind Regards,
Krunal Patel
Reply | |
R_base_all/R_base_all_243_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.setFileTime: Set File Time
## Description
Uses system calls to set the times on a file... | |
R_base_all/R_base_all_220_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)
# call: Function Calls
## Description
Create or test for objects of ` [ mode
](/link/mode?pa... | |
R_base_all/Simulation.html9_20_0.txt | Now do the same, except with a mean of 100 and a standard deviation of 25.
rnorm(10, 100, 25)
## [1] 99.96306 97.58117 105.05747 72.06460 108.29377 95.72120 61.67664
## [8] 108.57520 94.74809 93.84602 | |
R_base_all/R_base_all_388_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.getpid: Get the Process ID of the R Session
## Description
Get the process ID of the ... | |
R_base_all/R_base_all_318_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)
# gl: Generate Factor Levels
## Description
Generate factors by specifying the pattern of th... | |
R_base_all/simulation.html8_0_0.txt | * R Programming for Data Science
* * Welcome
* Stay in Touch!
* 1 Preface
* 2 History and Overview of R
* 2.1 What is R?
* 2.2 What is S?
* 2.3 The S Philosophy
* 2.4 Back to R
* 2.5 Basic Features of R
* 2.6 Free Software
* 2.7 Design of the R System
*... | |
R_base_all/R_base_all_372_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)
# as.Date: Date Conversion Functions to and from Character
## Description
Functions to conve... | |
R_base_all/R_base_all_235_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)
# duplicated: Determine Duplicate Elements
## Description
` duplicated() ` determines which ... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_40_0.txt | * 6
@user3841581 - old query of yours I know, but this is covered in the
documentation - ` str_split_fixed("aaa...bbb", fixed("..."), 2) ` works fine
with ` fixed() ` to "Match a fixed string" in the ` pattern= ` argument. ` . `
means 'any character' in regex. | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_0_0.txt | Skip to main content
Stack Overflow | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_188_0.txt | Splitting rows with uneven string length into columns in R using tidyr
3 | |
R_base_all/R_base_all_332_1.txt | ss several vectors to paste0, they are concatenated in a
## vectorized way.
(nth <- paste0(1:12, c("st", "nd", "rd", rep("th", 9))))
## paste works the same, but separates each input with a space.
## Notice that the recycling rules make every input as long as the longest input.
paste(month.abb,... | |
R_base_all/weighted-average-excel4_147_0.txt | 35. R.Williams says:
December 30, 2011 at 6:41 pm | |
R_base_all/R_base_all_235_1.txt | base&version=3.6.2) ` ) which use the same concept.
Values in ` incomparables ` will never be marked as duplicated. This is
intended to be used for a fairly small set of values and will not be efficient
for a very large set.
Except for factors, logical and raw vectors the default ` nmax = NA ` is
equivalent to ` nmax... | |
R_base_all/simulation.html8_9_0.txt |
> pnorm(2)
[1] 0.9772499
You never know when that calculation will come in handy. | |
R_base_all/weighted-average-excel4_204_0.txt | 45. Victoria says:
August 7, 2012 at 9:14 pm | |
R_base_all/R_base_all_165_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.path: Construct Path to File
## Description
Construct the path to a file from compone... | |
R_base_all/weighted-average-excel4_163_0.txt | Weighted Ave. AHT per Day
=SUMPRODUCT(A2:A16,C2:C16)/SUM(A2:A16)
Weighted Ave. Tran
=SUMPRODUCT(A2:A16,D2:D16)/SUM(A2:A16) | |
R_base_all/R_base_all_20_1.txt | ns%2F3.6.2%2Ftopics%2Flist.files&utm_source=r-docs&utm_medium=docs&utm_term=list.files&utm_content=run_example_in_workspace)
Powered by [ DataCamp ](https://www.datacamp.com/)
| |
R_base_all/weighted-average-excel4_303_0.txt | * Claudia says:
September 9, 2014 at 9:06 am | |
R_base_all/weighted-average-excel4_319_0.txt | =SUMPRODUCT(AC4:AO4, AC2:AO2)/SUM(AC2:AO2)
Is there a way to keep the AC1:AO1 part of the formula the same. | |
R_base_all/1358206-date-manipulation-volume-weighted-average1_11_0.txt | Clear All
new posts | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_204_0.txt | Splitting a dataframe string column into multiple columns without a pattern
2 | |
R_base_all/R_base_all_124_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: Sequence Generation
## Description
Generate regular sequences. ` seq ` is a standard ... | |
R_base_all/R_base_all_143_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)
# get: Return the Value of a Named Object
## Description
Search by name for an object ( ` ge... | |
R_base_all/R_base_all_105_1.txt | browser using [ DataCamp Workspace
](https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=packages%2Fbase%2Fversions%2F3.6.2%2Ftopics%2FmemCompress&utm_source=r-docs&utm_medium=docs&utm_term=memCompress&utm_content=run_example_in_workspace)
Powered by [ DataCamp ](https://www.datacamp.com/)
| |
R_base_all/weighted-average-excel4_87_0.txt | Do I need to create a separate column with the numbers 10,9,8,7,6 etc?
Thanks! | |
R_base_all/weighted-average-excel4_156_0.txt | Reply
39. Nick - Excel Help says: | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_213_0.txt | * About
* Press
* Work Here
* Legal
* Privacy Policy
* Terms of Service
* Contact Us
* Cookie Settings
* Cookie Policy
##### Stack Exchange Network | |
R_base_all/weighted-average-excel4_82_0.txt | Small typo: both instances of $330,000 should be $303,000. You got it right in
the image with the red circle around it, but the text is wrong.
"Now, the average salary seems to be $ 330,000 [total all of all salaries by
5, (55000+65000+75000+120000+1200000)/5 ].
You are a happy boss to find that your employees are m... | |
R_base_all/R_base_all_323_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)
# Reserved: Reserved Words in R
## Description
The reserved words in R 's parser are
` [ ... | |
R_base_all/R_base_all_408_2.txt | sion=3.6.2) ` .
For other interfaces to the underlying serialization format, see ` [ serialize
](/link/serialize?package=base&version=3.6.2) ` and ` [ saveRDS
](/link/saveRDS?package=base&version=3.6.2) ` .
## Examples
[ Run this code
](https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=packages%2Fbase... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_20_0.txt | Modified 7 months ago
Viewed 604k times | |
R_base_all/weighted-average-excel4_229_0.txt | OK, so I have to come up with an average. I have 35 surveys with a 92%
satisfaction and 9 with a 100% satisfaction. How do I write a formula to show
me the average of all 44 surveys?
Reply | |
R_base_all/Simulation.html9_4_0.txt |
sample(1:6, 4, replace = TRUE)
## [1] 5 4 6 4
sample(1:6, 4, replace = TRUE) instructs R to randomly select four numbers
between 1 and 6, WITH replacement. Sampling with replacement simply means that
each number is “replaced” after it is selected, so that the same number can
show up more th... | |
R_base_all/weighted-average-excel4_167_0.txt | April 28, 2012 at 10:15 am
Manu | |
R_base_all/simulation.html8_20_0.txt | What if we wanted to simulate a predictor variable ` x ` that is binary
instead of having a Normal distribution. We can use the ` rbinom() ` function
to simulate binary random variables.
> set.seed(10)
> x <- rbinom(100, 1, 0.5)
> str(x) ## 'x' is now 0s and 1s
int [1:100] 1 0 0 1 0 0 0 0... | |
R_base_all/R_base_all_221_1.txt | ver). Future versions may allow some control of the result type.
` Negate ` corresponds to Common Lisp's ` complement ` . Given a (predicate)
function ` f ` , it creates a function which returns the logical negation of
what ` f ` returns.
## See Also
Function ` [ clusterMap ](/link/clusterMap?package=base&version=3... | |
R_base_all/weighted-average-excel4_281_0.txt | Reply
59. Sameerah Drinkard says: | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_164_0.txt | Share
Follow | |
R_base_all/R_base_all_182_1.txt | //www.datacamp.com/)
| |
R_base_all/split-data-frame-string-column-into-multiple-columns0_62_0.txt | Follow
edited Aug 22, 2016 at 7:47 | |
R_base_all/getting-started-simulating-data8_11_0.txt | There are many other distributions available as part of the stats package
(e.g., binomial, F, log normal, beta, exponential, Gamma) and, as you can
imagine, even more available in add-on packages. I recently needed to generate
data from the Tweedie distribution to test a modeling tool, which I could do
via package t... | |
R_base_all/ts_moving_averages6_28_0.txt | We can produce this weighted moving average using the ` ma ` function as we
did in the last section
ma(AirPassengers, order = 12, centre = TRUE)
## Jan Feb Mar Apr May Jun Jul
## 1949 NA NA NA NA NA NA 126.7917
## 195... | |
R_base_all/ts_moving_averages6_10_0.txt |
savings %>%
gather(metric, value, srate:srate_ma10) %>%
ggplot(aes(date, value, color = metric)) +
geom_line() +
coord_cartesian(xlim = c(date("2000-01-01"), date("2015-04-01")), ylim = c(0, 11))
To understand how these different moving averages compare we can compute the
MSE... | |
R_base_all/R_base_all_382_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)
# structure: Attribute Specification
## Description
` structure ` returns the given object w... | |
R_base_all/R_base_all_65_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-defunct: Defunct Functions in Package base
## Description
The functions or variables... | |
R_base_all/R_base_all_293_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)
# readRDS: Serialization Interface for Single Objects
## Description
Functions to write a si... | |
R_base_all/R_base_all_131_1.txt | modify each argument
using ` [ factor ](/link/factor?package=base&version=3.6.2) ` or ` [ addNA
](/link/addNA?package=base&version=3.6.2) ` .
Non-factor arguments ` a ` are coerced via ` factor(a, exclude=exclude) ` .
Since R 3.4.0, care is taken _not_ to count the excluded values (where they
were included in the ` ... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_105_0.txt | * @Nicki, Have you tried providing a vector of the column names or the column positions? That should do it....
– A5C1D2H2I1M1N2O1R2T1 | |
R_base_all/1358206-date-manipulation-volume-weighted-average1_35_0.txt | Yes No
OK | |
R_base_all/weighted-average-excel4_313_0.txt | Reply
66. Charmaine says: | |
R_base_all/getting-started-simulating-data8_29_0.txt | Here’s an example. Since the vector for ` n ` is length 3, we only get 3
values. This has caught me before, as I would expect this code to give me
different numbers per group instead of ignoring the information in the vector.
rnorm(n = c(2, 10, 10), mean = c(0, 5, 20), sd = c(1, 5, 20) )
[1... | |
R_base_all/R_base_all_322_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)
# format.info: format(.) Information
## Description
Information is returned on how ` [ forma... | |
R_base_all/1188876_13_0.txt | The ` mutate(across(everything())) ` syntax is also a little confusing. `
across() ` is a relatively new function in ` dplyr ` , and it can be hard to
get used to. But basically this code is just saying "For each column, apply
this function" and then you define the function, which in our case is the `
str_remove ` se... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_94_0.txt | – Melka
Mar 30, 2016 at 11:34 | |
R_base_all/R_base_all_199_4.txt | d warning and error messages show a summary of the call stack?
By default error calls are shown in non-interactive sessions.
` showNCalls ` :
integer. Controls how long the sequence of calls must be (in bytes) before
ellipses are used. Defaults to 40 and should be at least 30 and no more than
500.
` show.error... | |
R_base_all/Simulation.html9_16_0.txt | View the contents of flips2.
flips2
## [1] 1 0 1 0 0 1 1 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 0 1 1 0 1 1
## [36] 1 1 1 0 1 0 1 1 0 1 0 0 1 0 1 1 1 1 1 1 1 1 0 1 1 0 1 1 0 1 0 1 1 1 0
## [71] 0 1 1 0 1 0 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 1 0 1 | |
R_base_all/R_base_all_104_1.txt | # close devices before printing
cat("Now sending PDF graphics to the printer:\n")
system("lpr Rplots.pdf")
cat("bye bye...\n")
}
quit("yes")
# }
Run the code above in your browser using [ DataCamp Workspace
](https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=packages%... | |
R_base_all/weighted-average-excel4_141_0.txt | Hi. I'm having trouble finding the weighted average for the % of influence
(which is related to the rated level). I need to find out what the weighted
average % inluence is (the % column) and then to use that % to calculate the $
of the influenced spend overall. HELP
Spend A Level % Spend B Level % Total$(M)
$99,660... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.