Johanna Bjenne
Johanna Bjenne

Reputation: 1

Reading files into R

I have problems when reading a file of performance into R. Is there any example files so I know how to name the rows/columns? The data I have is; fund name (207), year, month and performance. I have saved the file as csv but R does´t seem to understand the format. Thanks in advance! /Johanna

Upvotes: 0

Views: 51

Answers (1)

MKMohanty
MKMohanty

Reputation: 966

Use following syntax:

setwd("D:/Your Directory")
# Load CSV data
fund <- read.csv(
  file = "YourFile.csv",
  quote = "\"")

#Peek data
head(fund)

Upvotes: 1

Related Questions