How to export R results to Excel

write_xlsx(as.data.frame(result$p), path = "results.xlsx")
2 Likes

Dear @andresrcs
Thanks for the help. Now it works and I got what I wanted. I successfully exported both results about P value and correlations.
Many thanks dear Sir.

You're welcome, but for future posts, please have in mind that been to pushy about asking others for work in your specific code could be considered impolite.

3 Likes

Dear Andrés Castro Socolich,
I will take care of these points in future. Many thanks for being so helpful, Sir.
Respectfully,
Umar

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.