R: Unusual output from write.table

264 views Asked by At

I am trying to export my simple data frame into a .txt file. My data frame BridgeGateHourlyDirection looks like:

6 columns

I used the statement below

write.table(BridgeGateHourlyDirection, "X:/Maria/Trends/BridgeGateHourlyDOWDirection.txt", sep="\t",row.names=FALSE, quote=FALSE, eol="\n",na="NA",dec=".")

The output looks to be quite unusual and is not readable containing c(). It looks like this: text file output

Has anyone experienced this before and found a solution?

sapply(BridgeGateHourlyDirection,class)
        Year        Month         Hour     DayClass        EBTot        WBTot 
   "integer"    "integer"    "integer"  "character" "data.frame" "data.frame" 

Thank you!

0

There are 0 answers