[R] Data Package Query

David Carlson dcarlson at tamu.edu
Thu Jun 27 20:23:36 CEST 2013


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_refai at 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 <dcarlson at tamu.edu>
Date: Thu, 27 Jun 2013 16:03:17 
To: <y_refai at hotmail.com>; <r-help at 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-bounces at r-project.org
[mailto:r-help-bounces at r-project.org] On Behalf Of Yasmine Refai
Sent: Thursday, June 27, 2013 3:03 PM
To: r-help at 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 at 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.



More information about the R-help mailing list