<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>komatsuna4747</author_name>
  <author_url>https://blog.hatena.ne.jp/komatsuna4747/</author_url>
  <blog_title>何か書く</blog_title>
  <blog_url>https://komatsuna4747.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>Rでdata frameの特定の列に対してある処理を施すとき、私はdplyr::mutate_atやdplyr::mutate_ifをよく使用している。 例えば、本来はnumeric型であるべき列がcharacter型となっているとき、それらの列を全てnumeric型に戻したいときがある。 以下は逆に、dplyr::mutate_ifを用いてnumeric型のものを全てcharacter型にする。 library(magrittr) iris %&gt;% dplyr::mutate_if(.predicate = is.numeric, as.character) %&gt;% tibble::as_t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkomatsuna4747.hatenablog.com%2Fentry%2F2020%2F11%2F04%2F001707&quot; title=&quot;dplyr::acrossを使ってみる - 何か書く&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>2020-11-04 00:17:07</published>
  <title>dplyr::acrossを使ってみる</title>
  <type>rich</type>
  <url>https://komatsuna4747.hatenablog.com/entry/2020/11/04/001707</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
