## Find where the data is stored (or use your own)
pathToData <- try(system.file("",package="rnaseqWrapper",mustWork=TRUE))
if(class(pathToData) != "try-error"){
## Make sure the data were found before proceeding
## Read in the data
## Note, the files here are compressed,
## but yours do not need to be
testCountData <- mergeCountFiles(paste(pathToData,"/data/",sep=""),".genes.results.txt.gz")
## Display the contents
head(testCountData)
}
## Not run:
# ## On your data, it will look more like:
# mergedCountData <- mergeCountFiles("/path/to/countData")
# head(mergedCountData)
# ## End(Not run)
Run the code above in your browser using DataLab