similar to: Paste and namespace

Displaying 20 results from an estimated 110 matches similar to: "Paste and namespace"

2007 Nov 08
2
Sweaving single master file to get multiple individualised reports
Hi Apologies in advance if I've missed something obvious. I have read the Sweave manual, the first article in R News, looked at the Help pages, googled Sweave and words like loop, output, files, multiple, done much the same on R site search (in case I missed something on Google) and I couldn't find exactly what I'm after. What I'm trying to do ?---------------------- Make
2003 Jun 11
3
Multiple match function?
Hi all, I have (yet another) question about a function in R. What I would like to do is test for the presence of a certain value in a vector, and have the positions that this value is at returned to me. For example, let's say I have a vector: x <- c(1,1,2,2,3,3,4,4) Now I would like a function that would return positions 3 and 4 should I test for the value "2". Or 5 and 6
2003 May 31
5
parse on left hand side of R assignment
I keep finding myself in a situation where I want to calculate a variable name and then use it on the left hand side of an assignment. For example iteration <- 1 varName <- paste("run",iteration,sep="") myList$parse(text=varName) <- aColumn I want to take some existing variable "aColumn" and use the name "varName" name for it and put it into a
2010 Oct 25
1
calculate area between intersecting polygons
Dear list: I am trying to calculate the intersection area between two irregular polygons (see example data below). set.seed(1234) theta <- seq(0, 2 * pi, length=(100)) poly1<- cbind(c(0 + 1 * cos(theta) + rnorm(100, sd=0.1)), c(0 + 2 * sin(theta))) poly2<- cbind(c(0 + 2 * cos(theta) ), c(-1 + 1.5 * sin(theta)+ rnorm(100, sd=0.1))) plot(x, y, type = "n", ,
2010 May 05
1
Getting calee audio in Asterisk (real time)
Hello, I need to capture calee's audio in real-time in order to capture operator messages (I've written sound recognition software that works with Jack: http://github.com/Motiejus/SoundPatty/). Jack does the following: Incoming call audio -> audio in to jack, audio out from jack -> current Asterisk application Outgoing call audio <- current Asterisk application However, I need
2011 Mar 01
3
inefficient ifelse() ?
dear R experts--- t <- 1:30 f <- function(t) { cat("f for", t, "\n"); return(2*t) } g <- function(t) { cat("g for", t, "\n"); return(3*t) } s <- ifelse( t%%2==0, g(t), f(t)) shows that the ifelse function actually evaluates both f() and g() for all values first, and presumably then just picks left or right results based on t%%2.
2006 Mar 02
1
Insert a data in Oracle with Rails
Hi, I tried many things to insert a data in an Oracle Table, but the Rails compiler never Works! I create this Oracle table: CREATE TABLE "FOO" ( "id" int NOT NULL primary key, "acolumn" VARCHAR(10) NULL ) and when i tried to insert a new row the Rails compiler tell me : OCIError: ORA-00904: invalid column name: INSERT INTO AGO.FOO (acolumn, id)
2006 Mar 01
2
Oracle auto_increment ??? & Rails
To make a new istance of an Oracle table with Rails, i need that this table had a column named ''id''. This ''id'' must be Primary Key & auto_increment;. How Can I modify the ''id'' properties to do it Auto_increment in Oracle? -- Posted via http://www.ruby-forum.com/.
2010 Jul 12
3
Continuing on with a loop when there's a failure
Hi R sages, Here is my latest problem. Consider the following toy example: x <- read.table(textConnection("y1 y2 y3 x1 x2 indv.1 bagels donuts bagels 4 6 indv.2 donuts donuts donuts 5 1 indv.3 donuts donuts donuts 1 10 indv.4 donuts donuts donuts 10 9 indv.5 bagels donuts bagels 0 2 indv.6 bagels donuts bagels 2 9 indv.7 bagels donuts bagels 8 5 indv.8 bagels donuts bagels 4 1 indv.9
2010 Jun 19
1
Extracting P-values from the lrm function in the rms library
Hello again R users, I have a devilishly hard problem, which should be very simple. I hope someone out there will have the answer to this on the tip of their tongue. Please consider the following toy example: x <- read.table(textConnection("y x1 x2 indv.1 bagels 4 6 indv.2 donuts 5 1 indv.3 donuts 1 10 indv.4 donuts 10 9 indv.5 bagels 0 2 indv.6 bagels 2 9 indv.7 bagels 8 5 indv.8
2010 Jun 18
1
Fitting a polynomial using lrm from the Design library
Hi all, I am looking to fit a logistic regression using the lrm function from the Design library. I am interested in this function because I would like to obtain "pseudo-R2" values (see http://tolstoy.newcastle.edu.au/R/help/02b/1011.html). Can anyone help me with the syntax? If I fit the model using the stats library, the code looks like this: model <- glm(x$trait ~ x$PC1 +
2010 Jul 20
1
Nesting functions in loops that result in error messages breaking the loop
Hello all, I am trying to write a program in R in which I call a function multiple times within a loop. The problem is that sometimes the function breaks down while calling another function, and produces an error message that breaks my loop and the program stops. I would like to keep the loop running when this function breaks down, and just move on to the next iteration in the loop. Is there
2005 Feb 07
3
syslinux/isolinux capabilities
I'm wondering if it's possible to use isolinux on a bootable CDR to boot an ISO9660 disk image off of the CDR's filesystem. I'm trying to make a multi-boot CD which is capable of booting both floppy images and smaller ISO9660 images (such as the debian netinst or DSL - damnsmall linux), and I am wondering if isolinux is capable of doing this (or something similar to this -
2012 Sep 11
1
CRAN, install packages problem on networked PC
Dear List, I have a problem connecting to a CRAN mirror through a networked computer running Vista Enterprise on a Dell PC. I added http_proxy=http://gannet/ http_proxy_user=ask to the Target in the R shortcut, completed the username and password in the Proxy Authentication window, but get the following warning: Warning message: In open.connection(con, "r") : unable to resolve
2002 Jan 13
14
Windows XP
Good evening all, I'm running samba 2.2.2a on RedHat 7.2 as a PDC and until today all was well. One of my users upgraded their workstation to Windows Xp pro and although they received a message "Welcome to the domain" when they try to log on they receive the message that the domain comptroller cannot be located to validate their account. The workstation show up in the browse list.
2002 Jan 22
10
machine accounts
Well I thank everybody that helped me get swat working. I am very thankful. Now, though, it seems I have more problems. When I try to join my samba domain, my XP box says "a domain controller for the domain edith could not be contacted." Okay, well, after reading up on things in this list, it seems that I need to create a machine account. I didn't have to on my NT box. When I
2011 Jul 02
1
Bug#632397: xen: /proc/uptime show idle bigger than uptime
Package: xen Version: 4.0.1-2 Severity: normal /proc/uptime shows idle bigger than uptime: dom0: % cat /proc/uptime 518389.91 944378.70 % one domU: % cat /proc/uptime 417536.22 764826.15 % another domU: % cat /proc/uptime 426960.17 795800.89 % This is normal on multicore / ht cpu, but this is old amd: % lscpu Architecture: i686 CPU(s): 1 Thread(s) per core: 1
2003 Apr 15
1
References of R in use (SHORT SUMMARY)
Dear R-list, about one month back I posted here a question/idea that it would be nice to have some list of references of R in use plus some other "marketing" arguments for R to promote it. Thanks for all your responses. I was given useful responses from Armin Roehrl, Jim Lemon, Edith Hodgen, Ko-Kang Kevin Wang, Charles Berry, Martin Maechler, Spencer Graves, Paul Gilbert, Adelchi
2010 Jul 12
3
Bug#588839: Include pv-grub to securely boot guest kernels
Package: xen-utils-4.0 Version: 4.0.1~rc3-1 Severity: wishlist Please include pv-grub images in xen-utils or as a seperate package. Pv-grub allows securely booting guest kernels. [0] http://wiki.xensource.com/xenwiki/PvGrub -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux
2006 Sep 17
1
Error starting xend?
After upgrading to xen unstable packages I'm seeing the following problem: skx@itchy:~$ sudo /etc/init.d/xend restart Restarting XEN control daemon: xendTraceback (most recent call last): File "/usr/lib/xen-3.0-unstable-1/bin/xend", line 40, in ? from xen.xend.server import SrvDaemon File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line 17,