# NOT RUN {
novelBed <- data.frame(Chr=c(11,18,3),
Start=c(72554673, 62550696, 18148822),
End=c(72555273, 62551296, 18149422),
Gene=c("LOC1", "LOC2", "LOC3"))
# Create a temporary file to where the output of the function is stored
myfile <- file.path(tempdir(), "myLocs.bed")
exportBed(novelBed, file=myfile)
exportBed(novelBed, file=myfile, header=TRUE)
# }
Run the code above in your browser using DataLab