Re: [R] Loop Repetition

2019-08-06 Thread Tolulope Adeagbo
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: > >

Re: [R] Loop Repetition

2019-08-06 Thread Tolulope Adeagbo
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

[R] Loop Repetition

2019-08-06 Thread Tolulope Adeagbo
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

Re: [R] Column 'xyz' does not exist

2019-07-30 Thread Tolulope Adeagbo
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

[R] Column 'xyz' does not exist

2019-07-30 Thread Tolulope Adeagbo
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

[R] Monte carlo Simulation

2019-07-29 Thread Tolulope Adeagbo
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

[R] Warning: Error in *: non-numeric argument to binary operator

2019-07-10 Thread Tolulope Adeagbo
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]] _

Re: [R] EXAMPLE OF HOW TO USE R FOR EXPONENTIAL DISTRIBUTION & EXPONENTIAL REGRESSION

2018-11-27 Thread Tolulope Adeagbo
; # 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

[R] EXAMPLE OF HOW TO USE R FOR EXPONENTIAL DISTRIBUTION & EXPONENTIAL REGRESSION

2018-11-27 Thread Tolulope Adeagbo
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