norscir: All R resources neede for NorScir at Rapporteket

norscirR Documentation

All R resources neede for NorScir at Rapporteket

Description

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

Sample data

The package contains a set of sample data that can be used for development purposes. Not to be used in a PRODUCTION environment!

Functions

Standard R-functions for processing registry data

Noweb-files

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

Artwork is accessed in the same way as for the noweb-files, e.g system.file("NorSCIR_logo_blue_norsk.pdf", package = "NorScir")

Examples

data(NorScirSampleData)
names(NorScirSampleData)
NSFigAndeler(RegData = NorScirSampleData, valgtVar = "Alder", reshID = 123456, hentData=0)
knitr::knit(system.file("NSsamleDok.Rnw", package = "NorScir"))


Rapporteket/norscir documentation built on Nov. 2, 2023, 11:53 a.m.