www.crosshyou.info

政府統計の総合窓口のデータや、OECDやUCIやのデータを使って、Rの練習をしています。ときどき、読書記録も載せています。

2023-07-01から1ヶ月間の記事一覧

都道府県別の医療施設調査の病院数のデータ分析2 - Rで棒グラフや散布図を描く。相関関係の検定をcor.test()関数で行う。

UnsplashのJoseph Chanが撮影した写真 www.crosshyou.info の続きです。 前回は、CSVファイルのデータをRのread_csv()関数で読み込み、summary()関数で平均値などの統計値を見ました。 1999年から病院の数は減り続けていることがわかりました。 そして、病院…

都道府県別の医療施設調査の病院数のデータ分析1 - RにCSVファイルのデータを 読み込む。

Unsplashのaboodi vesakaranが撮影した写真 今回は都道府県別の医療施設調査のデータを分析してみます。 政府統計の総合窓口(www.e-stat.go.jp)のウェブサイトからCSVファイルをダウンロードしました。 このようなCSVファイルです。年ごとの病院数と、2019年…

読書記録 - 「ドキュメント 豪雨災害 - そのとき人は何を見るか」 稲泉 連 著 (岩波新書)

ドキュメント 豪雨災害-そのとき人は何を見るか (岩波新書) 作者:稲泉 連 岩波書店 Amazon 2014年に出版の本です。2011年の台風12号で被災した、奈良県十津川村の様子が第1章、和歌山県那智勝浦町の様子が第2章、そして台風12号からは離れて、首都圏の水害…

OECD Crop production data analysis 9 - ANOVA(ANalysis Of VAriance) analysis with "infer" package using R

UnsplashのAnisur Rahmanが撮影した写真 www.crosshyou.info This post is followoing of the above post. In this post I will do ANOVA analysis with "infer" package using R. I would like to see crop production are different by crop, maize, rice,…

OECD Crop production data analysis 8 - Hierarchical Clustering using R

UnsplashのDustin Humesが撮影した写真 www.crosshyou.info This post is following of the above post. In this post, I will do Hierarchical Clustering using R. First, I make a matrix for clustering. I start with subsetting only year 2020 data. …

OECD Crop production data analysis 7 - time series data analysis using R - creating "ts" class object and visualize with TSstudio package.

UnsplashのMelanie Kreutzが撮影した写真 www.crosshyou.info This post is following of the above post.I will see time-seires trend of productivity of crop production data in this post. I refrer to Hands-On Time Series Analysis with R: Perform…

OECD Crop production data analysis 6 - correlation matrix and scatter plots matrix using R

UnsplashのOchir-Erdene Oyunmedegが撮影した写真 www.crosshyou.info This post is following of the above post. In this post, I will analyze correlations of vatiables. Let's begin with crop field area. I can use cor() function to see correlati…

読書記録 - 「脱炭素投資入門 (日経ムック)」日経BP 日本経済新聞出版 協力:三井住友トラスト・アセットマネジメント

脱炭素投資入門 (日経ムック) 日経BP 日本経済新聞出版 Amazon おそらく、三井住友トラスト・アセットマネジメントの「脱炭素関連 世界株式戦略ファンド」を宣伝するためのMOOKだと思いますが、脱炭素(CO2やメタンなどの温室効果ガス(GHG)の排出量と吸収量を…

OECD Crop production data analysis 5 - Using pivot_wider(), select() and rename() function to make a new "wider format" data frame.

UnsplashのSina Baharが撮影した写真 www.crosshyou.info This post is followiing of the above post. In this post, I will make wider format data frame from "df" data frame object. First, let's see "df" data frame. I see SUBJECT variable has 4 …

OECD Crop production data analysis 4 - crop productivity ranking using R

www.crosshyou.info This post is following of the above post. In this post, I will make crop productivity ranking by country. Crop productivity is "crop volume / crop field area", it is measured as TONNE_HA. Let's start with MAIZE. ISR(Isra…

OECD Crop production data analysis 3 - crop volume ranking using R ggplot() + geom_boxplot(). China is only one country which are in top 4 countries for all crops.

UnsplashのSpenser Sembratが撮影した写真 www.crosshyou.info This post is following of the above post.The above post is ti make crop field are ranking. In this post, I will make crop volume ranling by location. First, MAIZE. USA, China, Bras…

読書記録 - 「モンスーンの世界 日本、アジア、地球の風土の未来可能性」 安成 哲三 著 中公新書

モンスーンの世界 日本、アジア、地球の風土の未来可能性 (中公新書) 作者:安成哲三 中央公論新社 Amazon 西はインドから東は日本までのアジア地域一帯をモンスーンアジアと呼んで、この地域の気候、風土、文化などを学際的に解説している地理の教科書といっ…

OECD Crop production data analysis 2 - crop field area ranking using R visualization tool

UnsplashのMack Songが撮影した写真 www.crosshyou.info This post is following of the above post.In the previous post, I imported CSV file data into R. Then, let's visialize those data. First, let's see each 4 kinds of crops field area. Let's…

OECD Crop production data analysis 1 - Import CSV file into R using read_csv() function. MAIZE has the largest cropfields and volume.

UnsplashのMelissa Askewが撮影した写真 In this post, I will analyzie OECD Crop production data. Firstly, I downloaded data from "OECD (2023), Crop production (indicator). doi: 10.1787/49a4e677-en (Accessed on 01 July 2023)" I use R to analy…