R read csv file as dataframe code example Example: read csv file in r data <- read.csv("input.csv") print(data)