Simplified dput() in R

后端 未结 7 1063
深忆病人
深忆病人 2020-12-02 15:24

I miss a way to add data to an SO answer in a transparent manner. My experience is that the structure object from dput() at times confuses inexperi

7条回答
  •  遥遥无期
    2020-12-02 16:12

    You could simply write to a compressed connection.

    gz <- gzfile("foo.gz", open="wt")
    dput(Df, gz)
    close(gz)
    

提交回复
热议问题