id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
R_base_all/Simulation.html9_23_0.txt |
my_pois <- replicate(100, rpois(5, 10))
Take a look at the contents of my_pois. | |
R_base_all/weighted-average-excel4_25_0.txt | 1. SUMPRODUCT calculates the total value for BOSTON by summing up C5:C16 (value column) where B5:B16 is Boston (highlighted portion of the formula) and multiplies that with the counts.
2. So in the above example, this will just give us the total of Boston – ie 218,600
3. We then divide this with the total count... | |
R_base_all/Simulation.html9_28_0.txt | Please submit the log of this lesson to Google Forms so that Simon may
evaluate your progress.
1. Gee, whizz
2. that’d be great! | |
R_base_all/weighted-average-excel4_217_0.txt | It will work equally as well in all Excel versions
My file using your data is here: | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_82_0.txt |
before$type_1 <- sapply(strsplit(as.character(before$type),'_and_'), "[", 1)
before$type_2 <- sapply(strsplit(as.character(before$type),'_and_'), "[", 2)
before$type <- NULL
And here's a gsub method: | |
R_base_all/1358206-date-manipulation-volume-weighted-average1_36_0.txt | OK Cancel
X | |
R_base_all/simulation.html8_5_0.txt | If you’re only interested in simulating random numbers, then you will likely
only need the “r” functions and not the others. However, if you intend to
simulate from arbitrary probability distributions using something like
rejection sampling, then you will need the other functions too.
Probably the most common probabil... | |
R_base_all/weighted-average-excel4_257_0.txt | Thanks,
SF | |
R_base_all/weighted-average-excel4_293_0.txt | August 7, 2014 at 12:30 am
@JB
I'd suggest using a Sumproduct based formula | |
R_base_all/R_base_all_141_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)
# droplevels: Drop Unused Levels from Factors
## Description
The function ` droplevels ` is ... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_199_0.txt | Splitting strings within a dataframe in R
0 | |
R_base_all/R_base_all_212_1.txt | ial issue is signed zeroes: on IEC 60559 platforms there are two
zeroes with internal representations differing by sign. Where possible R
treats them as the same, but for example direct output from C code often does
not do so and may output -0.0 (and on Windows whether it does so or not
depends on the version of Win... | |
R_base_all/getting-started-simulating-data8_107_0.txt | In my example I’ll save the output of each iteration of the loop into a list
called ` list1 ` . I initialize this as an empty list prior to starting the
loop. To match what I did with ` replicate() ` I do three iterations of the
loop ( ` i in 1:3 ` ), drawing 5 values via ` rnorm() ` each time.
The result is identical... | |
R_base_all/ts_moving_averages6_16_0.txt | We can visualize how the 12-month trailing moving average predicts future
savings rates with the following plot. It’s easy to see that trailing moving
averages have a delayed reaction to changes in patterns and trends.
savings_tma %>%
gather(metric, value, -date) %>%
ggplot(aes(date, value, c... | |
R_base_all/R_base_all_280_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)
# strtoi: Convert Strings to Integers
## Description
Convert strings to integers according t... | |
R_base_all/R_base_all_315_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)
# replace: Replace Values in a Vector
## Description
` replace ` replaces the values in ` x ... | |
R_base_all/weighted-average-excel4_352_0.txt | I use sumproduct to analyze training evaluations. Participants submit their
evaluation of training content, process, and trainer(s) via Qualtrics. The
downloaded CSV file needs a lot of manipulation to get question averages,
overall average for the training, and overall average for the trainer.
Sumproducts makes the ca... | |
R_base_all/ts_moving_averages6_23_0.txt |
class(elecsales)
## [1] "ts"
We can compute the 2x4 moving average directly: | |
R_base_all/R_base_all_297_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)
# rle: Run Length Encoding
## Description
Compute the lengths and values of runs of equal va... | |
R_base_all/index.html6_30_0.txt | Note that ` rand_num_bias ` above contains more numbers from 6-10 than from
1-5.
Sampling random characters from a list | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_30_0.txt | Add a comment |
## 18 Answers 18 | |
R_base_all/getting-started-simulating-data8_79_0.txt | The second factor, which we’ll call ` factor ` , will take on the values “C”,
“D”, and “E”.
LETTERS[3:5]
[1] "C" "D" "E" | |
R_base_all/R_base_all_37_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)
# dataframeHelpers: Data Frame Auxiliary Functions
## Description
Internal auxiliary functio... | |
R_base_all/pandas.Series.str.split.html8_24_0.txt | See also
` Series.str.split ` | |
R_base_all/R_base_all_92_1.txt | ic
](/link/is.numeric?package=base&version=3.6.2) (x) ` is true).
Complex values are sorted first by the real part, then the imaginary part.
The ` "auto" ` method selects ` "radix" ` for short (less than \\(2^{31}\\)
elements) numeric vectors, integer vectors, logical vectors and factors;
otherwise, ` "shell" ` .
Ex... | |
R_base_all/weighted-average-excel4_89_0.txt | August 15, 2011 at 12:38 pm
@Joel
You don't need to use a seperate column for the weights, but it can be useful
for clarity
.
If the weights are based as you say on a series you could use a formula like
say your in B20
=A20*(row()-10)
so as you copy this between B10 and 20 it will adjust automatically as y... | |
R_base_all/R_base_all_198_6.txt | ces
Chambers, J. M. (1998) _Programming with Data. A Guide to the S Language._
Springer.
Ripley, B. D. (2001) Connections. _R News_ , **1/1** , 16--7. [
https://www.r-project.org/doc/Rnews/Rnews_2001-1.pdf
](https://www.r-project.org/doc/Rnews/Rnews_2001-1.pdf)
## See Also
` [ textConnection ](/link/textConnection... | |
R_base_all/ts_moving_averages6_11_0.txt |
savings %>%
gather(metric, value, srate_ma01:srate_ma10) %>%
group_by(metric) %>%
summarise(MSE = mean((srate - value)^2, na.rm = TRUE),
MAPE = mean(abs((srate - value)/srate), na.rm = TRUE))
## # A tibble: 5 x 3
## metric MSE MAPE
## ... | |
R_base_all/R_base_all_212_2.txt | ce=r-docs&utm_medium=docs&utm_term=Arithmetic&utm_content=run_example_in_workspace)
# NOT RUN {
x <- -1:12
x + 1
2 * x + 3
x %% 2 #-- is periodic
x %/% 5
x %% Inf # now is defined by limit (gave NaN in earlier versions of R)
# }
Run the code above in your browser using ... | |
R_base_all/R_base_all_253_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)
# diff: Lagged Differences
## Description
Returns suitably lagged and iterated differences.
... | |
R_base_all/weighted-average-excel4_72_0.txt | http://www.excelhero.com/blog/2010/01/the-venerable-sumproduct.html
Regards, | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_141_0.txt |
library(reshape2)
before = data.frame(attr = c(1,30,4,6), type=c('foo_and_bar','foo_and_bar_2'))
newColNames <- c("type1", "type2")
newCols <- colsplit(before$type, "_and_", newColNames)
after <- cbind(before, newCols)
after$type <- NULL
after
Share | |
R_base_all/index.html6_37_0.txt |
cor(x1, x2);
## [1] 0.307195
This is useful if we are only interested in two variables, but there is a much
more efficient way to generate any number of variables with different
variances and correlations to one another. To do this, we need to use the
MASS library, which can be installed a... | |
R_base_all/index.html6_26_0.txt | To start out simple, suppose we want to ask R to pick a random number from one
to ten with equal probability.
rand_number_1 <- sample(x = 1:10, size = 1);
print(rand_number_1);
## [1] 3 | |
R_base_all/weighted-average-excel4_6_0.txt | #### Chandoo
Share | |
R_base_all/weighted-average-excel4_329_0.txt | @Aveek
Can you ask the question in the Chandoo.org forums
http://forum.chandoo.org/ | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_13_0.txt | 3. Teams
4. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_179_0.txt | Highly active question . Earn 10 reputation (not counting the association
bonus ) in order to answer this question. The reputation requirement helps
protect this question from spam and non-answer activity.
## | |
R_base_all/R_base_all_178_1.txt | r using [ DataCamp Workspace
](https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=packages%2Fbase%2Fversions%2F3.6.2%2Ftopics%2Frapply&utm_source=r-docs&utm_medium=docs&utm_term=rapply&utm_content=run_example_in_workspace)
Powered by [ DataCamp ](https://www.datacamp.com/)
| |
R_base_all/weighted-average-excel4_280_0.txt | Hi,
I intend to design a excel based rating system . How do i dervie a rating
based on a) Target % b) Goal weightage.
Note- rating 1 ( best) , rating 5 (worst)
Goal weightage on scale of 1 to 5. | |
R_base_all/weighted-average-excel4_90_0.txt | Reply
15. Joel says: | |
R_base_all/simulation.html8_3_0.txt | R comes with a set of pseuodo-random number generators that allow you to
simulate from well-known probability distributions like the Normal, Poisson,
and binomial. Some example functions for probability distributions in R
* ` rnorm ` : generate random Normal variates with a given mean and standard deviation
* ` d... | |
R_base_all/1188876_4_0.txt | DavoWW October 26, 2021, 3:15am 2
Hi @ysc ,
I tried "splitting" whole columns but it got messy!
Here is a way of achieving your result using matrices and operating on each
element. It also works with more than 2 values per string: | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_41_0.txt | – thelatemail
Aug 9, 2017 at 4:30 | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_121_0.txt |
before <- data.frame(attr = c(1,30,4,6), type=c('foo_and_bar','foo_and_bar_2'))
out <- strsplit(as.character(before$type),'_and_')
For example: | |
R_base_all/weighted-average-excel4_225_0.txt | @Desperate teacher... welcome to Chandoo.org
Write your scores & points like this: | |
R_base_all/pandas.Series.str.split.html8_52_0.txt | Built with the PyData Sphinx Theme 0.14.4.
| |
R_base_all/R_base_all_79_1.txt | e passed in a call to this routine.
Additionally, the list will have an additional class, being CRoutine,
CallRoutine, FortranRoutine or ExternalRoutine corresponding to the R
interface by which it should be invoked.
If any of the symbols is not found, an error is raised.
If name contains only one symbol name and un... | |
R_base_all/R_base_all_376_1.txt | not part of a
valid character it is printed in hex in the form \xab and this is repeated
until the start of a valid character. (This will rapidly recover from minor
errors in UTF-8.)
## Multi-byte locales
In all locales, the characters in the ASCII range ( 0x00 to 0x7f ) are
printed in the same way, as-is if ... | |
R_base_all/weighted-average-excel4_54_0.txt | ### 108 Responses to “Weighted Average in Excel [Formulas]”
1. Amit says: | |
R_base_all/weighted-average-excel4_273_0.txt | 57. NM says:
October 24, 2013 at 1:41 pm | |
R_base_all/R_base_all_17_1.txt | sion=3.6.2) ` is a valid logical object.
Where a component of ` x ` or ` y ` is ` NA ` , the result will be ` NA ` if
the outcome is ambiguous. In other words ` NA & TRUE ` evaluates to ` NA ` ,
but ` NA & FALSE ` evaluates to ` FALSE ` . See the examples below.
See [ Syntax ](/link/Syntax?package=base&version=3.6.2) ... | |
R_base_all/getting-started-simulating-data8_118_0.txt | * *
* * * * * | |
R_base_all/getting-started-simulating-data8_16_0.txt | First, the code did get me 5 numbers, which is what I wanted. However, the
code itself isn’t particularly clear. What I might refer to as lazy coding on
my part can look pretty mysterious to someone reading my code (or to my future
self reading my code). Since I used the default values for ` mean ` and ` sd `
, it’s no... | |
R_base_all/R_base_all_406_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)
# try: Try an Expression Allowing Error Recovery
## Description
` try ` is a wrapper to run ... | |
R_base_all/pandas.Series.str.split.html8_42_0.txt |
>>> s.str.rsplit("/", n=1, expand=True)
0 1
0 this is a regular sentence None
1 https://docs.python.org/3/tutorial index.html
2 NaN NaN
Remember to escape special characters when e... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_123_0.txt |
after <- with(before, data.frame(attr = attr))
after <- cbind(after, data.frame(t(sapply(out, `[`))))
names(after)[2:3] <- paste("type", 1:2, sep = "_")
At this point, ` after ` is what you wanted | |
R_base_all/index.html6_48_0.txt | We could even run an ordination on these simulated data. For example, we could
extract the principle components with ` prcomp ` , then plot the first two PCs
to visualise these data. We might, for example, want to compare different
methods of ordination using a data set with different, pre-specified
properties (e.g., ... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_147_0.txt | base but probably slow:
n <- 1
for(i in strsplit(as.character(before$type),'_and_')){
before[n, 'type_1'] <- i[[1]]
before[n, 'type_2'] <- i[[2]]
n <- n + 1
}
## attr type type_1 type_2
## 1 1 foo_and_bar foo bar
## 2 30 foo_and_... | |
R_base_all/weighted-average-excel4_130_0.txt | 28. Help Please says:
October 27, 2011 at 6:38 pm | |
R_base_all/R_base_all_78_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)
# name: Names and Symbols
## Description
A ‘name’ (also known as a ‘symbol’) is a way to ref... | |
R_base_all/ts_moving_averages6_21_0.txt |
# compute 2 and 2x4 moving averages
elecsales.df %>%
mutate(ma2 = rollmean(sales, k = 2, fill = NA),
ma2x4 = ma(sales, order = 4, centre = TRUE)) %>%
gather(ma, value, ma2:ma2x4) %>%
ggplot(aes(x = year)) +
geom_point(aes(y = sales)) +
geom_line(aes(y = valu... | |
R_base_all/weighted-average-excel4_242_0.txt | 9
864
Arizona Omelette
1
5.0%
$7.30
10
395
Ohio Omelette
1
15.0%
$5.50 | |
R_base_all/R_base_all_340_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)
# sets: Set Operations
## Description
Performs **set** union, intersection, (asymmetric!) di... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_186_0.txt | Split column at delimiter in data frame
4 | |
R_base_all/R_base_all_204_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)
# normalizePath: Express File Paths in Canonical Form
## Description
Convert file paths to c... | |
R_base_all/weighted-average-excel4_261_0.txt | 100 0.1
200 0.2
-300 0.3
400 0.2
500 0.2
Ave (weighted) 140
Reply | |
R_base_all/R_base_all_54_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.names: Find All Names in an Expression
## Description
Return a character vector contai... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_103_0.txt | * 1
3 years later - this option is working best for a similar problem I have -
however the dataframe I am working with has 54 columns and I need to split all
of them into two. Is there a way to do this using this method - short of
typing out the above command 54 times? Many thanks, Nicki. | |
R_base_all/getting-started-simulating-data8_102_0.txt | Let’s say we want to simulate some values from a normal distribution, which we
can do using the ` rnorm() ` function as above. But now instead of drawing
some number of values from a distribution one time we want to do it many
times. This could be something we’d do when demonstrating the central limit
theorem, for exam... | |
R_base_all/R_base_all_256_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)
# Recall: Recursive Calling
## Description
` Recall ` is used as a placeholder for the name ... | |
R_base_all/weighted-average-excel4_222_0.txt | * 4th grade teacher says:
September 29, 2012 at 1:42 am | |
R_base_all/R_base_all_343_1.txt | # columns are int b1 c1 c2 b2 c3
a$pivot
pivI <- sort.list(a$pivot) # the inverse permutation
all.equal (x, qr.Q(a) %*% qr.R(a)) # no, no
stopifnot(
all.equal(x[, a$pivot], qr.Q(a) %*% qr.R(a)), # TRUE
all.equal(x , qr.Q(a) %*% qr.R(a)[, pivI])) # TRUE too!
#... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_173_0.txt | Data
before = data.frame(attr = c(1,30,4,6), type=c('foo_and_bar','foo_and_bar_2'))
| |
R_base_all/R_base_all_423_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)
# remove: Remove Objects from a Specified Environment
## Description
` remove ` and ` rm ` c... | |
R_base_all/index.html6_56_0.txt | Note that I have run a linear model that might be reasonable given the
structure of our data. But the advantage of working with simulated data and
knowing for certain what the relationship is between the underlying variables
is that we can explore different statistical techniques. For example, we know
that our response... | |
R_base_all/weighted-average-excel4_120_0.txt | James
Reply | |
R_base_all/R_base_all_259_1.txt | `
## Examples
[ Run this code
](https://app.datacamp.com/workspace/preview?_tag=rdocs&rdocsPath=packages%2Fbase%2Fversions%2F3.6.2%2Ftopics%2Fsink&utm_source=r-docs&utm_medium=docs&utm_term=sink&utm_content=run_example_in_workspace)
# NOT RUN {
sink("sink-examp.txt")
i <- 1:10
outer(i, i, ... | |
R_base_all/R_base_all_339_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)
# .Platform: Platform Specific Variables
## Description
` .Platform ` is a list with some de... | |
R_base_all/80542_10_0.txt |
suppressMessages(library(tidyverse))
df <- tibble(
x = c(
"a",
"a_",
"_a",
"a_b",
"a_b_c",
"a_bk_c_d",
"ak_b_l",
"a_b_q_r_s_hk"
)
)
df %>% separate(x, "_(?=[^_]*$)",
into = c("the_rest", "... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_107_0.txt | – Nicki
Aug 7, 2017 at 13:20 | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_162_0.txt | Here is another base R solution. We can use ` read.table ` but since it
accepts only one-byte ` sep ` argument and here we have multi-byte separator
we can use ` gsub ` to replace the multibyte separator to any one-byte
separator and use that as ` sep ` argument in ` read.table `
cbind(before[1], read.ta... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_214_0.txt | * Technology
* Culture & recreation
* Life & arts
* Science
* Professional
* Business
* API
* Data
* Blog
* Facebook
* Twitter
* LinkedIn
* Instagram | |
R_base_all/R_base_all_110_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)
# which.min: Where is the Min() or Max() or first TRUE or FALSE ?
## Description
Determines ... | |
R_base_all/R_base_all_96_1.txt | ta.frame ` are converted to factor
columns unless protected by ` [ I ](/link/I?package=base&version=3.6.2) ` or
argument ` stringsAsFactors ` is false. If a list or data frame or matrix is
passed to ` data.frame ` it is as if each component or column had been passed
as a separate argument (except for matrices protected... | |
R_base_all/R_base_all_247_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)
# summary: Object Summaries
## Description
` summary ` is a generic function used to produce... | |
R_base_all/simulation.html8_23_0.txt | \\[ \log \mu = \beta_0 + \beta_1 x \\]
and \\(\beta_0=0.5\\) and \\(\beta_1=0.3\\) . We need to use the ` rpois()
` function for this | |
R_base_all/ts_moving_averages6_27_0.txt | Fig: Commonly used weights in weighted moving averages (Hyndman &
Athanasopoulos, 2014)
For example, the ` AirPassengers ` data contains an entry for every month in a
12 year span, so a time period would consist of 12 time units. A 2 x 12-MA
set-up is the preferred method for such data. The observation itself, as wel... | |
R_base_all/1358206-date-manipulation-volume-weighted-average1_27_0.txt | * * *
* 1 like | |
R_base_all/weighted-average-excel4_74_0.txt | 8. Gregor Erbach says:
June 15, 2010 at 3:02 pm | |
R_base_all/R_base_all_336_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)
# traceback: Get and Print Call Stacks
## Description
By default ` traceback() ` prints the ... | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_131_0.txt | Rich Scriven Rich Scriven
98.6k 11 11 gold badges 188 188 silver badges 250 250 bronze badges | |
R_base_all/1370168_12_0.txt | Powered by Discourse , best viewed with JavaScript enabled
| |
R_base_all/getting-started-simulating-data8_66_0.txt | Using ` times ` with a vector repeats each element like ` each ` does. I found
this a little confusing as it makes it harder to remember which argument
repeats “elementwise” and which “vectorwise”. But ` length.out ` always
repeats “vectorwise”, so that’s something.
Let’s repeat the first element twice and the second ... | |
R_base_all/getting-started-simulating-data8_61_0.txt | The ` times ` argument can be used when we want to repeat the whole vector
rather than repeating it elementwise.
We’ll make a two-group variable again, but this time we’ll change the
repeating pattern of the values in the variable. | |
R_base_all/weighted-average-excel4_260_0.txt | Yes, Negatives don't affect the answer except that they reduce the average
` 100 0.1
200 0.2
300 0.3
400 0.2
500 0.2
Ave (weighted) 320 ` | |
R_base_all/ts_moving_averages6_14_0.txt | ## Trailing Moving Average for Forecasting
Centered moving averages are computed by averaging across data both in the
past and future of a given time point. In that sense they cannot be used for
forecasting because at the time of forecasting, the future is typically
unknown. Hence, for purposes of forecasting, we use... | |
R_base_all/R_base_all_197_2.txt | y ` , ` ftp_proxy ` :
(and more). Optional. Settings for ` [ download.file
](/link/download.file?package=base&version=3.6.2) ` : see its help for further
details.
## See Also
` [ Sys.getenv ](/link/Sys.getenv?package=base&version=3.6.2) ` and ` [
Sys.setenv ](/link/Sys.setenv?package=base&version=3.6.2) ` to ... | |
R_base_all/80542_12_0.txt | Thanks! That's exactly what I'm looking for!
1 Like | |
R_base_all/split-data-frame-string-column-into-multiple-columns0_130_0.txt | edited Aug 28, 2017 at 19:21
answered Aug 28, 2017 at 19:15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.