search for: xdir

Displaying 6 results from an estimated 6 matches for "xdir".

Did you mean: dir
2010 Dec 02
4
2D Random walk
I've wrote some code to simulate a random walk in 2 dimensions on a lattice. Basically I want to add something in to make it plot it point by point so you can see what is going on. Heres my code for the random walk in 2d RW2D<-function(N) { i<-0 xdir<-0 ydir<-0 xpos<-vector() xpos[1]<-xdir ypos<-vector() ypos[1]<-ydir for (i in 1:N-1) { r<-runif(1) if(r<=0.25) {xdir<-xdir+1} if(r>0.25 && r<=0.5) {xdir<-xdir-1} if(r>0.5 && r<=0.75) {ydir<-ydir +1} if(...
2006 Oct 30
1
QueryParser and prefixes
Hi all, My app uses prefixes for user-defined labels and directory names. Since these are case-sensitive, I chose XLABEL and XDIR respectively. Labels and directories may start with an upper-case, so a ":" is always inserted between the prefix and the term itself. These prefixes are mapped with add_boolean_prefix to "dir" and "label". Let's imagine I index a document with "XLABEL:xapian...
2010 Jan 01
0
R Wish List
...ble. SCRIPTING/OTHER LANGUAGES 7. -x argument which works similar to the same argument in Perl/Python/Ruby to allow a batch file and an R file to be combined. For example: python -x prog.py skips first line of prog.py allowing non-UNIX forms of #!cmd perl -x prog.pl or perl -xdir prog.pl strips off text before !#perl line and possibly cd's to directory (if one is given). ruby works same way. Thus one could write: Rscript -x myfile.bat and combine a Windows batch file and an R file into myfile.bat, say. 8. tcltk a. some easy way to run R minimized but have a tclt...
1998 Jul 02
1
Synchronize Unix/SMB passwords with 'synchpasswd'
Hi, It's been a while since I created my smbpasswd file, and therefore it is no longer in synch with my Unix file. I've added and removed users over time, and now I need a way to update the 'smbpasswd' file without losing the encrypted passwords that are already in place (ie. I don't want to just run 'makesmbpasswd.sh' again). So, I've written the
1999 Nov 19
1
[solaris 7 patch] resubmit and extended ...
Okay, everything as the first large one I sent today, with a few extra mods. _PATH_MAILDIR is only used in sshd.c, that I can see, so moved the #ifdef from config.h.in to there. several files had __progname defined in the middle of the code, as well as at the top of the code, so cleaned those out. all the fixes for u_int32_t -> uint32_t and u_int16_t -> uint16_t, plus added appropriate
2020 Feb 14
3
R-3.6.2 make check fails
...) > pkgApath <- file.path(pkgPath, "pkgA") > if("pkgA" %in% p.lis && !dir.exists(d <- pkgApath)) { + cat("symlink 'pkgA' does not exist as directory ",d,"; copying it\n", sep='') + file.copy(file.path(pkgPath, "xDir", "pkg"), to = d, recursive=TRUE) + ## if even the copy failed (NB: pkgB, pkgC depend on pkgA) + if(!dir.exists(d)) p.lis <- p.lis[!(p.lis %in% c("pkgA", "pkgB", "pkgC"))] + } > dir2pkg <- function(dir) ifelse(dir == "pkgC", &q...