Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unused arguments while using read.xlsx [duplicate]

Tags:

r

I am new to R, please help :) I am trying to read a file using read.xlsx() (from the package xlsx) in R. I am getting the following error:

Error in read.xlsx("survey_all", stringsAsFactors = F) : 
  unused argument (stringsAsFactors = F)

Why does it say unused argument?

like image 972
th_cy Avatar asked Mar 17 '26 06:03

th_cy


1 Answers

If you're using xlsx library, this should work as you can pass stringsAsFactors = FALSE as an additional argument. However, if you're using openxlsx, then this is not an option.

Details here. Check which library you're using.

like image 195
Arienrhod Avatar answered Mar 19 '26 21:03

Arienrhod



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!