<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Posts on Juan Pacheco</title>
    <link>https://juanpacheco.netlify.app/post/</link>
    <description>Recent content in Posts on Juan Pacheco</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 26 Mar 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://juanpacheco.netlify.app/post/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Power BI Dashboard</title>
      <link>https://juanpacheco.netlify.app/post/power-bi-dash/</link>
      <pubDate>Sat, 26 Mar 2022 00:00:00 +0000</pubDate>
      
      <guid>https://juanpacheco.netlify.app/post/power-bi-dash/</guid>
      <description>  This example shows a Dashboard in Power BI using Netflix information 2016-2022.   This example shows a Dashboard in Power BI using Commercial Information.  </description>
    </item>
    
    <item>
      <title>SQL basics</title>
      <link>https://juanpacheco.netlify.app/post/sql/</link>
      <pubDate>Tue, 01 Mar 2022 00:00:00 +0000</pubDate>
      
      <guid>https://juanpacheco.netlify.app/post/sql/</guid>
      <description>SQL SQL - CONCAT FUNCTION SELECT usertype, CONCAT(start_station_name, &amp;#34;to&amp;#34;, end_station_name) AS route, COUNT(*) AS num_trip, ROUND(AVG(CAST(tripduration as int64)/60),2) AS duration, FROM `bigquery-public-data.new_york.citibike_trips` GROUP BY start_station_name, end_station_name, usertype ORDER BY num_trip DESC LIMIT 10    Function Usage Example     CONCAT A function that adds strings together to create new text strings that can be used as unique keys CONCAT (‘Google’, ‘.com’);   CONCAT_WS A function that adds two or more strings together with a separator CONCAT_WS (‘ .</description>
    </item>
    
    <item>
      <title>Data Manipulation</title>
      <link>https://juanpacheco.netlify.app/post/data-manipulation-with-dplyr/</link>
      <pubDate>Thu, 13 May 2021 00:00:00 +0000</pubDate>
      
      <guid>https://juanpacheco.netlify.app/post/data-manipulation-with-dplyr/</guid>
      <description>R Packages we gonna use dplyr, ggplot2, plotly, readxl and knitr in this example.
Functions that were used:
read_excel(): for read excel files.
filter(): in order to make subsets of our data.
mutate(): To create new variables.
as.factor(): To convert a variable in factor.
glimpse similar to str(): applied to a dataframe.
group_by(): takes an existing tbl and converts it into a grouped tbl where operations are performed “by group”.</description>
    </item>
    
    <item>
      <title>ggplot2 Graphics</title>
      <link>https://juanpacheco.netlify.app/post/ggplot/</link>
      <pubDate>Sat, 08 May 2021 00:00:00 +0000</pubDate>
      
      <guid>https://juanpacheco.netlify.app/post/ggplot/</guid>
      <description>We gonna use dplyr, gapminder, RColorBrewer, ggplot2 libraries in this example.
Let’s load gapminder data frame and see colnames.
data(&amp;quot;gapminder&amp;quot;) colnames(gapminder) ## [1] &amp;quot;country&amp;quot; &amp;quot;continent&amp;quot; &amp;quot;year&amp;quot; &amp;quot;lifeExp&amp;quot; &amp;quot;pop&amp;quot; &amp;quot;gdpPercap&amp;quot; gapminder is a data frame with 9 variables and more than 10 thousand observations. In variables we have country names, continent, year, life expectancy, population and gross domestic product per capita.
gapminder %&amp;gt;% head() ## # A tibble: 6 x 6 ## country continent year lifeExp pop gdpPercap ## &amp;lt;fct&amp;gt; &amp;lt;fct&amp;gt; &amp;lt;int&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;int&amp;gt; &amp;lt;dbl&amp;gt; ## 1 Afghanistan Asia 1952 28.</description>
    </item>
    
    <item>
      <title>Introduction to Financial time series in R</title>
      <link>https://juanpacheco.netlify.app/post/2021-05-08-introduction-to-financial-time-series-in-r/</link>
      <pubDate>Sat, 08 May 2021 00:00:00 +0000</pubDate>
      
      <guid>https://juanpacheco.netlify.app/post/2021-05-08-introduction-to-financial-time-series-in-r/</guid>
      <description>Financial series This post brings a quick overview of financial series in R. It’s common analyze time series in advanced economics or finance courses. Some courses and depending of university use a particular software for this purpose, from Excel to high-level programming languages like Stata, R or Python. In this case, I’m going to show how to get the financial series from Yahoo Finance by two methods. First, I’ll do it within a long code using quantmond library, after that I gonna use tidyquant library to reduce the previous code and automatize it.</description>
    </item>
    
    <item>
      <title>Visualizing Time Series Data: Case Argentina </title>
      <link>https://juanpacheco.netlify.app/post/argentina/</link>
      <pubDate>Sat, 08 May 2021 00:00:00 +0000</pubDate>
      
      <guid>https://juanpacheco.netlify.app/post/argentina/</guid>
      <description>#packages for (x in c(&amp;quot;dplyr&amp;quot;, &amp;quot;ggplot2&amp;quot;,&amp;quot;readxl&amp;quot;,&amp;quot;plotly&amp;quot; ,&amp;quot;psych&amp;quot;, &amp;quot;ggfortify&amp;quot;)) { library(x, character.only = TRUE) }  Macroeconomic variables datos&amp;lt;- read_excel(&amp;quot;/Users/Juan Alfredo.DESKTOP-ETJ31JC/Documents/Universidad/Termino 2020 2S/R Samples/Pagina/PIB Argentina_1.xlsx&amp;quot;) dt&amp;lt;- datos[,c(2,4,10,13)] dt %&amp;gt;% mutate(m= import/PIB) %&amp;gt;% mutate(x= export/PIB) ## # A tibble: 114 x 6 ## PIB import export ITCRM m x ## &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt; ## 1 391657. 55833. 45376. NA 0.143 0.116 ## 2 437818.</description>
    </item>
    
  </channel>
</rss>
