Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のような基本データを持つオブジェクトがありますa<-list(a=1,b="A",c=character())
a<-list(a=1,b="A",c=character())
これを data.frame に変換したいのですが、同じ行が必要です。実行する簡単な方法で空のベクトルを NA で埋める方法はas.data.frame(a)? 私が持っている唯一のアイデアは、リストの1つの要素が長さ<1であるかどうかを尋ねてから設定することelement[1]=NAです。
as.data.frame(a)
element[1]=NA