Please ask a reprex when asking a question in this community.
Now we have to guess which version of read.csv
you are using.
If it is utils::read.csv
then you can check the documentation by typing:
? read.csv
There you see that the ...
arguments (i.e. all that are not explicitly mentioned under read.csv
) are passed to the read.table
function. Looking there, we see that there is no argument stringsasFactors
.
However the argument stringsAsFactors
exists. In R variable names are case sensitive.