# to store in the current directory write.csv(data, "data.csv") # to store in a separate directory write.csv(data, "file_pathdata.csv")