I have a file in R , and I do write.csv () but when I go to my desktop and I open the csv file I get data from three columns deleted


The data where is said character is the one that gets deleted and just comes Na , I also tried to loaded in excell extention but it gives me the next error

library(xlsx)
Error: package or namespace load failed for ‘xlsx’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry

Hi @MALVIS,
You don't need to install any extra packages to be able to write a dataframe to a simple .CSV file on disk.
Its likely that you have some errors in your R code, and that is why you are getting some columns
containing only NA missing values.

Can you post some a sample of the data and the code that you are trying to run? See the "posting guide" of this Forum on how to produce and post a simple Reproducible Example ("reprex").
https://community.rstudio.com/t/welcome-to-the-rstudio-community/8