write.csv

write.csv(ChickWeight,"ChickWeight.csv",row.names = FALSE)

write.table

write.table(ChickWeight,"ChickWeight2.csv",row.names = FALSE,sep = ",")

Visualisation

hist(ChickWeight$weight ,breaks = 30, col=rgb(0.2,1,1,0.8), border = F, main = c("Histogram of Chick Weight","Right Skewed"),xlab = "Chick Weight")

Note: By default, the write.csv and write.table functions create an extra column in the file containing the observation numbers. To prevent this, set the row.names argument to F.

—End Of the Document—

Thank You