[R] Reading data
dwinsemius at comcast.net
Wed Oct 28 15:32:42 CET 2009
On Oct 28, 2009, at 10:04 AM, Val wrote:
> Hi User's,
> This might be a simple question but it is giving me a hard time as I
> am a
> new user.
> I installed R version 2.9.2 (2009-08-24)
> 1. I just copied a short script from Fox (2002) as a practice and
> to save it as Rossi.R.
> The system saved it without complain but when I looked at using a
> explorer it is not *.R file but only Rossi. Why this is happening?
If you were to include the code, we perhaps could tell you. In its
default mode Windows may be hiding the extension from you. (Or
possibly because R does not postpend file types and (I am now guessing
here about a package I have not used and don't even know if you are)
neither does Rcmdr.)
> 2. the script and the data files are in the same working directory.
> When I
> run the following script
>> Rossi <- read.table('Rossi',header=T)
No path specification. And ??? thought you said it was a script, which
would have been loaded with source()
But this suggests you are using it as data. ????
What do you get when your type this:
Maybe if you tried (untested)... Nah ... not going to do further
guessing. Read the posting guide and supply the missing elements.
> I got the following error messages
> Error in file(file, "r") : cannot open the connection
> In addition: Warning message:
> In file(file, "r") : cannot open file 'Rossi': No such
> file or
> Error: object 'Rossi' not found
> Thank you for your help in advance
David Winsemius, MD
West Hartford, CT
More information about the R-help