I am trying to read a csv file using read.table() function as follows:
mapfile = "metadata_copy.csv"
map <- read.table(mapfile, header=TRUE, sep=",")
Why is there a < ca > between the two words "biofloc" and technology?
I checked the structure of my table as follows:
dput(map)
structure(list(Sample.Name = c("Sample 1", "Sample 2", "Sample 3",
"Sample 4", "Sample 5", "Sample 6", "Sample 7", "Sample 8", "Sample 9",
"Sample 10", "Sample 11"), Sample.Type = c("type 1", "type 1",
"type 1", "type 1", "type 2", "type 2", "type 2", "type 2", "type 2",
"type 2", "type 2"), Sample.Source = c("Source 1", "Source 1",
"Source 1", "Source 1", "Source 2", "Source 2", "Source 2", "Source 2",
"Source 3", "Source 3", "Source 3"), Aquaculture.Technique = c("Biofloc\xcatechnology",
"Biofloc\xcatechnology", "Earthen pond", "Earthen pond", "Biofloc\xcatechnology",
"Biofloc\xcatechnology", "Earthen pond", "Earthen pond", "Biofloc\xcatechnology",
"Biofloc\xcatechnology", "Biofloc\xcatechnology"), Fish.feed = c("Feed 1",
"Feed 2", "Feed 1", "Feed 2", "Feed 1", "Feed 2", "Feed 1", "Feed 2",
"Feed 1", "Feed 1", "Feed 2")), class = "data.frame", row.names = c(NA,
-11L))
In the structure, the < ca > is shown as \xca.
Please tell me what is this and how can I read the table correctly?
Regards
Hira