More: Charlotte Wickham’s purr tutorial video, the purrr cheat sheet PDF download, easy error checking with purrr’s possibly.
Cs(so, it, goes)
creates c(“so”, “it”, “goes”). CRAN.Cs(so, it, goes)
mydf2 <- fromJSON(myjson)
content(r, “text”)
%>%
symbol for chaining R operations, but it’s got other useful operators such as %<>%
for mutating a data frame in place and and .
as a placeholder for the original object being operated upon. CRAN.More examples in the package vignette
body_add_img(src = myplot)
The package website has many more examples.
reactable::reactable(mydf): Quick interactive HTML tables
reactable: reactable: Create tables with expandable rows
reactable: Gregg Lin
See my searchable ggplot2 cheat sheet and
time-saving code snippets.
plot_ly(d, x = carat, y = price, text = paste(“Clarity: “, clarity), mode = “markers”, color = carat, size = carat)
my_gg <- g + geom_point_interactive(aes(tooltip = model), size = 2) %>%
ggiraph(code = print(my_gg), width = .7).
Easy interactive ggplot graphs in R with ggiraph
–
e_charts(xcol)%>% e_line(ycol)
Plot in R with echarts4r or the package site
See the getting started vignette
destination = c(my_address),
alternatives = TRUE
Also see the vignette
mutate(State = as.character(name))
See the package GitHub repo.
.Renvironment
and .Rprofile
files. On CRAN, but install GitHub version from “r-lib/usethis” for latest updates.