/Work_misc

Functions as a cheat sheet for code and how-to that I find useful

Primary LanguageHTML

Work_misc

Functions as a cheat sheet for code and how-to that I find useful

2023-02-09-read-hobo-dat

Demonstrates reading HoboTemp data logger output from xlsx and csv files, working with datetime (POSIXct), and plotting the data in a useful manner. Script1 demonstrates when working from Github, and script2 demonstrates use when the script and all input and output files are kept on the Windows Desktop

2023-02-13-ggplot-cheat-cheats

Create example scripts for commonly used plot types in ggplot2

2023-03-17-excel-tabs

Script and rmarkdown document showing how to divide the iris data set by the three species, write the three separate dataframes to three sheets (tabs) in and Excel document, read back the three sheets, then bind them end-to-end to reconstruct the original iris data set. Demonstrates use of tools from base R (do.call, lapply) and tidyverse (purr::map, dplyr::bind_rows)

2023-03-29-test-markdown-table

There is no subdirectory for this entry. The objective is to test formatting on github of a markdown table generated in "df_2_MD.Rmd" using a function from r-bloggers.

The markdown table:

|Sepal.Length|Sepal.Width|Petal.Length|Petal.Width|Species|
|---|---|---|---|---|
|5.1|3.5|1.4|0.2|setosa|
|4.9|3|1.4|0.2|setosa|
|4.7|3.2|1.3|0.2|setosa|

The formatted result:

Sepal.Length Sepal.Width Petal.Length Petal.Width Species
5.1 3.5 1.4 0.2 setosa
4.9 3 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa