home.social

#baser — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #baser, aggregated by home.social.

  1. CW: unpopular opinion about Tidyverse

    BTW, so far I have not encountered any scenario in which #tidyR offers solutions superior to #baseR.

    I can't speak for anyone else, but in my line of work, I achieve everything I want to do in base R with fewer lines of code than with what tidyR, dplyr and the like have to offer.

  2. Want to plot two different distributions on each other and then see their mixture density in base R, then take the code and do it! #R #RStats #Density #BaseR #Histograms

  3. I added another random walk to the dev version of my #R #Package #RandomWalker for the Wilcoxon Signed Rank using the #BaseR function rsignrank. Take a look :) #R #ggplot2 #tidydata #Random #stochastic #discrete

  4. I did another post on use with() and within() from Base R, simply because it bears repeating. I don't think it gets enough eyeballs. Post: www.spsanderson.com/steveondata/... #R #RStats #BaseR #RProgramming #Programming #RCode #Code

  5. I've talked about creating data.frames and tibbles before, but it is an important topic so I have covered it again. This time specifically from the perspective of creating them from vectors. Post: www.spsanderson.com/steveondata/... #R #RStats #tibble #dplyr #tidyverse #dataframe #baseR #blog

  6. I've talked about creating data.frames and tibbles before, but it is an important topic so I have covered it again. This time specifically from the perspective of creating them from vectors. Post: www.spsanderson.com/steveondata/... #R #RStats #tibble #dplyr #tidyverse #dataframe #baseR #blog

  7. I've talked about creating data.frames and tibbles before, but it is an important topic so I have covered it again. This time specifically from the perspective of creating them from vectors. Post: www.spsanderson.com/steveondata/... #R #RStats #tibble #dplyr #tidyverse #dataframe #baseR #blog

  8. I've talked about creating data.frames and tibbles before, but it is an important topic so I have covered it again. This time specifically from the perspective of creating them from vectors. Post: www.spsanderson.com/steveondata/... #R #RStats #tibble #dplyr #tidyverse #dataframe #baseR #blog

  9. I've talked about creating data.frames and tibbles before, but it is an important topic so I have covered it again. This time specifically from the perspective of creating them from vectors. Post: www.spsanderson.com/steveondata/... #R #RStats #tibble #dplyr #tidyverse #dataframe #baseR #blog

  10. I posted a new introduction to surface #gifti and volume #NIfTI #fMRI data at mvpa.blogspot.com/2025/01/intr.

    The material is mostly general, with all examples using #baseR #rstats code; it's accompanied by a major update to my gifti #knitr tutorial.

    I hope these will be useful to folks getting started with #neuroimaging datasets, as well as anyone looking for example scripts for reading, plotting, and manipulating (human fMRI) brain data files.

  11. I posted a new introduction to surface #gifti and volume #NIfTI #fMRI data at mvpa.blogspot.com/2025/01/intr.

    The material is mostly general, with all examples using #baseR #rstats code; it's accompanied by a major update to my gifti #knitr tutorial.

    I hope these will be useful to folks getting started with #neuroimaging datasets, as well as anyone looking for example scripts for reading, plotting, and manipulating (human fMRI) brain data files.

  12. I posted a new introduction to surface #gifti and volume #NIfTI #fMRI data at mvpa.blogspot.com/2025/01/intr.

    The material is mostly general, with all examples using #baseR #rstats code; it's accompanied by a major update to my gifti #knitr tutorial.

    I hope these will be useful to folks getting started with #neuroimaging datasets, as well as anyone looking for example scripts for reading, plotting, and manipulating (human fMRI) brain data files.

  13. I posted a new introduction to surface #gifti and volume #NIfTI #fMRI data at mvpa.blogspot.com/2025/01/intr.

    The material is mostly general, with all examples using #baseR #rstats code; it's accompanied by a major update to my gifti #knitr tutorial.

    I hope these will be useful to folks getting started with #neuroimaging datasets, as well as anyone looking for example scripts for reading, plotting, and manipulating (human fMRI) brain data files.

  14. I posted a new introduction to surface #gifti and volume #NIfTI #fMRI data at mvpa.blogspot.com/2025/01/intr.

    The material is mostly general, with all examples using #baseR #rstats code; it's accompanied by a major update to my gifti #knitr tutorial.

    I hope these will be useful to folks getting started with #neuroimaging datasets, as well as anyone looking for example scripts for reading, plotting, and manipulating (human fMRI) brain data files.

  15. What does your batting average need to be to be a hall of fame baseball player?

    Patrick Ward and I look at this among other questions using only Base R plotting tools, including making a plot interactive!

    Bit.ly/TidyX_Ep168

  16. CW: Workity Work

    @arclight
    R is so unOpinionated that it has split into base and tidy dialects. 😂 (even #baseR coding styles aren't standardized)

    But your post also underscores the wide range of folks using #rstats: I think of myself as the target audience (academic research, basic science, analysis stats and visualization) ... but do not know if that's who you mean by "SMEs", or even if I am the target audience. Priorities (and terminology) vary dramatically between fields and subgroups.

  17. Base R plots - oft overlooked for the powerful ggplot2- offer a surprising amount of power if you take the time to learn it!

    Join Patrick Ward and I as we talk through making scatter plots in !

    Bit.ly/TidyX_Ep165

  18. Get unique rows of a dataframe in , but ignore some columns (e.g., ID in this df)?

    df1 <-
    data.frame(
    name = c("apple", "apple", "apple", "orange", "orange"),
    ID = c(1, 2, 3, 4, 5),
    is_fruit = c("yes", "yes", "yes", "yes", "yes")
    )

    If you're a fan like me, you might want:

    df1[!duplicated(df1[!names(df1) %in% c("ID")]), ]

  19. Major thanks to @tannguyen for spotting and reporting a bug in my niftiPlottingFunctions.R plot.volume() function!

    The code at osf.io/k8u2c is updated; see mvpa.blogspot.com/2023/03/bugf for info and examples.

    (This #baseR #rstats function is for plotting #fMRI #nifti images in #knitr documents.)

    ... it is painful to find out there was a bug, but so much better to fix it than to continue its propagation! I am grateful to @tannguyen and hope anyone else seeing something odd lets me know.

  20. Major thanks to @tannguyen for spotting and reporting a bug in my niftiPlottingFunctions.R plot.volume() function!

    The code at osf.io/k8u2c is updated; see mvpa.blogspot.com/2023/03/bugf for info and examples.

    (This #baseR #rstats function is for plotting #fMRI #nifti images in #knitr documents.)

    ... it is painful to find out there was a bug, but so much better to fix it than to continue its propagation! I am grateful to @tannguyen and hope anyone else seeing something odd lets me know.

  21. Major thanks to @tannguyen for spotting and reporting a bug in my niftiPlottingFunctions.R plot.volume() function!

    The code at osf.io/k8u2c is updated; see mvpa.blogspot.com/2023/03/bugf for info and examples.

    (This #baseR #rstats function is for plotting #fMRI #nifti images in #knitr documents.)

    ... it is painful to find out there was a bug, but so much better to fix it than to continue its propagation! I am grateful to @tannguyen and hope anyone else seeing something odd lets me know.

  22. Major thanks to @tannguyen for spotting and reporting a bug in my niftiPlottingFunctions.R plot.volume() function!

    The code at osf.io/k8u2c is updated; see mvpa.blogspot.com/2023/03/bugf for info and examples.

    (This #baseR #rstats function is for plotting #fMRI #nifti images in #knitr documents.)

    ... it is painful to find out there was a bug, but so much better to fix it than to continue its propagation! I am grateful to @tannguyen and hope anyone else seeing something odd lets me know.

  23. @milesmcbain "... the users are actually readers of the code rather than just runners ..." is a great way to put it!

    With the #academic #programming that's my job, I assume most everything will eventually contribute to a publication, and so be shared. The logic of the code needs to be apparent to others in the future (and hopefully useable); imo avoiding dependencies and sticking to the most stable codebase (#baseR #rstats, in my case) is worth the effort.

  24. A methods paper of mine is now at doi.org/10.3389/fnimg.2023.107 . This little #NewNeuroPaper demonstrates human task #fMRI quality control, as part of the FMRI Open QC Project (which I hope to discuss at #OHBM and elsewhere as it wraps up).

    Its supplemental (doi.org/10.17605/OSF.IO/HT543) may be of interest to #rstats folks, particularly if looking for examples of #baseR #knitr #graphics and/or scripts aiming to minimize dependencies and maximize long-term usability.

  25. #introduction

    I'm a staff scientist at Washington U in St Louis (#WashU #wustl #Missouri, USA), mostly working with human task fMRI datasets. I'm a big fan of #baseR and #knitr #rstats, #QC, and very extensive #supplementary materials. I insist on looking at data early and often; some #tutorials and examples on my blog. (#GotBrains?)

    I'm a #FirstGen college grad, #IowaStateU; BS in #forestry. I also occasionally share cats, #knitting, and #crochet. Promoting abortion rights, not book bans.

  26. Introduction:

    Hi, I’m a political science postdoc researcher at the Computational Social Science Lab @Uni_Stuttgart

    My roots are research on attitudes, #participation, and #voting behavior. My dissertation on participatory and #deliberative #democracy on local level brought me to python, webscraping and machine learning. #AI

    I consider causal reasoning to be the most important part of statistical modeling. #DAG #DGP

    What else to say? I love teaching #rstats the #baseR way!

  27. @ERDonnachie @tgtads @datamaps

    I can't resist a #tidyverse vs. #baseR #rstats thread. 😅

    It is totally possible to work without tidyverse, and base R graphics can be incredibly flexible. If you'd like some examples, just this morning I uploaded yet another set of all-base #knitr supplemental files (osf.io/ht543), with very pretty (and highly useful) graphics, if I say so myself. (Tidyverse can be ok, but it's not at all required.)

  28. :rstats: `paste0()` can help you select columns in a df, base R style.

    # generate example data
    df <- as.data.frame(matrix(sample(30), nrow = 3))

    # change last three column names
    names(df)[ncol(df):(ncol(df) - 2)] <- c("some", "random", "names")

    # switch columns up for fun :-)
    df <- df[ , sample(10)]

    # Extract columns V1-V7
    df[paste0("V", 1:7)]

  29. just gonna drop this here: I need to update this to the most recent data. Source was and is legitimate data. Not sure if this needs a content warning, but I'm not advocating for anything in particular. Just let the data speak for itself. If anyone wants the I used, it uses and I can put all of it into Github

  30. ATM, we have approximately 6 people who use something other thand , or . What do you use? ?

  31. Introduction:

    Hi, I’m a political science postdoc researcher at the Computational Social Science Lab @Uni_Stuttgart

    My roots are research on attitudes, #participation, and #voting behavior. My dissertation on participatory and #deliberative #democracy on local level brought me to python, webscraping and machine learning. #AI

    I consider causal reasoning to be the most important part of statistical modeling. #DAG #DGP

    What else to say? I love teaching #rstats the #baseR way!

  32. Introduction:

    Hi, I’m a political science postdoc researcher at the Computational Social Science Lab @Uni_Stuttgart

    My roots are research on attitudes, #participation, and #voting behavior. My dissertation on participatory and #deliberative #democracy on local level brought me to python, webscraping and machine learning. #AI

    I consider causal reasoning to be the most important part of statistical modeling. #DAG #DGP

    What else to say? I love teaching #rstats the #baseR way!

  33. Introduction:

    Hi, I’m a political science postdoc researcher at the Computational Social Science Lab @Uni_Stuttgart

    My roots are research on attitudes, #participation, and #voting behavior. My dissertation on participatory and #deliberative #democracy on local level brought me to python, webscraping and machine learning. #AI

    I consider causal reasoning to be the most important part of statistical modeling. #DAG #DGP

    What else to say? I love teaching #rstats the #baseR way!

  34. #introduction

    I'm a staff scientist at Washington U in St Louis (#WashU #wustl #Missouri, USA), mostly working with human task fMRI datasets. I'm a big fan of #baseR and #knitr #rstats, #QC, and very extensive #supplementary materials. I insist on looking at data early and often; some #tutorials and examples on my blog. (#GotBrains?)

    I'm a #FirstGen college grad, #IowaStateU; BS in #forestry. I also occasionally share cats, #knitting, and #crochet. Promoting abortion rights, not book bans.

  35. #introduction

    I'm a staff scientist at Washington U in St Louis (#WashU #wustl #Missouri, USA), mostly working with human task fMRI datasets. I'm a big fan of #baseR and #knitr #rstats, #QC, and very extensive #supplementary materials. I insist on looking at data early and often; some #tutorials and examples on my blog. (#GotBrains?)

    I'm a #FirstGen college grad, #IowaStateU; BS in #forestry. I also occasionally share cats, #knitting, and #crochet. Promoting abortion rights, not book bans.

  36. #introduction

    I'm a staff scientist at Washington U in St Louis (#WashU #wustl #Missouri, USA), mostly working with human task fMRI datasets. I'm a big fan of #baseR and #knitr #rstats, #QC, and very extensive #supplementary materials. I insist on looking at data early and often; some #tutorials and examples on my blog. (#GotBrains?)

    I'm a #FirstGen college grad, #IowaStateU; BS in #forestry. I also occasionally share cats, #knitting, and #crochet. Promoting abortion rights, not book bans.

  37. #introduction

    I'm a staff scientist at Washington U in St Louis (#WashU #wustl #Missouri, USA), mostly working with human task fMRI datasets. I'm a big fan of #baseR and #knitr #rstats, #QC, and very extensive #supplementary materials. I insist on looking at data early and often; some #tutorials and examples on my blog. (#GotBrains?)

    I'm a #FirstGen college grad, #IowaStateU; BS in #forestry. I also occasionally share cats, #knitting, and #crochet. Promoting abortion rights, not book bans.