简体   繁体   中英

write r file to csv — “object not found”

Hello I need to make my R file into a CSV file. I have searched stackoverflow for different methods to accomplish this, but nothing is working. Each time, it says:

Error in is.data.frame(x) : object 'refine_clean' not found

My file is definitely named refine_clean.R. I have linked a screenshot here: R Studio CSV Error Message

Your file is named refine_clean but you have no data.frame or object named refine_clean, which is what write_table and write.csv are looking for.

based on the screen shot, it is not clear what you want to produce. If it is the last object you created ( d5 ), you may want something like this

write.csv(d5, "refine_clean.csv")

您无法将所有文件转换为csv,需要选择对象,例如d5 write.csv(d5,file =“ name_of_the_file”)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM