[R] Ubuntu hirsute unable to receive the key to add the repository

2021-05-22 Thread Victor
I followed the procedure indicated in https://cran.mirror.garr.it/CRAN/ step by step to� install R under ubuntu 21.04 hirsute but� the apt-key command failed: vr@ubuntu:~$ apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 Warning: apt-key is depre

[R] how to read association of variable in multiple outcomes using MCMCMGLMM

2018-11-15 Thread Victor Chikwapulo
Dear all, I am  using package MCMCglmm and I would like to request for an assistant on  what to look   in the output which can tell me  whether there is significant  association among the three antibody titers(logiga,logigm,logigg)  for example association between antibody titers and exposure I ca

[R] [R-pkgs] New package nVennR

2018-03-23 Thread Victor Quesada
A new package, nVennR, is available on CRAN Description: Provides an interface for the nVenn algorithm (Perez-Silva et al. 2018) to create approximately proportional, n-dimensional Venn and Euler diagrams. There is no limit to the number of sets, although using more than seven takes a long tim

Re: [R] Pasting a large chunk of R code in terminals

2015-10-29 Thread Victor Tian
'sourced' in. > > > Jim Holtman > Data Munger Guru > > What is the problem that you are trying to solve? > Tell me what you want to do, not how you want to do it. > > On Thu, Oct 29, 2015 at 2:13 PM, Victor Tian wrote: > >> Thanks, Marc and Jeff, for

Re: [R] Pasting a large chunk of R code in terminals

2015-10-29 Thread Victor Tian
from my phone. Please excuse my brevity. > > On October 29, 2015 8:16:17 AM MST, Victor Tian > wrote: > >Hi there, > > > >Often times, I would run R in the terminal when the task is > >computationally > >intensive and a nice-looking UI is less desired. > >

[R] Pasting a large chunk of R code in terminals

2015-10-29 Thread Victor Tian
Hi there, Often times, I would run R in the terminal when the task is computationally intensive and a nice-looking UI is less desired. However, pasting a large chunk of code into the terminal often times ends up being messed up. In Python, the same problem would happen, however, iPython provides

Re: [R] Linear regression with a rounded response variable

2015-10-21 Thread Victor Tian
Hi Ravi, Thanks for this interesting question. My thoughts are given below. If you believe the rounding is indeed uniformly distributed, then the problem is equivalent with adding a uniform random error between (-0.5, 0.5) for every observation in addition to the standard normal error, which will

[R] Compiling R 3.2.2 under FreeBSD

2015-09-07 Thread Victor
The R-CRAN project under FreeBSD 10.2 ports is quite obsolete being blocked at version 3.0.2 while at the moment the project is at version 3.2.2. Modifying the /usr/ports/math/R port I'm trying to upgrade R to that last version. When I issue the 'make' command I get the following error

[R] read.table with missing data and consecutive delimiters

2015-02-11 Thread Tim Victor
All, Assume we have data in an ASCII file that looks like Var1$Var2$Var3$Var4 1$2$3$4 2$$5 $$$6 When I execute read.table( 'test.dat', header=TRUE, sep='$' ) I, of course, receive the following error: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 2 did n

[R] help

2015-01-06 Thread victor okonga
any one ever used this book "Understanding and Applying Research Design?" or has an e-copy? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PL

[R] (no subject)

