You can specify a package that exists, for example, datasets. You
can use the data() function instead of the Data() function which
does not exist. You could read one of the many, fine tutorials about
R:

http://cran.r-project.org/other-docs.html

David

-----Original Message-----
From: Yasmine Refai [mailto:y_re...@hotmail.com] 
Sent: Thursday, June 27, 2013 11:11 AM
To: David Carlson 
Subject: Re: [R] Data Package Query

The same lines as what you typed below and I am getting the same
error as what you mentioned below. So what I can do to overcome that
problem?
Sent using BlackBerryR from mobinil

-----Original Message-----
From: David Carlson <dcarl...@tamu.edu>
Date: Thu, 27 Jun 2013 16:03:17 
To: <y_re...@hotmail.com>; <r-help@r-project.org>
Subject: RE: [R] Data Package Query


You need to copy the lines you have typed in to R and send them
exactly. The only way I get an error message like the one you
indicate is with the following:

> library(data)
Error in library(data) : there is no package called 'data'
>

There is no Data function in R so if you typed that you would get

> Data(Titanic)
Error: could not find function "Data"

So what did you really type?

-------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77840-4352

-----Original Message-----
From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org] On Behalf Of Yasmine Refai
Sent: Thursday, June 27, 2013 3:03 PM
To: r-help@R-project.org
Subject: [R] Data Package Query

Hello,

When i type in the below syntax:
Data (name of the data set)

I get an error message specifying that the "data" package is not
found.

Please note that i installed all packages having the word "data"
included in them and loaded all these packages.

Please advice.

Regards!
______________________________________________
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.

______________________________________________
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