Skip to content

RyanGreenup/DataSci

Repository files navigation

Data Science Scripts / Notes

  • PrivateIndex
  • Related: Intro Data Science Time Series Analysis

if you’ve stumbled upon this you’ve found a bunch of my **R** Scripts that I use as snippets, they’re all a bit of a mess, generally the idea is:

  1. Clone the repo
  2. Set up Vim:
  3. Use this index to jump to the **R** Script / **R** Markdown /

org-babel, You’ll want these:

  1. use SPC k r or SPC k s to knit or spin the HTML
    • I haven’t been good with roxygen comments
  2. This is incomplete, if you need to fix links use C-x C-j and Spc f f

as theyre implemented in the DotFiles in order to fix it them

#* Template #** Inline Code

 adv$MeanAdvertising <- rowMeans(adv[,c(!(names(adv) == "Sales"))])

 AdvTVPlot <- ggplot(data = adv, aes(x = TV, y = Sales, col = MeanAdvertising)) +
   geom_point() +
   theme_bw() +
   stat_smooth(method = 'lm', formula = y ~ poly(x, 2, raw = TRUE), se = FALSE) +
  ##stat_smooth(method = 'lm', formula = y ~ log(x), se = FALSE) +
   labs(col = "Mean Advertising", x= "TV Advertising")
print(AdvTVPlot)

  if(knitr::is_html_output()){
    ggplotly(knitr::is_latex_output())
  } else {
    AdvTVPlot
  }

Intro02AdvPlotLinMod.png

Create Links to Files and Scripts

Environmental Informatics (Time Series Analysis)

Predictive Modelling

IntroDataSci

These Files include:

I did do this as an org file to, I like it but I think nvim-r is just easier to use, albeit a little janky, I include this below merely as an example, refer to the actual file in the Notes Repo.

Intro Data Sci in Org-Mode

References

<<bibliography link>> bibliography:/home/ryan/Dropbox/Studies/Papers/references.bib

<<bibliographystyle link>> bibliographystyle:unsrt

\printbibliography