How can I save a list to a file and read it in again (in R)?

前端 未结 2 2063
猫巷女王i
猫巷女王i 2021-02-18 18:30

I´ve estimated a model with the poLCA-package in R and want to save the starting values to a file, so I can re-estimate exactly the same model anytime.

This is a list of

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-18 19:26

    save(starting.values, file="fname.RData")
    ?save
    

    Allows you to save one or more R objects to a single file.

    Load with

    load("fname.RData")
    

提交回复
热议问题