If there is a header in your .txt-file you should have header=TRUE, if there
is no header you should have header=FALSE.
You have to save your dataset in a variable, for example:
myData<-read.table("data.txt",header=TRUE)
Then you can make a histogram by:
hist(myData)
--
View this message in context:
http://r.789695.n4.nabble.com/reading-header-in-txt-file-and-making-histogram-tp4504813p4505896.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.