Re: [R] Scaling - does it get any better results than not scaling?

2018-07-17 Thread Alex Zarebski
Hey, Nice question, I'm interested to see what others have to say on this. I'd like to point out a couple of algorithmic points: - If you are using regularisation the scaling /will/ lead to different results. - If you are using an iterative method to estimate something, (yes very vague but you ge

Re: [R] Forecasting methods in R

2018-07-12 Thread Alex Zarebski
Hey, You should probably check out the =forecast= package which is pretty close to a default solution as you'll find. https://cran.r-project.org/web/packages/forecast/ If you google around this you should find some useful stuff. Cheers, Alex On Fri, Jul 13, 2018 at 12:15 PM Amitabh Kumar via R

Re: [R] Calling r-scripts with arguments from other scripts, or possibly R programming conventions/style guide

2018-06-13 Thread Alex Zarebski
Sourcing scripts is a bit hacky but it is a quick way to get a job done. If you want to take your source-ing to the next level you might want to look up how to use the "local" argument with environments. Packages are probably the way to go if you are doing anything substantial though. Also, "argp

Re: [R] open help files from Terminal

2018-06-08 Thread Alex Zarebski
While we are on the topic, if you wanted to go the other way (open help in terminal without a whole R session) you can do R --no-init-file --slave -e "?sd" I suspect this does start an R session in the background, but makes for a clean way to view docs through terminal if you use an alias. Cheer

Re: [R] par(mfrow=c(3,4)) problem

2018-05-30 Thread Alex Zarebski
You might find the patchwork library helpful (plot_layout function) https://github.com/thomasp85/patchwork I'm not sure if it's on CRAN but you can devtools::github_install it. Cheers, Alex On Wed, May 30, 2018 at 6:42 PM, greg holly wrote: > Hi all; > > I need to put 12 different plot2 into

Re: [R] options other than regex

2018-05-25 Thread Alex Zarebski
The stringr package might beof interest to you (and I think magrittr makes it more readable). > library(stringr) > library(magrittr) > '10110111' %>% str_split('') %>% unlist %>% str_flatten('.') [1] "1.0.1.1.0.1.1.1" Note that the unlist is there because we are only applying this to a single str