and then use replicate() to run the
> loop (there are also functions like vapply() and apply() if you need
> to pass different arguments into the function for different
> iterations).
>
> Bob
>
>
>
>
> On Tue, 6 Aug 2019 at 11:28, Tolulope Adeagbo
> wrote:
> >
each element of the vector on the
> right. You only have one element. Therefore you probably want:
>
> for(x in 1:5)
> ...
>
> Jim
>
> Jim
>
> On Tue, Aug 6, 2019 at 6:54 PM Tolulope Adeagbo
> wrote:
> >
> > Hey guys,
> >
> > I'm trying
Hey guys,
I'm trying to write a loop that will repeat an action for a stipulated
number of times. I have written some code but i think i'm missing something.
for (x in 5) {
repeat{
x = runif(1:4, min = 0, max = 1)
print(x)
if (x== var_1[5]){
print("done")
}
pri
eaasily
> traceback() and use debugging tools.
>
> Best,
> Uwe Ligges
>
>
> On 30.07.2019 11:03, Tolulope Adeagbo wrote:
> > So I'm having this error:
> >
> > column 'Previous stage does not exist'
> >
> > bal_matrix = loan_data_2
So I'm having this error:
column 'Previous stage does not exist'
bal_matrix = loan_data_2 %>% as.tibble() %>%
dplyr::arrange(Account_number) %>%
dplyr::group_by(Previous_stage, Current_stage) %>%
dplyr::summarise(
Total_bal = sum(Balance, na.rm = TRUE)
) %>%
tidyr::spread(key = Curr
Hello Everyone,
Please can anyone educate me on monte carlo simulation in R.
Thank you
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEAS
Dear All,
Please what could be the cause of this error, I created a GUI with shiny R
and it throws this error.
But running it alone in R, its fine.
I just need to know what are the possible causes for this error.
Thanks for your assistance.
[[alternative HTML version deleted]]
_
; # basic straight line of fit
>> fit <- glm(y~x)
>>
>> abline(fit, col="blue", lwd=2)
>> exp.lm <- lm(y ~ exp(x))
>> lines(1:10, predict(exp.lm, newdata=data.frame(x=1:10)))
>>
>>
>> On Tue, Nov 27, 2018 at 9:34 AM
Good day,
Please i nee useful materials to understand how to use R for exponential
regression.
Many thanks.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/li
9 matches
Mail list logo