2014-08-17 Thread Kaiyin Zhong (Victor Chung)
Hi all. I am having problems with inheritance in reference class, here is a small example: Myclass = setRefClass("Myclass", fields = list( fa = "numeric", fb = "numeric", filename = "character"

[R] TS: Calculating the mean by month

2014-02-18 Thread Victor
I have the following (monthly) ts time-series: > t Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 2002 5.3 9.4 12.1 14.4 17.9 23.5 24.3 23.6 19.3 16.3 13.9 9.0 2003 7.5 5.4 10.4 13.3 19.9 25.6 26.2 27.6 20.6 15.5 12.5 8.0 2004 6.3 7.8 9.6 13.6 16.5 22.0 24.3 24.6 21.3 18.

[R] Impose constraint on first order derivative at a point for cubic smoothing spline

2013-11-01 Thread Victor hyk
, 0.6).        I really appreciate your help!        Thanks!                 Best             Victor               Here is the initial reply and code provided by Dr. Simon Wood:  "Actually, you might as well use "gam" directly for this (has the  advantage that the smoothing parameter

[R] x12 doesn't work any longer

2013-10-14 Thread Victor
Context: Mac OS X 10.7 - R 3.0.2 GUI 1.62 Snow Leopard build (6558) I had been using x12 for some time with no problem at all. every month I update the time series ricpesata (see below) and run the simple procedure below. Now adding the data of the last month, Sep.2013, x12 is complaining: > l

[R] "block incomplete" error when compiling R

2013-08-25 Thread Kaiyin Zhong (Victor Chung)
Dear list, I am trying to compile R on a 64-bit Ubuntu 13.04 machine and get the following error: make[2]: Entering directory `/home/kaiyin/opt/R-2.15.0/src/library/Recommended' begin installing recommended package MASS Error in untar2(tarfile, files, list, exdir) : incomplete block on file make[

[R] choose many files

2013-07-15 Thread RODRIGUEZ MORENO VICTOR MANUEL
s "32015tmx". Any suggestions? Thanks a lot in advance Dr Victor M Rodríguez M Doctor en Ciencias, en Ciencias de la Tierra / Geociencias Ambiental

[R] problem on reading many files

2013-07-05 Thread RODRIGUEZ MORENO VICTOR MANUEL
eadLines (‘" > for(ifile in listatmn) > FindU(paste("./",ifile,sep=""),paste("salidas/",ifile,sep=""),"-999.9") > Error: objeto 'ifnames' no encontrado What I'd like to do is to make easier and fast running the RHtest

[R] gpuHclust slower than hclust

2013-06-04 Thread Kaiyin Zhong (Victor Chung)
Dear list, According to this presentation ( http://www.rinfinance.com/agenda/2010/MarkSeligman_Tutorial.pdf), gpuHclust in the gputools package should be about 20x faster than clust, but after some testing, I find it actually 4x slower. Here is the code: test.data <- function(dim, num, seed=17) {

[R] hclust segfault when using rpuDist

2013-06-04 Thread Kaiyin Zhong (Victor Chung)
Hi, dear list. I found that hclust causes segfault in R 3.0.1, here is the code after starting R --vanilla: test.data <- function(dim, num, seed=17) { set.seed(seed) matrix(rnorm(dim * num), nrow=num) } m <- test.data(120, 45) library(rpud) # load rpud with rpudplus d <-

Re: [R] parSapply can't find function

2013-04-29 Thread Kaiyin Zhong (Victor Chung)
i, envir)) 1: source("testing.R") The sequential run was ok. Best regards, Kaiyin ZHONG -- FMB, Erasmus MC k.zh...@erasmusmc.nl kindlych...@gmail.com On Mon, Apr 29, 2013 at 8:26 PM, Duncan Murdoch wrote: > On 29/04/2013 2:16 PM, Kaiyin Zhong (Victor Chung

Re: [R] parSapply can't find function

2013-04-29 Thread Kaiyin Zhong (Victor Chung)
Oh, indeed, that IS the problem. Thank you!!! Best regards, Kaiyin ZHONG -- FMB, Erasmus MC k.zh...@erasmusmc.nl kindlych...@gmail.com On Mon, Apr 29, 2013 at 8:22 PM, David Winsemius wrote: > > On Apr 29, 2013, at 11:16 AM, Kaiyin Zhong (Victor Chung)

Re: [R] parSapply can't find function

2013-04-29 Thread Kaiyin Zhong (Victor Chung)
ror in checkForRemoteErrors(val) : 12 nodes produced errors; first error: could not find function "predR" Best regards, Kaiyin ZHONG -- FMB, Erasmus MC k.zh...@erasmusmc.nl kindlych...@gmail.com On Tue, Apr 23, 2013 at 3:44 PM, Uwe Ligges wrote: >

Re: [R] parSapply can't find function

2013-04-23 Thread Kaiyin Zhong (Victor Chung)
Thanks for the reply. How can i make the functions known to all nodes? Best regards, Kaiyin ZHONG -- FMB, Erasmus MC k.zh...@erasmusmc.nl kindlych...@gmail.com On Tue, Apr 23, 2013 at 2:43 PM, Uwe Ligges wrote: > > > On 18.04.2013 11:11, Kaiyin Zhon

Re: [R] snow: cluster initialization

2013-04-18 Thread Kaiyin Zhong (Victor Chung)
re = system('nproc') > 16 > > ncore > [1] 0 > # the result is printed, not returned > > > Best wishes, > Jon > > > On 18-Apr-13 10:52, Kaiyin Zhong (Victor Chung) wrote: > >> Dear all, >> >> I found a strange thing with the sn

Re: [R] snow: cluster initialization

2013-04-18 Thread Kaiyin Zhong (Victor Chung)
tried on a redhat linux (R 2.15.0) server: >> >> > ncore = system('nproc') >> 16 >> > ncore >> [1] 0 >> # the result is printed, not returned >> >> >> Best wishes, >> Jon >> >> On 18-Apr-13 10:52, Kaiyin Zhon

[R] parSapply can't find function

2013-04-18 Thread Kaiyin Zhong (Victor Chung)
Here is the code, assuming 8 cores in the cpu. library('modeest') library('snow') cl = makeCluster(rep('localhost', 8), 'SOCK') x = vector(length=50) x = sapply(x, function(i) i=sample(c(1,0), 1)) pastK = function(n, x, k) { if (n>k) { return(x[(n-k):(n-1)]) } else {return(NA)} } predR

[R] snow: cluster initialization

2013-04-18 Thread Kaiyin Zhong (Victor Chung)
Dear all, I found a strange thing with the snow package. This will work: y = matrix(1:4, 2) cl = makeCluster(rep('localhost', 8), type='SOCK') parMM(cl, y, y) This will not: y = matrix(1:4, 2) ncore = system('nproc') parMM(cl, y, y) Error in cut.default(i, breaks) : invalid number of intervals

[R] Use pcls in "mgcv" package to achieve constrained cubic spline

2013-03-11 Thread Victor hyk
$A;G$bin<-F$b;G$S<-sm$S;G$off<-0 p<-pcls(G); # fit spline (using s.p. from unconstrained fit) fv<-Predict.matrix(sm,data.frame(x=x))%*%p lines(x,fv,col=2) lines(x,f,col="blue")    Thanks a lot!!     Victor [[alternative HTML version deleted]] ___

[R] About basic logical operators

2013-03-05 Thread Victor hyk
.08  0.10  0.12  0.14  0.16  0.18 [61]  0.20 > Why does "x[x<=0.02]" return  no 0.02 but "x[x<0.2]" return a subsample with 0.02?      Anyone who can tell me why? Thanks! Victor [[alternative HTML version deleted]] __

[R] Constrained cubic smoothing spline

2013-03-05 Thread Victor hyk
increasing, decreasing). However,  this package is using  B-spline and can only do linear and quadratic B-spline.    In my research, I need to force a cubic smoothing spline to pass a point.    Thanks!       Victor [[alternative HTML versi

[R] TRAMO/SEATS and x12 in R

2012-02-23 Thread Victor
I have a Mac OS X system. To deal with a long monthly electricity demand time-series I use the procedures TRAMO/SEATS with the MS-windows only Demetra programme and X12 under R resorting to the awkward - as far as the output is concerned - x12 R package running the relating Fortran code. I won

[R] Transforming a string into a command

2011-11-27 Thread Victor
I would like to make a string executable, e.g, s<- "ln(a+b)" a<-1 b<-2 execute string s to obtain ln(a+b) How can I make it? Ciao fron Rome Vittorio __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Extracting a a chunk of text from a pdf file

2011-09-18 Thread Victor
Giornaliero(.)+","",testo[k[30]]) rif<-gsub("^(.)+href=\"","",rif) pag<-paste("http://www.terna.it",rif,sep="";) pagina<-readLines(pag) ………. ………. ………. Il giorno 18/set/2011,

Re: [R] Extracting a a chunk of text from a pdf file

2011-09-18 Thread Victor
ontrollers) .OO#. .OO#. rocks...1k > --- > Sent from my phone. Please excuse my brevity. > > Victor wrote: > In an R script I need to extract some figures from many web pages in pdf > format. As an example see > http://www.terna.it/LinkClick.aspx

[R] Extracting a a chunk of text from a pdf file

2011-09-17 Thread Victor
In an R script I need to extract some figures from many web pages in pdf format. As an example see http://www.terna.it/LinkClick.aspx?fileticket=TTQuOPUf%2fs0%3d&tabid=435&mid=3072 from which I would like to extract the "Totale: 1,025,823"). Is there any solution? Ciao Vittorio __

[R] pegas package: Problem using nuc.div and tajima d -> error with dist.dna() -> character variables must be duplicated in .C/.Fortran

2011-07-22 Thread Victor Garcia
mmand: / > data.loci <- read.loci(file ="/Users/victor/Documents/SIV_Compartment/data/pegas_data_seq.txt", header = TRUE, col.loci = seq(1,200), col.pop = TRUE) /seems to work./ /in fact:/ > data.loci Allelic data frame: 68563 individuals

Re: [R] ggplot pale colors

2011-05-29 Thread Victor Gabillon
Hi Ista, Thank you so much for your explanation!! I know now how to handle this scale_color_manual() function. Le 28/05/2011 19:56, Ista Zahn a écrit : Hi Victor, The problem is that you have not grasped the difference between setting an aesthetic to a fixed value and mapping it to a variable

[R] ggplot pale colors

2011-05-28 Thread Victor Gabillon
ne. I guessing i am duing it wrong but i'm stucked with it. Do you have suggestions? An additional question is that i want to add text along the blue line (which is a reference) but i did not understand what geom_text was expecting. Thanks for your help! Victor [[alternat

Re: [R] barplot groups of different size i.e. height is NOT a matrix

2011-05-28 Thread Victor Gabillon
Thanks for the help! In the end, i chose to use ggplot which creates really simply different panels. And I am replacing my bars by simple points in the end. Victor __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] continuous time AR(1)

2011-05-27 Thread frossard victor
temporal intervals between samples. Hence I would like to use a continuous time AR(1) that allow irregular time intervals between samples. Unfortunalty I don't find this function in any R package. Doesn't someone know if this function has already be implemented for R? Many thanks in advan

[R] barplot groups of different size i.e. height is NOT a matrix

2011-05-25 Thread Victor Gabillon
that we don't want to display the same number of parameters for each algorithm. Thanks for your help. Victor __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o

[R] RPART error

2011-05-20 Thread victor pontes
data=data, method = "class", control=control) summary(x) Similar code run on "noproblem.csv" will not produce the error. Any suggestions on how to proceed to debug this issue would be greatly appreciated.  I am a novice R user, but not a novice programmer (SAS, some C, J

Re: [R] Change the text size of the title in a legend of a R plot.

2011-04-29 Thread Victor Gabillon
goes out of the border as the borders were not designed for the case of a big title. Thanks again!! Victor Le 29/04/2011 10:03, Jannis a écrit : On 04/29/2011 05:21 AM, Victor Gabillon wrote: Horizo <- c(1,2,6,10,20) legtext <- paste(Horizo,sep="") legend("topleft&quo

[R] Change the text size of the title in a legend of a R plot.

2011-04-28 Thread Victor Gabillon
) saying title.cex argument as been ignored. Thank you for helping. Victor __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Associating the day of week to a daily xts object

2011-03-07 Thread Victor
I have the following xts objetct "temp" > str(temp) An ‘xts’ object from 2010-12-26 to 2011-03-05 containing: Data: num [1:70, 1] 2.95 0.852 -0.139 1.347 2.485 ... - attr(*, "dimnames")=List of 2 ..$ : NULL ..$ : chr "t_n" Indexed by objects of class: [POSIXct,POSIXt] TZ: GMT xts Attr

Re: [R] Four parameter logistics.

2011-02-08 Thread Victor F Seabra
try the code below, if you use different upper and lower limits you might get different parameter estimates HTH, Victor standard.curve<-data.frame(conc=c(50, 25, 12.5, 6.25, 3.125, 1.563, 0.781,50, 25, 12.5, 6.25, 3.125, 1.563, 0.781),absorb=c(1.918, 1.251, 1.104, 0.719, 0.403, 0.

Re: [R] manipulate dataframe

2011-02-06 Thread Victor F Seabra
another option is to use reshape() x<-data.frame(x1=rep(1:3,each=3),x2=letters[1:9]) x$id<-rep(1:3,3) dur<-reshape(x,timevar="x1",idvar="id",direction="wide") dur<-dur[,-1] colnames(dur) <- paste("

Re: [R] grid.table with head of two rows

2011-01-19 Thread Victor Urizar
Here is a more clear example: # Create the ftable object oftable<-ftable(Titanic, row.vars = 4,col.vars=c(2,3)) require(gridExtra) #Draw the grid, but the rows and heads are missing grid.draw(tableGrob(oftable, show.csep=TRUE, show.rsep=TRUE, show.box=TRUE, sepa

[R] grid.table with head of two rows

2011-01-16 Thread victor
object that prints all the head columns. Thanks in advance Victor -- View this message in context: http://r.789695.n4.nabble.com/grid-table-with-head-of-two-rows-tp3219992p3219992.html Sent from the R help mailing list archive at Nabble.com. __ R-help

Re: [R] Please, need help with a plot

2011-01-03 Thread Victor F Seabra
although the code somehow didn't work on my Vista / R 2.8, it did work perfectly on a XP machine / R 2.10 I've been trying to fix this for days, Thank you very much for your help! __ 02/01/2011 19:30, David Winsemius < dwinsem

Re: [R] using "plot" with time series object - "axes = FALSE" option does not appear to work

2011-01-03 Thread Victor F Seabra
I guess you should specify x and y variables: plot(x=PCECTPI$var1, y=PCECTPI$var2, axes = FALSE) __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-gui

[R] Please, need help with a plot

2011-01-02 Thread Victor F Seabra
$var1,pos=4) title(x=15,y=5,expression("how to substitute the < = with the " <= "symbol"),font=5) Please, note that the data must come from a table (not manually fed in a text command) I received help yesterday an

Re: [R] problem with read.table

2011-01-01 Thread Victor F Seabra
_ Em 01/01/2011 20:05, Victor F Seabra < vsea...@uol.com.br > escreveu: Dear all, Please, when I use the command: table1<-read.table("table1.txt", header=TRUE, sep="\t") cells that contain \ u 2264 (corresponding to <= si

[R] problem with postscript command

2011-01-01 Thread Victor F Seabra
) plot(NULL,xlim=c(1,10),ylim=c(1,10)) text(5,5,"\u2264") dev.off() I'm using windows vista, my system is in English, R v2.8.1 thanks, Victor __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-he

[R] problem with read.table

2011-01-01 Thread Victor F Seabra
. Is there a way to fix that? thanks, Victor __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Plot symbols: How to plot (and save) a graphic with symbols originating from a table

2011-01-01 Thread Victor F Seabra
Please, you need to read.table to R as my problems start there If you want you can download the txt file at the link below https://docs.google.com/leaf?id=0BweZgDxYn9BkNmY1NThmMDEtOWUxZS00MzE0LTk0NTQ tYzdlODMxODgxYzJh&hl=en thanks, Vi

Re: [R] Plot symbols: How to plot (and save) a graphic with symbols originating from a table

2011-01-01 Thread Victor F Seabra
and ">=" > # and then plot an hifen under the "<" or the ">" sign. > # This worked to fix both problems, but is hard to do and > # impossible to automate (or at least very difficult) > > #Please, does anyone know a better approach? To accomp

[R] Plot symbols: How to plot (and save) a graphic with symbols originating from a table

2011-01-01 Thread Victor F Seabra
,ylab="",axes=FALSE,xlab="") text(y=table1$ypos,x=2,table1$animal) text(y=table1$ypos,x=4,table1$var1) text(y=table1$ypos,x=8,table1$var2) dev.off() # # # A solution would be to plot "<" or ">" instead of "<=" and &quo

Re: [R] Plot symbols: How to plot (and save) a graphic symbols originating from a table

2011-01-01 Thread Victor F Seabra
"bill >= tony" "bill \u2265 tony" "9" "fish" "dude <= bro" "dude \u2264 bro" By the way, I'm running R on windows and didn't try any of this on Linux. thanks in advance, Victor   Victor Faria Sea

[R] Plot symbols: How to plot (and save) a graphic symbols originating from a table

2011-01-01 Thread Victor F Seabra
uot;",axes=FALSE,xlab="") text(y=table1$ypos,x=2,table1$animal) text(y=table1$ypos,x=4,table1$var1) text(y=table1$ypos,x=8,table1$var2) dev.off() #My solution was to plot "<" or ">" instead of "<=" and ">=" # and then plot

[R] vectors into a matrix

2010-01-04 Thread Victor Kyros
Dear all, I'm writing code to do automatically several calculations and gather the results in a matrix. I have the following vectors and I just want to make a matrix with them: VD1 VD2 VD3 ... VD12 *In this case, this series of vectors stops there, in 12, but it could be a higher number or sma

Re: [R] r-inferno.pdf with detailed table of contents and bookmarks

2009-09-17 Thread Victor Manuel Garcia Guerrero
Hey, check this link: http://www.burns-stat.com/pages/Tutor/R_inferno.pdf Greetings Víctor De: r-help-boun...@r-project.org en nombre de Peng Yu Enviado el: jue 17/09/2009 10:43 Para: r-h...@stat.math.ethz.ch Asunto: [R] r-inferno.pdf with detailed table of c

Re: [R] Moving to Mac OS X

2009-09-11 Thread Victor Manuel Garcia Guerrero
with larger data, feel free to do so ... unless you >>> explicitly write code to use >1 cpu, you'll still have another cpu >>> free to do with what you will (assuming you have enough ram). >>> >>> -steve >>> >>>> On 9/11/09 10:32 AM, Ma

[R] Moving to Mac OS X

2009-09-11 Thread Victor Manuel Garcia Guerrero
Hi all, I have been using R on Windows for a long time, but now I am ready to move to Mac OS X, but I was just wondering if R works better on Mac than on Windows. This is because I had some memory size issues in the past. Another question is if some of you know an R editor for Mac (just like

[R] how to avoid a for looping break after an error message

2009-07-25 Thread Victor Landeiro
ns during the for looping and all previous results are lost. Can anyone help me to avoid that my looping stops after the error message? Thanks in advance, Victor Landeiro PS: A reproducible example is above, but there is a chance that the error message do not appears, and i reaches 1000: for(i

Re: [R] (-8)^(1/3) == NaN?

2009-07-19 Thread Victor Manuel Garcia Guerrero
It' true, but if you type -8^(1/3) returns -2, and if you type -8^1/3 it returns -2.6, maybe there are some rules about parenthesis... regards Víctor De: r-help-boun...@r-project.org en nombre de Dave DeBarr Enviado el: sáb 18/07/2009 05:04 Para: r-help@r

Re: [R] Population pyramids

2009-07-09 Thread Victor Manuel Garcia Guerrero
Wonderful!!! It works!!! Thank you very much Daniel. I owe you one. Cheers Victor De: Daniel Malter [mailto:dan...@umd.edu] Enviado el: jue 09/07/2009 10:44 Para: Victor Manuel Garcia Guerrero; r-help@r-project.org Asunto: AW: [R] Population pyramids

Re: [R] Population pyramids

2009-07-09 Thread Victor Manuel Garcia Guerrero
Thanks Jim, I'll try it and I'll keep you informed. All the best, Victor De: Jim Lemon [mailto:j...@bitwrit.com.au] Enviado el: jue 09/07/2009 05:54 Para: Victor Manuel Garcia Guerrero CC: r-help@r-project.org Asunto: Re: [R] Population pyramids

Re: [R] Population pyramids

2009-07-08 Thread Victor Manuel Garcia Guerrero
axis(1,pretty(c(0:1200),n=5), hadj=NA,padj=NA,cex.axis=0.5,las=1) Víctor Manuel García Guerrero Doctorado en Estudios de Población, CEDUA, COLMEX Camino al Ajusco N° 20, Pedregal de Sta. Teresa C.P.10740, Tlalpan, México, D.F. * : vmgar...@colmex.mx ( : 5617-9016 -Mensa

Re: [R] Population pyramids

2009-07-08 Thread Victor Manuel Garcia Guerrero
Yes, but my issue is because I need to plot a pop pyramid with confidence intervals, and the pyramid function does not work in that way. Thanks Daniel. -Mensaje original- De: Daniel Malter [mailto:dan...@umd.edu] Enviado el: mié 08/07/2009 11:36 Para: Victor Manuel Garcia Guerrero; r

Re: [R] Population pyramids

2009-07-08 Thread Victor Manuel Garcia Guerrero
...@gmail.com] Enviado el: mié 08/07/2009 11:32 Para: Victor Manuel Garcia Guerrero CC: r-help@r-project.org Asunto: Re: [R] Population pyramids Hi Victor, See http://bm2.genes.nig.ac.jp/RGM2/R_current/library/plotrix/man/pyramid.plot.html <http://bm2.genes.nig.ac.jp/RGM2/R_current/library/plotrix/

[R] Population pyramids

2009-07-08 Thread Victor Manuel Garcia Guerrero
sign in the bar plot in such way that I have no-sign numbers, both in left and right side of the graph. I have been trying all day long and I could not succed. Thanks... Victor __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

[R] T-mode PCA

2008-12-12 Thread Victor Homar
Hi, We are trying to classify atmospheric patterns using PCA and kmeans. In T-mode, the (non-normalized) loadings of the PCs are used as input variables for the k-means classification. As first step we perform PCA using "princomp" but the computed loadings produced by princomp are normalized

[R] Getting parameters of Gaussian fit in density

2008-11-12 Thread Victor Bloomfield
Is there a way to obtain the parameters (mean, sd, amplitude) of the gaussian functions obtained in a density fit to data. The faithful $waiting times is a standard example. The 2-gaussian fit is very nice, but how can I obtain the parameters? Thanks for your help. Regards, Victor

Re: [R] R's integrate function

2008-09-30 Thread Victor Hernando Cervantes Botero
I got the same error. > sessionInfo() R version 2.6.0 (2007-10-03) i386-pc-mingw32 locale: LC_COLLATE=Spanish_Colombia.1252;LC_CTYPE=Spanish_Colombia.1252;LC_MONETARY=Spanish_Colombia.1252;LC_NUMERIC=C;LC_TIME=Spanish_Colombia.1252 attached base packages: [1] stats graphics grDevices utils

Re: [R] Is there a way to not use an explicit loop?

2008-09-17 Thread Victor Hernando Cervantes Botero
Hi, you might try this: set.seed(100) m <- 10 size.a<- 10 prob.a<- 0.3 prior.constant = 0 draw1 = rbinom( m , size.a, prob.a ) beta.draws <- function(draw, size.a, prior.constant, n) { rbeta(n, prior.constant + draw, prior.constant + size.a - draw) } bdraws <- sapply(d

Re: [R] Blank certain areas of a contour plot

2008-09-17 Thread Victor Homar
h NA, then filled.contour will not plot in those areas. Hope this helps, -Original Message- From: [EMAIL PROTECTED] [[2]mailto:[EMAIL PROTECTED] project.org] On Behalf Of Victor Homar Sent: Tuesday, September 16, 2008 9:54 AM To: [EMAIL PROTECTED] Subject: [R] Blank certain areas of a contour plot

[R] Blank certain areas of a contour plot

2008-09-16 Thread Victor Homar
Hi, I'm interpolating a list of syncronous accumulated precipitation observations collected over a number of raingauge stations sited over land, over a regular lat/lon grid using akima's interp(). Then, I plot and locate geographycally the resulting field with a filled.contour() and a call t

Re: [R] psychometric functions

2008-08-25 Thread Victor Hernando Cervantes Botero
Hi, 2008/8/21 Mario Maiworm <[EMAIL PROTECTED]> > Hi, > I want to fit some psychophysical data with cumulative gaussians. There is > quite a convenient toolbox for matlab called 'psignifit' (formerly known as > 'psychofit'). It allows the lower bound of the sigmoid to vary slightly > from > zero,

[R] "Rotated Lat-Lon" projection in mapproj

2008-07-09 Thread Victor Homar
Hi, I'm trying to plot a field obtained from the atmospheric model WRF-NMM which uses a "Rotated Lat-Lon¨ map projection. The WRF documentation mentions that: · Rotates the earth's lat/lon grid such that the intersection of the equator and prime meridian is at the center of the model domain.

[R] Is this sapply behaviour normal?

2008-06-25 Thread Victor Homar
Hi, I'm trying to use sapply to compute the min of several variables, each of them stored in data.frames, grouped as a list: Is it normal that mean() and min() produce different objects dimensions? > str(dats) List of 5 $ log20:'data.frame': 83 obs. of 5 variables: ..$

Re: [R] Histogram inset into another histogram

2008-06-19 Thread Victor Homar
Hi Paul, Thanks for the answer. I temporarily did it with the subplot function from the TeachingDemos package but I like this version much better. Best, Victor. Paul Hiemstra wrote: Victor Homar wrote: Dear R users and helpers, I'm trying to find an example of a histogram plot as an

[R] Histogram inset into another histogram

2008-06-18 Thread Victor Homar
Dear R users and helpers, I'm trying to find an example of a histogram plot as an inset (upper right or left corner) of another histogram. Anyone has an example of that? Thanks for your help, Víctor. -- --- Víctor Homar San

Re: [R] problem using embedded R

2008-05-23 Thread Lobanov, Victor S. [PRDUS]
s are lost. -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 12:46 PM To: Lobanov, Victor S. [PRDUS] Cc: r-help@r-project.org Subject: Re: [R] problem using embedded R All the usual questions: What OS? What version of R? What is meant by 'environme

[R] problem using embedded R

2008-05-23 Thread Lobanov, Victor S. [PRDUS]
environment path gets reset to the system's default value, which renders R unusable. I wonder if anyone had experienced a similar problem and knows how to fix it? Victor [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Program output to file using a batch command file

2007-12-31 Thread Jean-Victor Côté
If I copy the following commands in my batch file to the R console, R creates a file named "basicStatsIBM.lis" with the program output in it: Sortie <- file(description = "basicStatsIBM.lis", open = "wt", blocking = TRUE, encoding = "UTF-8") sink(file = Sortie, append = FALSE, type = "outp

Re: [R] Spatial autocorrelation

2007-10-23 Thread Victor Landeiro
for spatial autocorrelation and include an online appendix with R commands! victor On 10/22/07, Geertje Van der Heijden <[EMAIL PROTECTED]> wrote: > > Hi, > > I have collected data on trees from 5 forest plots located within the > same landscape. Data within the plots are spa