You really need to read one of many beginners guides to R; but I will say
this much:
YOUR_DATA <- read.table("nigeria slr misc/Nigeria India /DBHHISTOGRAM.txt",
header=TRUE)
then you should be able to plot it like I said previously.
If that still doesn't work, you need to read the posting guide
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 co
this is what I do, IT READS THE TABLE, But then I am stuck, I removed the
header
read.table("nigeria slr misc/Nigeria India /DBHHISTOGRAM.txt", header=FALSE)
hist("nigeria slr misc/Nigeria India /DBHHISTOGRAM.txt"$V1)
Error in "nigeria slr misc/Nigeria India /DBHHISTOGRAM.txt"$V1 :
$ operator i
Please provide your code as is requested in the posting guidelines.
At a guess, you have read in your data into a data.frame called dhb with a
variable called dhb.
Try hist(dhb$dhb) and see what happens.
To see a bit more of what you've got try
str(dhb) to see what the sdtructure of the data is
dbh is the column name. What is the name of your data?
Lets assume your data is called "YOUR_DATA"
then try:
with(YOUR_DATA, hist(dbh))
OR
hist(YOUR_DATA$dbh)
OR
hist(YOUR_DATA[, "dbh"])
etc...
bamboohydraulics wrote
>
> Dear all
>
> I am a BEGINNER and have R on my Mac. I saved my
5 matches
Mail list logo