Description Usage Arguments Details Value See Also Examples
A function to transform text into units of voteinfo
1 |
pattern |
Regex pattern to split the text file on |
txtvector |
Vector of text to make into a data frame. Should be stored by the |
strlength |
Integer indicating how much of the string after each vote should be kept. With rollcalls it is seldom enough with under 1000 |
If a C stack usage error occurs, this is often a consequence of infinite loops caused by wrongly specified pattern argument. Check whether the pattern argument is correctly specified.
Returns a dataframe with vote info on the specified text file
1 2 3 4 | order.files("~Storting/storting1899")
collapse.text("~Storting/storting1899")
s1899text <- mend.text("~Storting/storting1899/")
s1899df <- voteDf("Votering[[:punct:]]", s1899text, 500)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.