similar to: Multiple plots via sapply or lapply?

Displaying 20 results from an estimated 10000 matches similar to: "Multiple plots via sapply or lapply?"

2012 Jan 17
2
How to loop on file names
Dear all, I need to do the same procedure on several files. But I don't know how to refer to the file name. Here is an example of what I am trying to do. List of files: file1(A,B,C, D1...Dn), file2(A,B,C,E1,...,En), file3(A,B,C,F1,...,Fn) Procedure I want to apply on each file: dft <- melt(df,id=c('A','B','C')) dft$X <- substr(dft$variable,1,3) dft$Y <-
2009 Feb 19
2
read.table : how to condition on error while opening file?
Hi, I'm using read.table in a loop, to read in multiple files. The problem is that when a file is missing there is an error message and the loop is broken; what I'd like to do is to test for the error and simply do "next" instead of breaking the loop. Anybody knows how to do that? Example: filelist <- c("file1.txt", "file2.txt",
2007 Feb 15
1
sapply and its return value
Hello, I have some problems with sapply. I wanted to do the following: s <- sapply(filelist, function(x) { if(file.exists(x)) { ... return( list(density(file$V1)$x, density(file$V1)$y)) } else { print(paste("plotDensity ERROR - File does not exist: ",x,sep="")) return( NULL) } }) if(is.null( - ??? - )) { print("no plot") } That
2003 May 09
3
rsync of symbolic links bug
I am seeing a problem with the way the rsync of symbolic links is done. Here is a simple example to duplicate this issue: prompt> # Create a test case to show rsync of symbolic link problem prompt> mkdir foo bar prompt> touch foo/file1 bar/file2 prompt> ln -s bar/file2 file prompt> rsync -av . ../duplicate building file list ... done created directory ../duplicate ./ bar/
2013 Jul 01
1
[PATCH v2] xfstests: btrfs/316: cross-subvolume sparse copy
This testscript creates reflinks to files on different subvolumes, overwrites the original files and reflinks, and moves reflinked files between subvolumes. Originally submitted as testcase 302, changes are made based on comments from Eric: http://oss.sgi.com/archives/xfs/2013-03/msg00231.html Two new common/rc functions used in this script (_require_cp_reflink and _verify_reflink) have been
2015 Sep 03
1
Doubts on incremental backup and command repetition
Hi, I am trying to use rsync for incremental backup and I am facing some issues. I would like to ask your help to understand what is going on and have the proper command line. 1) my goal is I the following folders: ./dest: file3.txt ./orig: file1.txt   file10.txt  file2.txt   file20.txt And I would like to have as incremental backup ./dest: backup      file1.txt     file2.txt  file3.txt
2010 Jan 29
2
[LLVMdev] Redefining function
Hi everybody. I've just started learning about LLVM and didn't get too far studying the core. I couldn't find the solution to my problem (if it has one) in the mailing list or the source code. The problem is: how can I redefine a function that's been called already by some other function? Suppose I have 3 files, all compiled to bytecode through llvm-gcc (I think it could be clang
2013 Jul 02
6
[PATCH v3] xfstests: btrfs/316: cross-subvolume sparse copy
This testscript creates reflinks to files on different subvolumes, overwrites the original files and reflinks, and moves reflinked files between subvolumes. Originally submitted as testcase 302, changes are made based on comments from Eric: http://oss.sgi.com/archives/xfs/2013-03/msg00231.html Two new common/rc functions used in this script (_require_cp_reflink and _verify_reflink) have been
2008 Apr 24
0
[LLVMdev] Compile units in debugging intrinsics / globals
Hi, > Suppose I have the following source: > > file1: > #include "file2" > #include "file3" > int fn1(void) ... > > file2: > int a; > > file3: > int fn2(void) ... > > then fn1, along with all the base types etc appear to be in compile unit > "file1", the variable a appears to be in compile unit
2011 Jun 19
1
save and load in R
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
2009 Nov 13
1
Utility function to rotate log files?
I am wondering if there is a CRAN package that includes a utility function that will "rotate" file names, in the same sense that operating systems sometimes rotate log files. Or maybe there's something in base R. That is, we have a set of file names, say file1, file2, file3, and when the function is called, file3 is deleted, file2 is renamed file3, file1 is renamed file2, and
2016 Jun 09
1
for loop example
> From: Indunil Jayasooriya <indunil75 at gmail.com> > > > > > > [root at centos67 loop]# cat file1 > > > firstname1 > > > firstname2 > > > > > > [root at centos67 loop]# cat file2 > > > lastname1 > > > lastname2 > > > > > > I need a OUTPUT like this > > > > > > > > >
2010 Jan 30
0
[LLVMdev] Redefining function
Hi Conrado, > I couldn't find the solution to my problem (if it has one) in the > mailing list or the source code. The problem is: how can I redefine a > function that's been called already by some other function? why do you want to do this? > Suppose I have 3 files, all compiled to bytecode through llvm-gcc (I > think it could be clang instead). > > File1.c:
2008 Apr 23
3
[LLVMdev] Compile units in debugging intrinsics / globals
I have a question about the llvm debugging records, especially wrt compile units. In the non-LLVM sense, a compile unit is essentially everything contained within a single .o file, and it is derived from one or more source and header files. Included in a compile unit are functions and global data. Dwarf records refer to compile units in the same way: a compile unit record has children which
2013 Jan 08
2
rsync in conjunction with the --link-dest option does not output deleted files
Hi, I want to use rsync to make daily backups using hard-links in this way: rsync -av --delete --link-dest=../backup_old ./source/. ./backup_new This works great, but the problem is, that rsync does not show correctly what action it performs (-v option). It shows correctly all new and changed files/folders, but it does not show files that were deleted. This works only if I do not use the
2008 Aug 11
2
Compiling only some C files
Dear R-users, I am currently writing an R package that contains three C++ files in the src/ source directory When i issue a R CMD check pkge_name, all the *.cpp files in the src/ directory will be compiled through something like (seen in 00install.out file): * Installing *source* package 'pkge_name' ... ** libs g++ -I/usr/lib/R/include -I/usr/lib/R/include -I/usr/local/include -c
2001 Apr 12
1
(no subject)
This perl script is for Samba 2.0.7 installed via RPM.? If that's your setup, this will work for you.? Before you run it you need to create a Unix group with a gid of 500.? You can name it whatever you want, but it's for machine accounts, so I would suggest you call it 'machines'.? If you need any help with it or need it customized for you, let me know. ? -- Mike ? Script starts on
2016 Jun 09
0
for loop example
There's probably a better way using join, but this should do the trick: paste <(cat file1 | tr "\n" ' ') <(cat file2 | tr "\n" " ") On Tue, 07 Jun 2016 12:19:14 +0000 Diego <diegofull at gmail.com> wrote: > Maybe this don't to be the best form to solve your problem, but worked,rs. > > #!/bin/bash > #power by Diego Rodrigues
2010 Mar 25
0
Can't access opaque symlinks pointing to another Samba mount
Computer A runs my samba server. Has unix extensions = off, wide links = on (don't think this one matters with unix extensions off...) This way, if I have a symlink on my shares, clients see it as a normal file, not as a symlink. This works fine, even for symlinks to files outside the shares paths. Except when the symlink points to a file that is on a CIFS mount. So say I have computer B
2013 Oct 22
4
[Bug 10220] New: symlinks are not counted as files in --stats
https://bugzilla.samba.org/show_bug.cgi?id=10220 Summary: symlinks are not counted as files in --stats Product: rsync Version: 3.0.9 Platform: All OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: zlobber at