Hi,

I have a dataframe for which all columns are numeric but categorical. There
are some missing values as well

Typically, I have CSV file saved in drive, and then read it using read.csv
command

Can I use as.matrix(na.omit(<<my dataframe loaded using read.csv>>)) to
convert such dataframe to matrix?

I there any data loss or change that may occur if I use as.matrix command?

I remember that some experts recommends not to use as.matrix() command to
convert a dataframe to matrix.

Any guidance will be very helpful.

Thanks,

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to