norscir | R Documentation |
An implemetation of all R related resources for NorScir at Rapporteket, including R-functions for analysis and plotting, noweb-files and even artwork needed for producing R-dependent reports
The package contains a set of sample data that can be used for development purposes. Not to be used in a PRODUCTION environment!
Standard R-functions for processing registry data
LaTeX docs weaved with R-code to produce reports. These are accessed by
system.file
, E.g
system.file("NSsamelDok.Rnw", package = "NorScir")
. You may process
the noweb files directly using Sweave or knitr, e.g
knitr::knit(system.file("NSsamleDok.Rnw", package = "NorScir"))
, or
by using the wrapper of the rapbase package, e.g.
rapbase::RunNoweb(nowebFileName, packageName, weaveMethod = "knitr")
.
Artwork is accessed in the same way as for the noweb-files, e.g
system.file("NorSCIR_logo_blue_norsk.pdf", package = "NorScir")
data(NorScirSampleData)
names(NorScirSampleData)
NSFigAndeler(RegData = NorScirSampleData, valgtVar = "Alder", reshID = 123456, hentData=0)
knitr::knit(system.file("NSsamleDok.Rnw", package = "NorScir"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.