Question: how to export data from r to csv file?
Answer: The 'write.csv( )' command can be used to save an R data frame as a .csv file. ...  > healthstudy <- cbind(healthstudy,weight.kg,agecat) Use the 'write.csv( )' command to save the file: > write.csv(healthstudy,'healthstudy2.csv') The help() function in R provides details for the different R commands. ...  > help(read.csv)