<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dichika</author_name>
  <author_url>https://blog.hatena.ne.jp/dichika/</author_url>
  <blog_title>盆栽日記</blog_title>
  <blog_url>https://dichika.hateblo.jp/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>Rではデータサイズを抑えるためにデフォルトで文字列を因子に変換されることがある。 よく遭遇するのは以下2つのケースなので対応策をメモ read.csv()でcsvを読み込むとき as.is=TRUEとする read.csv(&quot;hoge.csv&quot;, as.is=TRUE) data.frame()で行列等をデータフレームにするとき stringsAsFactors=FALSEとする。 data.frame(matrix, stringsAsFactors=FALSE)</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdichika.hateblo.jp%2Fentry%2F20110222%2F1298372665&quot; title=&quot;data.frameに変換する時文字列が因子になるのを避ける - 盆栽日記&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>2011-02-22 20:04:25</published>
  <title>data.frameに変換する時文字列が因子になるのを避ける</title>
  <type>rich</type>
  <url>https://dichika.hateblo.jp/entry/20110222/1298372665</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
