[R] Load R data files
abouelmakarim1962 at gmail.com
Tue Sep 12 21:26:33 CEST 2017
It was saved, but there was a space somewhere. So it works for me now.
I do have another similar problem.
I saved an R data file
*The new R data file "*datahs0csv2.rda*" is in the directory.*
I tried to load the file "" to R, but I got an error message. Please see
It seems for me that the file was loaded to R. But when I typed the data
name, it says that the not found.
*Error: object 'datahs0csv2' not found*
with many thanks
On Tue, Sep 12, 2017 at 2:53 PM, Ulrik Stervbo <ulrik.stervbo at gmail.com>
> Hi Abou,
> You haven't saved the datahs0csv.
> When you are done manipulating datahs0csv you can use save(datahs0csv,
> file = 'datahs0csv.rda'). Then you should be able to load the data.
> On Tue, 12 Sep 2017, 20:46 AbouEl-Makarim Aboueissa <
> abouelmakarim1962 at gmail.com> wrote:
>> Dear All:
>> I am trying to load an R data set, but I got the following message. Please
>> see below. The file is there.
>> datahs0csv <- read.table("hs0.csv", header=T, sep=",")
>> Then I tried to reload the data, but I got this error message. I am not
>> sure what was wrong.
>> *> load("datahs0csv.rda")*
>> Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
>> In addition: Warning message:
>> In readChar(con, 5L, useBytes = TRUE) :
>> cannot open compressed file 'datahs0csv.rda', probable reason 'No such
>> file or directory'
>> Any help will be appreciated.
>> with thanks
>> AbouEl-Makarim Aboueissa, PhD
>> Professor of Statistics
>> Department of Mathematics and Statistics
>> University of Southern Maine
>> [[alternative HTML version deleted]]
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> PLEASE do read the posting guide http://www.R-project.org/
>> and provide commented, minimal, self-contained, reproducible code.
AbouEl-Makarim Aboueissa, PhD
Department of Mathematics and Statistics
University of Southern Maine
[[alternative HTML version deleted]]
More information about the R-help