[R] problem using R
Daniel Malter
daniel at umd.edu
Tue Oct 14 15:10:14 CEST 2008
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: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Im
Auftrag von shradha mukherjee
Gesendet: Tuesday, October 14, 2008 4:37 AM
An: r-help at 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
More information about the R-help
mailing list