Displaying 3 results from an estimated 3 matches for "nnam".
Did you mean:
nam
2004 Feb 20
2
passing object names in a vector to save?
Hi!
Like to write quite a lot (ca 100) of objects from my envirovment with save.
The names of the objects are in a list nam.
nam<-dir()
nam<-grep("E",nam,value=T)
length(nam)
20
for(x in nam)
{
#reads the objects and assigns the names.
assign(x,simFromEmboss(Simmatrix(),x))
nnam<-paste(x,".rda",sep="")
print(nnam)
save(x,file=nnam)
}
I knew that it fails. (It saves object x containing a char.)
How to save the objects in separate files not typing each time save(myobj,save="myobj.rda")???
Is there a workaround.
Sincerely Eryk
1999 Nov 12
1
some related problems
...As I understand no
command line parameters are available for that, so instead I tried to pass
the filename to an approbriate .RProfile, which works roughly, BUT
## this is my %R_USER%\.RProfile
im <- read.table("d:/temp/im/temp.csv", header=TRUE, sep=",")
nam <- names(im)
nnam <- nchar(nam)
newnam <- substr(nam, 2, nnam-1) # change names from e.g. <"x"> to <x>
names(im) <- newnam
pairs2(im)
## end
Two lines in this code do not work *during* .RProfile execution, but they
work if entered manually *after* all profile executions:
names(im) &l...
2006 Oct 28
1
Cygwin rsync to RH rsync server
...3567}, NULL) = 0
[pid 26646] open("/etc/resolv.conf", O_RDONLY) = 5
[pid 26646] fstat64(5, {st_mode=S_IFREG|0644, st_size=50, ...}) = 0
[pid 26646] mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f52000
[pid 26646] read(5, "search adventureaquarium.com\nnam"..., 4096) = 50
[pid 26646] read(5, "", 4096) = 0
[pid 26646] close(5) = 0
[pid 26646] munmap(0xb7f52000, 4096) = 0
[pid 26646] open("/etc/host.conf", O_RDONLY) = 5
[pid 26646] fstat64(5, {st_mode=S_IFREG|0644, st_size=17, ...}) = 0
[pid 2664...