tidbitr
offers handy functions that will be a shorthand for data analysis.
CopyFromClipboard
and CopyToClipboard
to read and write to clipboardFreq
returns a frequency table based on all the columns in a datasetRecon
reconciles and compares between two dataset for differences in them. Similarly operator%=%
merges and compares two datasetsStat
returns statistical summary of all the columns in a dataset. Stats includes # of rows, mean, median, N/A values, etc.GetXMLNodes
gets text of all XML nodesNumWithComma
class that can coerce numbers with comma as numbers when reading from fileslibrary(dplyr) library(tidbitr) census %>% tidbitr::CopyToClipboard(quote = F)
Similarly CopyFromClipboard
can be used to read dataframe contents from the clipboard.
Freq(census) Freq(census)$State Freq(census, 50, "d")
list1
list2
Recon(list1, list2)
Stat(mtcars)
GetXMLNodes(xml2::read_xml("https://www.w3schools.com/xml/simple.xml")) GetXMLNodes(xml2::read_xml("https://www.w3schools.com/xml/simple.xml"), "calories")
Check the xml yourself
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.