Export file to excel

Hi,

I trying export a file to excel:

###Test chi
Test_Chi_Ed<-chisq.test(Base_1$dev_bed,Base_1$education)
#Resultado
Test_Chi_Ed
#Tablas
Test_Chi_Ed$observed
Test_Chi_Ed$expected
#Exportar a excel
write.xlsx(Test_Chi_Ed$observed_Ed,"chiobserved_Ed.xlsx")
write.xlsx(Test_Chi_Ed$expected_Ed,"chiexpected_Ed.xlsx")

The files are in the folder of my project, however, when I open them, they don't have information. They are in blank.

write.xlsx(Test_Chi_Ed$observed_Ed,"chiobserved_Ed.xlsx")

Notice that you added _Ed to the end of Test_Chi_Ed$observed. Try

write.xlsx(Test_Chi_Ed$observed, "chiobserved_Ed.xlsx")
1 Like

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.