Read.csv function and setting 'stringsasfactors'

Hello,
How would I go about setting stringsasfactors to FALSE using a read.csv function? I know that the stringsasfactors is in data.frame. How do the two relate to each other?
This is what I was tasked with:
R users, use the read.csv() function and make sure to set the stringsAsFactors argument to FALSE.
Thank you

read.csv treats character valued variables as factors, unlike dplyr::read_csv.

One of the arguments to read.csv controls this, and the default value is TRUE. See help(read.csv) for detail.

Hey,

please have a look on the homework policy for future questions. You can solve your question if you read the documentation of read.csv() in R, just type ?read.csv in the console and you will find what you need.

Kind regards

This topic was automatically closed 42 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.