load csv in r code example
Example 1: write csv in r
df <- data.frame(name = c("Jon", "Bill", "Maria"),
age = c(23, 41, 32))
write.csv(df,"C:\\Users\\Ron\\Desktop\\MyData.csv", row.names = FALSE)
Example 2: read csv in r
data <- read.csv("input.csv")
print(data)
Example 3: how to import csv file in r
read.csv("yourdata.csv", sep = ';')