home.social

Search

1000 results for “smach”

  1. When creating a Shiny app, stop and think: What is Shiny-specific (like inputting data) and what is not Shiny-specific (like generating a dataviz based on specific inputs). If it's not Shiny-specific, put it in a function @tanho tells

  2. GREAT talk by @tanho on debugging Shiny apps at . Slides are here
    github.com/tanho63/shinyconf_d
    But it would definitely be worth watching the talk video when it's available if you missed it
    @rstats
    He also shared this great comic by @b0rk wizardzines.com/comics/better-

  3. Excited today that my InfoWorld "Do More With R" series was named a Jesse H. Neal Award finalist for Best Instructional Content!

    I'll be competing with colleagues at Computerworld as well as 2 others for this 😀

    The series is at bit.ly/domorewithR

  4. My RStudio code snippets to get an object from a character string and get the object name as a strong from the object:

    snippet string2obj
    eval(parse(text = "${1:obj_name}"))

    snippet obj2string
    deparse(substitute(${1:obj_name}))


    @rstats

  5. You can use Google Sheets to automatically fetch and save data on a schedule - even without an external programming language like Python or R. Here's my step-by-step tutorial:
    computerworld.com/article/3684

  6. “It's been 3,997 days since the Giants last playoff win (Super Bowl XLVI). That's 10 years, 11 months, 10 days, five coaching changes, three GM changes, and 107 losses ago.” - Ralph Vacchiano, Fox Sports

  7. “QBs in NFL history with 300+ passing yards, 2+ passing TDs and 70+ rushing yards in a playoff game:
    Daniel Jones”

    - SNY TV

    1st playoff game since 2016.

  8. Giants-Vikings tied up 24-24 in the 4th quarter. This is stressful.

  9. {vegabrite} is an experimental but “mostly complete” 📦 for creating Vega-Lite data visualizations from R. Includes charts, maps, interactivity options and more. By Alicia Schep.
    vegawidget.github.io/vegabrite/
    @rstats

  10. I *really* want to try out the {bslib} 📦's new cards feature -- especially in a Quarto doc (without needing a Shiny server). On the to-do list!
    rstudio.github.io/bslib/articl

  11. @appsilon 's sample code to create a 2-level drilldown bar graph in an R Shiny app is very easy to use!
    Data structure is super simple: 4 columns, 1 for each level and a 4th for the value. Then create a with the {echarts4r} 📦 using their example.

    Code with basic app: raw.githubusercontent.com/Apps

    Their toot with gif: fosstodon.org/@appsilon/109513

    My echarts4r tutorial at if you want to customize the plot: infoworld.com/article/3607068/

  12. @camartinezbu @MikeMahoney218 I've used R a lot more than QGIS, but I find the {mapview} 📦 easier for quick prototyping.You can't get much simpler than

    mapview(mydata, zcol = "mycolumn")

    For a choropleth map!

    My tutorial at if of interest:
    infoworld.com/article/3644848/

  13. The {nfl4th} 📦 powers a calculator analyzing probabilities for US football teams on 4th down if they choose to go for 1st down, kick a field goal, or punt.
    Pkg: nfl4th.com
    Shiny app rbsdm.com/stats/fourth_calcula
    Article: theathletic.com/2144214/2020/1
    By Ben Baldwin at The Athletic

  14. Free on-demand workshop: Introduction to machine learning in R with the {mlr3} 📦 .
    Video, slides, and downloadable code by Patrick Schratz. Part of this year's @opengeohub Summer School.

    av.tib.eu/media/59409

  15. The {stringr} 📦 gets a function to convert a character vector into a single, comma-separated string *with custom wording before the last item.* (I've been using knits::combine_words() for that.)

    Example from the tidyverse blog post about stringr 1.5.0:

    str_flatten_comma(c("cats", "dogs", "mice"), last = ", and ")

    #> [1] "cats, dogs, and mice"

    tidyverse.org/blog/2022/12/str