<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chito_ng</author_name>
  <author_url>https://blog.hatena.ne.jp/chito_ng/</author_url>
  <blog_title>まずは蝋の翼から。</blog_title>
  <blog_url>https://knknkn.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>使い方メモ(ライブラリ)</anon>
    <anon>使い方メモ(不便解決)</anon>
  </categories>
  <description>Rのglue::glue()を使うと、{}で囲った変数名に応じた変数で補完した文字列が生成される。 library(glue) for (i in 1:3){ print(glue('hoge{i}')) } # =&gt; # hoge1 # hoge2 # hoge3 glueを利用して、動的にファイルを作成する。以下では、irisをspecies毎に分けたggplotの結果を、speciesに応じたファイル名にして保存している。 library(tidyverse) library(glue) df = iris %&gt;% as_tibble() plot_wrapper = function(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fknknkn.hatenablog.com%2Fentry%2F2019%2F05%2F01%2F121459&quot; title=&quot;glue::glue()による動的なファイル名/クエリの生成 - まずは蝋の翼から。&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-05-01 12:14:59</published>
  <title>glue::glue()による動的なファイル名/クエリの生成</title>
  <type>rich</type>
  <url>https://knknkn.hatenablog.com/entry/2019/05/01/121459</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
