<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>data-science on Luis Puerto</title><link>https://luispuerto.net/archive/tags/data-science/</link><description>Recent content in data-science on Luis Puerto</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><managingEditor>luis@luispuerto.net (Luis Puerto)</managingEditor><webMaster>luis@luispuerto.net (Luis Puerto)</webMaster><copyright>© 2026 Luis Puerto · Content [CC BY-NC-SA 4.0](/license/) · Code MIT</copyright><lastBuildDate>Sat, 24 Nov 2018 19:10:00 +0000</lastBuildDate><atom:link href="https://luispuerto.net/archive/tags/data-science/feed.xml" rel="self" type="application/rss+xml"/><item><title>Cleaning a GeoPackage after merging</title><link>https://luispuerto.net/blog/2018/11/24/cleaning-geopackage-after-merging/</link><pubDate>Sat, 24 Nov 2018 19:10:00 +0000</pubDate><author>luis@luispuerto.net (Luis Puerto)</author><guid>https://luispuerto.net/blog/2018/11/24/cleaning-geopackage-after-merging/</guid><description>&lt;p&gt;The &lt;a href="https://luispuerto.net/blog/2018/11/19/merging-geopackages/" &gt;other day&lt;/a&gt; I was talking about how you can merge several GeoPackages files in a single GeoPackage —just because you wanted or needed that way. Problem is, sometimes some of the data or information that those GeoPackages contain could be redundan. In my particular case, some information was redundan because the GeoPackages contain forest data at stand level that is also at &lt;a href="http://kartat.kapsi.fi/files/karttalehtijako_ruudukko/kaikki/etrs89" target="_blank" rel="noreferrer"&gt;UTM10 Finnish&amp;rsquo;s grid&lt;/a&gt;&lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt; level. Since life is imperfect, some stands are between two grid quadrants, so a decision&lt;sup id="fnref:2"&gt;&lt;a href="#fn:2" class="footnote-ref" role="doc-noteref"&gt;2&lt;/a&gt;&lt;/sup&gt; was made to have them in both —or more&lt;sup id="fnref:3"&gt;&lt;a href="#fn:3" class="footnote-ref" role="doc-noteref"&gt;3&lt;/a&gt;&lt;/sup&gt;— of the quadrants.&lt;/p&gt;</description></item><item><title>Merging GeoPackages</title><link>https://luispuerto.net/blog/2018/11/19/merging-geopackages/</link><pubDate>Mon, 19 Nov 2018 09:35:00 +0000</pubDate><author>luis@luispuerto.net (Luis Puerto)</author><guid>https://luispuerto.net/blog/2018/11/19/merging-geopackages/</guid><description>&lt;p&gt;The other day I had to deal with a problem I haven&amp;rsquo;t dealt before. I have to merge a bunch of &lt;a href="https://www.geopackage.org" target="_blank" rel="noreferrer"&gt;GeoPackages&lt;/a&gt; (.gpkg) containing Finnish Forest data —downloaded from &lt;a href="https://www.metsaan.fi/paikkatietoaineistot" target="_blank" rel="noreferrer"&gt;here&lt;/a&gt; &amp;#x1f1eb;&amp;#x1f1ee; — because they had more sense if they ended up together. The reality is, GeoPackage format is something quite new to me —well, it was approved in &lt;a href="http://www.opengeospatial.org/pressroom/pressreleases/1964" target="_blank" rel="noreferrer"&gt;2014&lt;/a&gt;— since I&amp;rsquo;ve been using ESRI products, where &lt;a href="https://en.wikipedia.org/wiki/Shapefile" target="_blank" rel="noreferrer"&gt;shapefiles&lt;/a&gt; (.shp) are more or less the standard —they are the King 👑— and if you want to go a little bit further you have to use &lt;a href="https://gisgeography.com/geodatabase-personal-file/" target="_blank" rel="noreferrer"&gt;file geodatabases&lt;/a&gt;. From there on you need to step up your game and have a real database engine/server like Oracle &amp;#x1f911;&amp;#x1f911;&amp;#x1f911;, MS SQL &amp;#x1f911;, &lt;a href="https://postgis.net" target="_blank" rel="noreferrer"&gt;PostGIS&lt;/a&gt; &amp;#x1f418; —free and open source &amp;#x1f44d;—​ and some &lt;a href="https://en.wikipedia.org/wiki/Spatial_database" target="_blank" rel="noreferrer"&gt;others&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Why don't I like Facebook anymore?</title><link>https://luispuerto.net/blog/2018/03/21/why-dont-i-like-facebook-anymore/</link><pubDate>Wed, 21 Mar 2018 17:01:12 +0000</pubDate><author>luis@luispuerto.net (Luis Puerto)</author><guid>https://luispuerto.net/blog/2018/03/21/why-dont-i-like-facebook-anymore/</guid><description>&lt;figure&gt;&#10; &lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt="#deletefacebook from [TechCrunch post](https://techcrunch.com/2018/03/19/deletefacebook/)."&#10; width="1390"&#10; height="738"&#10; src="https://luispuerto.net/assets/images/blog/2018/delete-facebook_hu_f3b47000c9566258.png"&#10; srcset="https://luispuerto.net/assets/images/blog/2018/delete-facebook_hu_f3b47000c9566258.png 800w,/assets/images/blog/2018/delete-facebook_hu_29e442d85161959e.png 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://luispuerto.net/assets/images/blog/2018/delete-facebook.png"&#10; /&gt;&#10; &#10; &lt;figcaption&gt;#deletefacebook from &lt;a href="https://techcrunch.com/2018/03/19/deletefacebook/" target="_blank" rel="noreferrer"&gt;TechCrunch post&lt;/a&gt;.&lt;/figcaption&gt;&#10; &lt;/figure&gt;&#10;&lt;p&gt;It&amp;rsquo;s funny, but I was on my way to write this post about why I don&amp;rsquo;t like Facebook anymore and suddenly the Cambridge Analytica &lt;a href="https://news.google.com/news/story/d8ZWQzE76OKMXAMoFhodT8XT5u4oM?ned=us&amp;amp;hl=en&amp;amp;gl=US" target="_blank" rel="noreferrer"&gt;scandal&lt;/a&gt; about Facebook just explode the last weekend. At the moment of writing this post, the front page of Reddit has a good number of posts about the scandal and &lt;a href="https://www.reddit.com/r/technology/" target="_blank" rel="noreferrer"&gt;r/Technology&lt;/a&gt; —&lt;a href="https://luispuerto.net/assets/images/blog/2018/Technology-2018-03-20-10-09-37-UTC.png" &gt;the screenshot&lt;/a&gt;— is full of post about the issue. Not to mention that are also a couple of good posts in &lt;a href="https://www.reddit.com/r/technology/" target="_blank" rel="noreferrer"&gt;r/Politics&lt;/a&gt;, &lt;a href="https://www.reddit.com/r/worldnews/" target="_blank" rel="noreferrer"&gt;r/Worldnews&lt;/a&gt; and &lt;a href="https://www.reddit.com/r/news/" target="_blank" rel="noreferrer"&gt;r/News&lt;/a&gt;. And of course &lt;a href="https://news.google.com/news/story/d8ZWQzE76OKMXAMoFhodT8XT5u4oM?ned=us&amp;amp;hl=en&amp;amp;gl=US" target="_blank" rel="noreferrer"&gt;all over the Internet&lt;/a&gt; too. There is even a hashtag in Twitter —&lt;a href="https://twitter.com/search?q=%20%23DeleteFacebook&amp;amp;src=typd" target="_blank" rel="noreferrer"&gt;#DeleteFacebook&lt;/a&gt;— with an even other hashtags associated —like &lt;a href="https://twitter.com/hashtag/cambridgeanalytics?src=rela" target="_blank" rel="noreferrer"&gt;#cambridgeanalytics&lt;/a&gt;— where people look for advice to delete their data from Facebook accounts and are vowing they are going to delete their accounts. All of this scandal started —I think— with &lt;a href="https://www.theguardian.com/news/2018/mar/17/cambridge-analytica-facebook-influence-us-election" target="_blank" rel="noreferrer"&gt;this article on The Guardian&lt;/a&gt;, where an ex-employee and co-founder of Cambridge Analytica denounced how they harvested information from about &lt;strong&gt;50 million&lt;/strong&gt; of Facebook accounts. Not so much, if you take into account that Facebook has &lt;a href="https://en.wikipedia.org/wiki/Facebook" target="_blank" rel="noreferrer"&gt;2.2. billion of users&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>How I updated the R formula in Homebrew</title><link>https://luispuerto.net/blog/2018/03/19/how-i-updated-the-r-formula-in-homebrew/</link><pubDate>Mon, 19 Mar 2018 15:35:21 +0000</pubDate><author>luis@luispuerto.net (Luis Puerto)</author><guid>https://luispuerto.net/blog/2018/03/19/how-i-updated-the-r-formula-in-homebrew/</guid><description>&lt;p&gt;As I just explained in my &lt;a href="https://luispuerto.net/blog/2018/03/19/updating-to-r-3-4-4-someone-to-lean-on/" &gt;last post&lt;/a&gt;, the last version of R —3.4.4 &amp;ldquo;Someone to Lean on&amp;rdquo;— was rolled out las Thursday and this time I was the one that updated the Homebrew&amp;rsquo;s formula to reflect the new version. I just decided to give it a try and update for first time a Homebrew&amp;rsquo;s formula since no one had updated it yet on Thursday afternoon and this way I would be able to install the new version with &lt;a href="http://brew.sh" target="_blank" rel="noreferrer"&gt;Homebrew&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Updating to R 3.4.4 "Someone to Lean On"</title><link>https://luispuerto.net/blog/2018/03/19/updating-to-r-3-4-4-someone-to-lean-on/</link><pubDate>Mon, 19 Mar 2018 11:56:02 +0000</pubDate><author>luis@luispuerto.net (Luis Puerto)</author><guid>https://luispuerto.net/blog/2018/03/19/updating-to-r-3-4-4-someone-to-lean-on/</guid><description>&lt;p&gt;&lt;del&gt;Just today yesterday&lt;/del&gt; Last Thursday —took me more that I expected to have a moment to &lt;del&gt;write&lt;/del&gt; finish this post— R was updated to 3.4.4 and this new released is called &amp;ldquo;Someone to Lean On&amp;rdquo;, which is —&lt;a href="http://livefreeordichotomize.com/2017/09/28/r-release-names/" target="_blank" rel="noreferrer"&gt;as all the rest are&lt;/a&gt;— a reference to Peanuts comic. These are the released notes:&lt;/p&gt;</description></item></channel></rss>