read.csv() function do in R?read.csv() reads data from a CSV file and loads it into R as a data frame, which is like a table you can work with.
You use the write.csv() function, which writes the data frame to a CSV file on your computer.
read.csv() to prevent R from converting strings to factors?Use stringsAsFactors = FALSE to keep text as plain strings instead of factors.
row.names = FALSE argument do in write.csv()?It tells R not to write row numbers as a separate column in the CSV file.
read.csv() or another function?You should use read.table() with the sep argument, because read.csv() assumes commas as separators.
read.csv()?read.csv() expects commas as the separator by default.
write.csv() prevents writing row names to the file?Setting row.names = FALSE stops row numbers from being saved as a column.
Use stringsAsFactors = FALSE to keep text as strings.
read.table() lets you specify the separator, so use sep = ";" for semicolons.
read.csv() return?read.csv() returns a data frame, which is like a table with rows and columns.
stringsAsFactors argument in read.csv().