{"id":2863,"date":"2021-01-12T12:17:16","date_gmt":"2021-01-12T12:17:16","guid":{"rendered":"https:\/\/xplortext.unileon.es\/?page_id=2863"},"modified":"2022-06-23T06:19:54","modified_gmt":"2022-06-23T06:19:54","slug":"prueba-enero-2021-2","status":"publish","type":"page","link":"https:\/\/xplortext.unileon.es\/?page_id=2863","title":{"rendered":"Spanish Discourses _Pg1"},"content":{"rendered":"<div id=\"the-database\" class=\"section level2\">\n<h2>1. The Database<\/h2>\n<div id=\"download-the-database\" class=\"section level3\">\n<h3>Download the database<\/h3>\n<p>First of all, we must download the SpanishDisc R data file from the following internet URL and save it in our computer: <a class=\"uri\" href=\"http:\/\/www.xplortext.org\/Rdata\/SpanishDisc.RData\">http:\/\/www.xplortext.org\/Rdata\/SpanishDisc.RData<\/a><\/p>\n<\/div>\n<div id=\"load-rdata-file-in-r\" class=\"section level3\">\n<h3>Load RData file in R<\/h3>\n<p>The database will be loaded in R format (data frame) or import it if it is in another format. In our case, the <em>SpanishDisc.RData<\/em> database was saved in C:\/RData directory. SpanishDisc database containing a data frame called <em>SpanishDisc<\/em>.<\/p>\n<h6>load(\"C:\/RData\/SpanishDisc.RData\")<\/h6>\n<p>Or:<\/p>\n<h6>load(url(\"http:\/\/www.xplortext.org\/Rdata\/SpanishDisc.RData\"))<\/h6>\n<\/div>\n<div id=\"data-frame-structure\" class=\"section level3\">\n<h3>Data frame structure<\/h3>\n<p>Given the SpanishDisc data frame object, the best way to understand the data structure is to use str().<\/p>\n<h6>str(SpanishDisc)<\/h6>\n<pre><code>'data.frame':   11 obs. of  7 variables:\r\n $ text        : Factor w\/ 11 levels \"I# introducci\u00f3n. se\u00f1or Presidente, se\u00f1oras y se\u00f1ores Diputados: por designaci\u00f3n de Su Majestad el Rey, comparez\"| __truncated__,..: 1 10 3 9 6 5 2 11 8 7 ...\r\n $ title       : Factor w\/ 11 levels \"D1 1_SUAREZ_30_MARZO_1979\",..: 1 4 5 6 7 8 9 10 11 2 ...\r\n $ chronology  : num  1 2 3 4 5 6 7 8 9 10 ...\r\n $ acronym     : chr  \"Su79\" \"CS81\" \"Gz82\" \"Gz86\" ...\r\n $ name        : Factor w\/ 6 levels \"Aznar\",\"CalvoSotelo\",..: 5 2 3 3 3 3 1 1 6 6 ...\r\n $ politicparty: Factor w\/ 3 levels \"PP\",\"PSOE\",\"UCD\": 3 3 2 2 2 2 1 1 2 2 ...\r\n $ year        : num  1979 1981 1982 1986 1989 ...<\/code><\/pre>\n<p>Here we are interested in the \u201cinvestiture speeches\u201d of the candidates for the presidency of the Spanish government pronounced since the re-establishment of democracy. The date of this re-establishment is generally considered to be that of the referendum for the ratification of the Spanish Constitution, that is to say on December 6, 1978. For the record, the long dictatorship of General Franco ended with his died November 20, 1975 at the age of 83 years.<\/p>\n<p>We present 11 investiture speaches (rows) and 7 variables (columns): &gt; SpanishDisc$text<\/p>\n<p>This texts were taken from the version published in the Diario de Sesiones del Congreso de los Diputados (Journal of Sessions of the Congress of Deputies published by the Spanish Parliament).<\/p>\n<blockquote><p>SpanishDisc$title<\/p><\/blockquote>\n<p>Title defined as factor with the number of the speech, the name of the politician and the date.<\/p>\n<blockquote><p>SpanishDisc$chronology<\/p><\/blockquote>\n<p>The number of the speech defined as a number.<\/p>\n<blockquote><p>SpanishDisc$acronym<\/p><\/blockquote>\n<p>Label with four characters (name of the politician and year) usefull to represent the speech in tables and graphs,<\/p>\n<blockquote><p>SpanishDisc$name<\/p><\/blockquote>\n<p>Name of the politician defined as factor. There are 6 different politicians (Aznar, CalvoSotelo, Gonz\u00e1lez, Rajoy, Su\u00e1rez, Zapatero) and 11 investiture speeches.<\/p>\n<blockquote><p>SpanishDisc$politicparty<\/p><\/blockquote>\n<p>Name of the political party defined as factor. There are 3 different political parties (PP, PSOE, UCD).<\/p>\n<pre><code>\r\n  PP PSOE  UCD \r\n   3    6    2 <\/code><\/pre>\n<blockquote><p>SpanishDisc$year<\/p><\/blockquote>\n<p>The year is defined as numerical variable from 1979 until 2011.<\/p>\n<\/div>\n<\/div>\n<h3>Pretreatment<\/h3>\n<p>In order to preserve the capital letters introduced in the corpus at the moment of their capture by the \u201cDiario de Sesiones del Congreso de los Diputados\u201d and the semantic information they provide, capital letters at the beginning of the sentence have been manually eliminated in the database. Those which are preserved serve, in general, to differentiate homographs. Thus, \u201cGobierno\u201d (the government) is differentiated from \u201cgobierno\u201d (I govern). It will be necessary to specify in the script that it is desired to keep the capital letters.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. The Database Download the database First of all, we must download the SpanishDisc R data file from the following internet URL and save it in our computer: http:\/\/www.xplortext.org\/Rdata\/SpanishDisc.RData Load RData file in R&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-2863","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/xplortext.unileon.es\/index.php?rest_route=\/wp\/v2\/pages\/2863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xplortext.unileon.es\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/xplortext.unileon.es\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/xplortext.unileon.es\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xplortext.unileon.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2863"}],"version-history":[{"count":5,"href":"https:\/\/xplortext.unileon.es\/index.php?rest_route=\/wp\/v2\/pages\/2863\/revisions"}],"predecessor-version":[{"id":2994,"href":"https:\/\/xplortext.unileon.es\/index.php?rest_route=\/wp\/v2\/pages\/2863\/revisions\/2994"}],"wp:attachment":[{"href":"https:\/\/xplortext.unileon.es\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xplortext.unileon.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xplortext.unileon.es\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}