How to save() with a particular variable name

后端 未结 5 775
花落未央
花落未央 2020-12-01 03:02

I am repeatedly applying a function to read and process a bunch of csv files. Each time it runs, the function creates a data frame (this.csv.data) and uses save

5条回答
  •  猫巷女王i
    2020-12-01 03:36

    My preference is to avoid the name in the RData file on load:

    obj = local(get(load('myfile.RData')))
    

    This way you can load various RData files and name the objects whatever you want, or store them in a list etc.

提交回复
热议问题