xml2dfciv: From xml docs to dfciv data frame

Description Usage Arguments Details Value Note Examples

Description

xml2dfciv transforms the original xml documents (decisions in civil matters from Italian Supreme Court) to a data frame of class dfciv.

Usage

1
xml2dfciv(path)

Arguments

path

character string containing the path of xml input documents.

Details

Each original document has a xml tree structure starting at snintegrale top element and branching to testo and dispositivo leave elements, respectively containing the content of the document body and the case decision. Document attributes are:

tipoProv

type of decision (D, I, O, S) - S stands for *Sentenza* (final decision)

annoDec

year of decision

numDec

number of decision

numSez

number of ISC section

annoNrgSic

year of filing lawsuit

nrgSic

number of filing lawsuit

annoProvOrig

year of appealed decision

numProvOrig

number of appealed decision

autorita

authority of appealed decision

localita

location of appealed decision

materia

subject of appealed decision

Value

dfciv a data frame of class dfciv. Each row is a final decision (tipoProv == "S") and the columns contain attributes and testo and dispositivo texts for each document.

Note

xml2dfciv transforms the xml tree to a list which in turn is transformed to a data frame. You can obtain the dfciv data frame loading this compressed xml file and then running the code in the example.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(Supreme)

# Unzip and load in memory the xml input file.
xml_input <- unzip("../ISC_Civil_2013.zip")
dfciv <- xml2dfciv(xml_input)
str(dfciv)

## End(Not run)

paolofantini/Supreme documentation built on May 24, 2019, 6:14 p.m.