similar to: Newbie problems with R and compiled C

Displaying 20 results from an estimated 9000 matches similar to: "Newbie problems with R and compiled C"

2018 Apr 17
1
Minor glitch in optim()
Having worked with optim() and related programs for years, it surprised me that I haven't noticed this before, but optim() is inconsistent in how it deals with bounds constraints specified at infinity. Here's an example: # optim-glitch-Ex.R x0<-c(1,2,3,4) fnt <- function(x, fscale=10){ yy <- length(x):1 val <- sum((yy*x)^2)*fscale } grt <- function(x, fscale=10){ nn
2004 May 30
1
What's wrong with this simple code???
Hi, all I can not figure this out, please have a look and help me out. thank you! Note: this is in SPLUS, not R. I have following code *********************************** modfit<-function(yir,yew, ft) { n<-length(yew) yew<-yew[1:(n-1)] yy<-yir-ft xx<-yew-ft n<-length(xx) xx0<-xx[2:n] yy0 <-yy [2:n] xx1<-xx[1:(n-1)] fit <- garch(yy0~xx0 + xx1+var.in.mean,
2009 Dec 04
1
cycling k times a realization of a random walk.....problems..
hello R-masters. i have an R-issue here that i don't know if you'd wish to help me? about it: briefly i'd like to generate many (say hundred) realizations of a random walk, execute a few operations on each of them (mean time of return), and graph each realization on the same plot. IN OTHER WORDS I'D LIKE TO IMPOSE A LOOPING CYCLE TO THE COMMAND NOT THE ARGUMENT OF THE COMMAND.
2010 Jul 08
2
transformation of data.frame
Hello all R users, I have a problems transforming (or maybe better regrouping) a data.frame. I have a big data.frame, which I would like to sum up according to a specific column. This is an example of my matrix: ID gen 0042787 gen2 0016070 gen2 0016070 gen3 0007409 Gen1 0007409 gen3 0006511 gen2 0006417 gen3 0016070 gen4 0006511 gen4 I want to rearrange the matrix
2000 Jan 20
2
Which Linux distribution?
I'm an user of R for Windows (95/NT PENTIUM I and II) mostly for educational purposes. I thinking of moving to Linux, is there any Linux distribution in which R works better? or it would have to work fine in any Linux distribution? Thanks for any hint ************************************************************* * Eusebio Arenal Guti?rrez * * Departamento
1999 Nov 08
1
replacement and extraction functions
Is there any documentation about replacement and extraction functions in R, these fuenctions don't work as in S. Example with funtion factor.names (of S+ 4.5r2) > fnombres <- list(tratamiento=LETTERS[1:4], veneno=c("I","II","III")) > veneno.diseno <- data.frame( + factor(rep(c(1,2,3,4), rep(12,4))), + factor(rep(rep(c(1,2,3), rep(4,3)),4)) + ) >
2013 Sep 21
2
LDA quota rejection
Hi to all, i have dovecot 2.2.5 and i have implemented lda rejection through quota full this is my dovecot conf protocol lda { mail_fsync = optimized auth_socket_path = /usr/local/var/run/dovecot/auth-userdb deliver_log_format = msgid=<%f>-<%s>-%m: %$ hostname = mail.cgilfe.it info_log_path = /var/log/dovecot/dovecot-deliver.log log_path =
2012 Sep 06
2
[Advice] CentOS6 + KVM + bonding + bridging
With the current talk on bonding, I have a few questions of my own. I'm setting up a KVM host with CentOS 6.3 x86_64 on which I'd like to attach the VMs to a bonded interface. My target setup is one where two GigE NICs are bonded and then the KVM bridge interface is attached to the bonded interface. Initially I tried to use the balance-alb mode (mode6), but had little luck (receiving
2013 Jul 21
9
build for pv-grub stubdom
Does this install -d -m0755 -p "/mnt/gen2/TmpDir/portage/app-emulation/xen-pvgrub-4.3.0/image//usr/lib/xen/boot" install -m0644 -p mini-os-x86_32-grub/mini-os.gz "/mnt/gen2/TmpDir/portage/app-emulation/xen-pvgrub-4.3.0/image//usr/lib/xen/boot/pv-grub-x86_32.gz" make: Leaving directory `/mnt/gen2/TmpDir/portage/app-emulation/xen-pvgrub-4.3.0/work/xen-4.3.0/stubdom'
2003 Apr 24
1
rw1.7.0 spend much time to open
I've just installed R for windows 1.7.0 on windows 2000 SP2 from the binaries on CRAN. It takes at least 1:30 minutes to completely open Rgui, Rterm o R in Emacs. It this normal? Data about the platform: C:\>ver Microsoft Windows 2000 [Versi?n 5.00.2195] > Sys.info() sysname release "Windows"
2011 May 25
1
External special functions (SPECIALSXP)
Is it possible to define an external special function (SPECIALSXP)? I'm trying to do some language-level work, and don't want my arguments evaluated before they hit C. It looks like the only way to define a SPECIALSXP is by using XX0 in the `eval' field of R_FunTab; is there any way to make this applicable to externally defined functions?
2010 Aug 11
3
Running something without a loop when the result from the previous iteration is require for the current iteration
Hello Everyone! Here's what I'm trying to do. I'm working on generating occurrences of precipitation based upon precipitation occurrence for a station during the previous day and two stations that have already been generated by joint probablities and 1st order Markov chains or by the same generation process. This has to be done for each remaining stations for each month. > genmat
2008 May 18
2
xen kernel showing only one processor on SMP
What if you boot with other kernel? If you have the same result maybe BIOS update is required for your server?! >---------------------------------------------------------------------- > >Message: 1 >Date: Sat, 17 May 2008 14:51:45 -0700 >From: gen2 <gen2 at planetofidiots.com> >Subject: [CentOS-virt] xen kernel showing only one processor on SMP > machine
2000 Feb 23
1
Console font size
It is posible to change the console font size? What in the funtion needed? Tanks in advance Eusebio -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at
2019 Sep 24
2
CentOS 8 Boot.iso image DHCP4 not working?
I'm just wondering if anyone else is not getting a DHCPv4 address in Anaconda, using the CentOS 8 Boot.iso image? I get an IPv6 Autoconfig address, but it doesn't want to pick up a DHCPv4. This is in a Hyper-V Gen2 VM, connected to the same network all my other dev VMs are on, and picking up DHCPv4 without issue. And, congratz to the CentOS team on 2 releases in a week (or so)! Gregory
2017 Sep 19
1
symbolic computing example with Ryacas
Thanks for the response. Yes, I did study the vignette but did not understand it fully. Anyway, I have tried once again now. I am happy to say that I have got what I wanted. library(Ryacas) x <- Sym("x");U <- Sym("U");x0 <- Sym("x0");C <- Sym("C") my_func <- function(x,U,x0,C) { return (U/(1+exp(-(x-x0)/C)))} FirstDeriv <-
2017 Sep 19
2
symbolic computing example with Ryacas
Hi all, I am trying to implement the following matlab code with Ryacas : syms U x x0 C d1=diff(U/(1+exp(-(x-x0)/C)),x); pretty(d1) d2=diff(U/(1+exp(-(x-x0)/C)),x,2); pretty(d2) solx2 = solve(d2 == 0, x, 'Real', true) pretty(solx2) slope2=subs(d1,solx2) I have tried the following : library(Ryacas) x <- Sym("x");U <- Sym("U");x0 <-
2009 Jun 19
1
Drawing dendrogram
Dear all, I would like to draw a dendrogram and mark some parts/branches (by using "segments") including their labels. If I draw it without specifying the length of x axix, I am able to do that (as in My dendrogram 1 of the following codes). However, if I want to specify the x axix, I am not able to draw marking line (by using "segments") including labels (as in My dendrogram
2018 Sep 07
2
Construir matriz de distancias
Me encantaría saber pensar así de una. Creo que entiendo bien lo que me decís, pero no lo puedo poner en marcha en mi computadora, por algo que no sé qué será. Cuando llego a: > cosa<-aline(w1=x,w2=y) En RStudio me dice que R sufrió algo. Probé directamente desde la consola linux y también: > cosa<-aline(w1=x,w2=y) *** stack smashing detected ***: /usr/lib/R/bin/exec/R terminated
2017 Sep 19
0
symbolic computing example with Ryacas
Have you studied the "Introduction to Ryacas" vignette that come with the package? Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Sep 19, 2017 at 2:37 AM, Vivek Sutradhara <viveksutra at gmail.com> wrote: