如何将文件名设置为变量中的数据(在 R 中)?

how do you set the name of the file as data from a variable (in R)?

如何将文件名设置为变量中的数据?例如在 for 循环中创建文件(因此当使用新数据创建下一个文件时它不会被覆盖)

例如:

对于write.table中的参数,这样做

file = paste0("C:\Users\my-PC\Dropbox\Data mining\", instruments, ".csv")