Hi, get any of the manuals that are an introduction to R, e.g. from CRAN,
which describe the steps of how to start in R. You can google-search them
too. You will find what it takes to do that in there.

Hints: 

1. R is object oriented. That is, your read.table command creates an object
Wdbc. It does not show you the content of this object unless you call the
object.
2. You have to tell hist() where it has to look for "area". In other words,
hist() does not know that "area" is to be found in "Wdbc". There are
multiple ways to do this. Again, consult an introductory manual.

Other than that I agree with Duncan, your teacher is being paid for helping
you with these very basic problems.

Cheers,
Daniel

-------------------------
cuncta stricte discussurus
-------------------------

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von shradha mukherjee
Gesendet: Tuesday, October 14, 2008 4:37 AM
An: r-help@r-project.org
Betreff: [R] problem using R

Hi ,
I am having serious trouble doing this homework. I am using R for doing the
homework. I am having the following specific problem:
a) when I input the data using the command > Wbdc <-read.table("wdbc.txt") 
I do not see the data.
b) When I want to run histogram using command > hist(area) I get an error
message, Error in hist(area) : object "area" not found.
 
I am attaching the data file I imported to R and a screenshot of the
workspace.
Please help. 
Thanking you
Shradha Mukherjee




      

______________________________________________
R-help@r-project.org 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.

Reply via email to