Hi Martin: good morning
Thank you very much for your detailed explanation. Got it now.
With many thanks
Abou
On Tue, Sep 26, 2023, 3:24 AM Martin Maechler
wrote:
> > Jeff Newmiller via R-help
> > on Mon, 25 Sep 2023 18:46:02 -0700 writes:
>
> > You never created any object in
Hi Shu: good morning
Thank you very much for your detailed explanation. Got it now.
With many thanks
Abou
On Mon, Sep 25, 2023, 9:39 PM Shu Fai Cheung
wrote:
> Hi,
>
> You can try this:
>
> head(irisdata)
>
> Objects loaded by load() keep their names when being saved. In your
> case, it is '
Hi Jeff: good morning
Thank you very much for your detailed explanation. Got it now.
With many thanks
Abou
On Mon, Sep 25, 2023, 9:46 PM Jeff Newmiller
wrote:
> You never created any object in R called irisdataTest. Objects in the
> global environment have names that are unrelated to the nam
> Jeff Newmiller via R-help
> on Mon, 25 Sep 2023 18:46:02 -0700 writes:
> You never created any object in R called irisdataTest. Objects in the
global environment have names that are unrelated to the names of files on disk.
> The load function modifies an environment to crea
You never created any object in R called irisdataTest. Objects in the global
environment have names that are unrelated to the names of files on disk.
The load function modifies an environment to create a variable named as it was
named in the environment from which it was saved. Thus, you cannot
Hi,
You can try this:
head(irisdata)
Objects loaded by load() keep their names when being saved. In your
case, it is 'irisdata'.
You can also use verbose = TRUE to show the names of objects loaded:
load(file = "irisdataTest.RData", verbose = TRUE)
Hope this helps.
Regards,
Shu Fai
On Tue, S
Dear ALL:
I am teaching statistical packages class this semester, in R programing I
am trying to explain the use of save() and load() with an example using the
iris data. It seems that the save() function works, BUT when I tried to
load the data back to R, it seems that there is a problem(s), I co
Hi,
Check also saveObject() and loadObject() from R.utils:
library(R.utils)
outfilenames<- paste ("./file", 1:numFiles, '.Rbin', sep="")
for ( i in 1:10) {
dataFile = read.table (filenames[i], header=TRUE, sep='\t');
saveObject (dataFile, file = outfilenames[i])
}
And then:
file1 = loadObj
Thanks Jeff and Duncan
Assign worked for me. I did not check the other methods suggested by you. I
am repreducing my code below:
##
filenames = list.files(path = ".", pattern = '.txt$', all.files = FALSE,
full.names = TRUE, ignore.case = FALSE) #all input files
numFiles = length
On 11-06-19 10:26 AM, Mary Kindall wrote:
I have a list of txt files that I want to convert into .rdata R data
object.
filenames
1. "./file1.txt"
2. "./file2.txt"
3. "./file3.txt"
4. "./file4.txt"
5. "./file5.txt"
6. "./file6.txt"
7. "./file7.txt"
8. "./file8.txt"
9. "./file9.txt"
10. "./file10.
I have a list of txt files that I want to convert into .rdata R data
object.
filenames
1. "./file1.txt"
2. "./file2.txt"
3. "./file3.txt"
4. "./file4.txt"
5. "./file5.txt"
6. "./file6.txt"
7. "./file7.txt"
8. "./file8.txt"
9. "./file9.txt"
10. "./file10.txt"
I saved these files as
for ( i in 1:1
Thanks David! I got a solution, though maybe not optimal. In the zzz.r file
of the R package, I include the folloing code:
.onLoad <- function(libname,pkgname) {
myoptions <- list(ngs.python="sage -python",ngs.macs="macs14")
if(exists("myoptions",.GlobalEnv))
options(.GlobalEnv$my
On May 6, 2011, at 8:59 PM, xwang14 wrote:
Hi,
Could anyone help me with the following problem? After I finished a R
session and modified some options (for example, set
options(editor="neditor")), I want save these modifications so that
after I
load the saved R data I do not need to modify t
Hi,
Could anyone help me with the following problem? After I finished a R
session and modified some options (for example, set
options(editor="neditor")), I want save these modifications so that after I
load the saved R data I do not need to modify these options again. What is
the best way to do th
Hello,
I get the same message when I write the attach function, where is that you
change the user quota?
I use R with mac OS
Thanks.
Hongxiao Zhu wrote:
>
> Hi,
>
> I finally figured out where the problem is. It was because the
> user account has a 10GB quota for the systerm that I used.
>
Hi,
I finally figured out where the problem is. It was because the
user account has a 10GB quota for the systerm that I used.
Once the space limit is reached, R will have this error whenever you
want to save or load.
Gosh! It took me so long to realize this.
Hongxiao
***
Sounds like you are having permissions problems. And as you're using a
mix of Unix and WinXP, you might be suffering from some strange
permissions settings. WinXP allows a very rich set of permissions which
for many exotic combinations have no corresponding mapping to the much
simpler 9-octet
Tony,
Thanks for return. Actually, the data object 'junk4.RData' was created but
have size 0. It seems no data was saved. But the real data that I
want to load have data in it, which I can't load use my own user account.
But if using other people's user account under the same system, it can be
Did you check whether 'junk4.RData' was created and what its length was
- maybe an empty file is being created. Is there some sort of quota or
permissions problem? My suggestion would be to look at the size and
permissions on the directory and the file. If you need more help, I
would suggest
Hi,
I tried to load a .RData object on unix system using R, it gives error:
Error: restore file may be empty -- no data loaded
In addition: Warning message:
file 'junk3.RData' has magic number ''
Use of save versions prior to 2 is deprecated
This happens only for using MY user account for th
20 matches
Mail list logo