install.packages("readr")
setwd("~/Desktop/R_programing")
library(readr)
test <- read.delim(file='inpatient.tsv',header=TRUE, sep="\t")
test
colnames(test) [3:4] <- c("COL3","COL4")
write.delim(test, file = "result.tsv")
help.search("write.delim")
Here is my code, the function read.delim works fine however the line write.delim throws an error:
could not find function "write.delim"
What could be wrong?