[R] timezone specification on windows machine

2011-05-14 Thread Robert A'gata
Hi, I'm wondering what's the right value for specifying "America/New_York" time zone on a windows machine? I got my code which specify this time zone on as.POSIXct function work properly with this value on a linux machine. But it keeps giving me complaint on windows. Thank y

Re: [R] recursive function

2011-05-19 Thread Robert Baer
Perhaps this is useful: x=c(-2,0,2) sign(x)*abs(x) [1] -2 0 2 -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A. T. Still University of Health Sciences 800 W. Jefferson St. Kirksville, MO 63501 660-626-2322

Re: [R] [r] regression coefficient for different factors

2011-05-20 Thread Robert Baer
ed: 0.04491 F-statistic: 2.552 on 3 and 96 DF, p-value: 0.0601 -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A. T. Still University of Health Sciences 800 W. Jefferson St. Kirksville, MO 63501 660-62

Re: [R] Group close numbers in a vector

2011-05-21 Thread Robert Baer
){ action = c(TRUE, diff(x) <= 2) g = paste('x', '1', sep='') j = 1 for (i in 2: length(x)){ if (action[i-1] != action[i] | action[i] == FALSE) j = j+1 g[i] = paste('x', j, sep='') } df = data.frame(x, grp.x=g) } --

Re: [R] Data values on graphics

2011-05-24 Thread Robert Baer
ing percents pc = 100*vec/sum(vec) text(bp, c(1, 1), paste(round(pc,1), '%', sep=' ')) -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A. T. Still University of Health Sciences 800 W. Jefferson St.

Re: [R] Normality test

2011-05-27 Thread Robert Baer
. I personally find this graphical feedback to be a much more useful way to understand my data than doing a single normality test that produces a p-value. based upon assumptions I may not be privy to For more, see the help by typing: ?qqnorm ?qqline Rob -- Rob

Re: [R] [R-SIG-Finance] Measure quality of fit for MA(q), ARMA(p, q) and GARCH(p, q)

2011-06-04 Thread Robert A'gata
d residuals -- see > http://www.burns-stat.com/pages/Working/ljungbox.pdf > > However, this is an in-sample test.  Much > better is to do out-of-sample tests. > > On 04/06/2011 04:46, Robert A'gata wrote: >> >> Hi, >> >> I would like to ask for a gu

[R] Can't compile rtiff for OSX

2011-06-05 Thread Robert Baruch
I have libtiff installed from macports, and it is sitting there in /opt/local/lib: $ ls -l /opt/local/lib/*tiff* -rwxr-xr-x 2 root admin 796684 Jun 4 22:13 /opt/local/lib/libtiff.3.dylib -rw-r--r-- 2 root admin 990296 Jun 4 22:13 /opt/local/lib/libtiff.a lrwxr-xr-x 1 root admin 15

Re: [R] Line Graphs

2011-06-07 Thread Robert Baer
Create a title with a red, bold/italic font #title(main="Methods", col.main="red", font.main=4) # Label the x and y axes title(xlab=expression(paste(lambda[0]))) title(ylab= expression(paste("Estimate of ", lambda[0]))) # Create a legend at (1, g_range[2]) that is slightly sma

Re: [R] Line Graphs

2011-06-07 Thread Robert Baer
", pch=8, lty=1, col="yellow") abline(0, 1, col = "black") # Create a title with a red, bold/italic font #title(main="Methods", col.main="red", font.main=4) # Label the x and y axes title(xlab=expression(paste(lambda[0]))) title(ylab= expression(paste("Estimate of ", la

[R] Help with Median test and Coxon-Mann-Whittney test

2011-06-10 Thread Robert Johnson
Hi All, I have the following dataset (triplicates values of 5 independent measurements and duplicate vaues of a control): 12 3 4 5 C 181.8 58.2 288.9 273.2290.953.9 120.3 116.8108.9 281.3 446 39.6 86.1

[R] Linear model - coefficients

2011-06-12 Thread Robert Ruser
know that using contrast sum (?contr.sum) I could compute a3 = -(a1+a2). But I have many independent categorical variables and I'm looking for a fast solution. Robert __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Linear model - coefficients

2011-06-12 Thread Robert Ruser
ctor(X$x2) + factor(X$x3) + factor(X$x4) + factor(X$x5) ) coef(reg) and e.g. I get two coefficients for variable x1 (3-levels variable) but I would like to get the third. Of course I can calculate a3= -(a1+a2) where a1 and a2 are coefficients of the variable x1. I hope that I manage to explain my probl

Re: [R] Linear model - coefficients

2011-06-12 Thread Robert Ruser
Hi, but I want to get the coefficients for every variables from x1 to x5. (x1 was an example) Robert 2011/6/12 Jorge Ivan Velez : > Hi Robert, > > Try this: > reg2 <- lm( Y ~ factor(x1) + factor(x2) + factor(x3) + factor(x4) + > factor(x5) - 1, data = X  ) > cof(ref2) >

Re: [R] Linear model - coefficients

2011-06-12 Thread Robert Ruser
Hi Weidong, thank you very much. It really works fine. Robert 2011/6/12 Weidong Gu : > this may work. > X<-data.frame(sapply(X,function(x) as.factor(x))) > reg3=lm(Y~.,data=X) > dummy.coef(reg3) > > Weidong Gu > > On Sun, Jun 12, 2011 at 4:55 PM, Robert Ruser wrote:

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-12 Thread Robert Baer
- Original Message - Fantastic! It would be great if the description could be modified to include the mysterious bit about the upper and lower bound whisker positions: upper whisker = min(max(x), Q_3 + 1.5 * IQR) lower whisker = max(min(x), Q_1 - 1.5 * IQR) -- snip -- -

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-13 Thread Robert Baer
Hi Peter, You're absolutely correct! The description for 'range' in 'boxplot' help file is a little bit confusing by using the words "interquartile range". I think it should be changed to the "length of the box" to be exact and consistent with those in the help file for "boxplot.stats". The

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-13 Thread Robert Baer
Winsemius wrote: On May 13, 2010, at 10:25 AM, Robert Baer wrote: Hi Peter, You're absolutely correct! The description for 'range' in 'boxplot' help file is a little bit confusing by using the words "interquartile range". I think it should be changed to the &

[R] Text Editing - UltraEdit and R

2010-05-13 Thread Robert White
Hi, I use the text editor UltraEdit. Does anyone have any idea how to (a) run bloc lines of R code (rather than the entire file) from within UE and (b) execute graphics that will open up inside of R. I can run entire files of R code from within UltraEdit just fine via a power tool. But I would

[R] Integrating R with Text Editor UltraEdit

2010-05-14 Thread Robert White
Hi, I use the text editor UltraEdit. Does anyone have any idea how to (a) run bloc lines of R code (rather than the entire file) from within UE (b) whether running a whole file or just lines, get the graphics to work. I can run entire files of R code from within UltraEdit just fine via a power

[R] IF-ELSE question

2010-05-21 Thread Robert U
Dear R-users, I've been trying to write a script but i encounter much problems with basic functions.. That is, i try to write a simple IF ELSE statement, with 2 requirements for the IF : if (abs(x + Dataset$LAT[1]) <= 3) and (abs(y + Dataset$LONG[1]) <= 3) {z <- 1} else {z <-0} This does n

[R] loop for in and decimals

2010-05-21 Thread Robert U
Dear R-users, I'm trying to make the following loop: for (x in 0 : 10) and i would like x to be decimals rather than integers, giving a x range of e.g. 0.0 0.1 0.2 0.3 ... 9.9, 10. Would anyone know how to do that ? with regards,   [[alternative HTML version deleted]] __

[R] regexpr help (match.length=0)

2010-06-01 Thread McGehee, Robert
n what a zero length match means (i.e. why not return -1), and why the result isn't 4, match.length=3? > regexpr("[[:alpha:]]*", "123abc") [1] 1 attr(,"match.length") [1] 0 Thanks, Robert > R.version _ platform x86_64-apple-darwin9.

[R] Reading file

2010-06-01 Thread Robert Tsutakawa
I am trying to read a source program into a mac pro laptop, which uses Snow Leopard. R is unable to find the file containing my source program. I'm using the function source(" file name"). I need some examples or detailed instructions. I have no problem reading the file using PC. Bob

[R] ggplot2 -- scale_colour_manual()

2011-01-30 Thread Robert Baer
According to Hadley's ggplot book (p. 109), both the graphs below should have a legend, and yet none appears in my hands. Any suggestions? I can't see a typo. Is there a bug? library(ggplot2) data(LakeHuron) huron = data.frame(year=1875:1972,level=LakeHuron) p = ggplot(huron, aes(year)) +

Re: [R] ggplot2 -- scale_colour_manual()

2011-01-30 Thread Robert Baer
o specify a scale (personal experience :) ggplot2 is easiest when you do the hard work in arranging the data so that the call to ggplot() Is straightforward. In other words, it's not just about ggplot2, it's also about plyr and reshape(2). Keep reading; you'll get there (Chapte

Re: [R] delete rows

2011-02-07 Thread Robert Baer
Assuming your data is in a dataframe called df: # make fake df df = data.frame(a=1:472, b=1001:1472) df[416:472, ] # check the rows you want to remove df[-(416:472), ] # remove them df # see what's left -- From: "Christopher Porter" Sent: Sunda

[R] FP growth in R?

2011-02-08 Thread robert tibshirani
of a reply should increase. Prof. Robert Tibshirani  Depts of Health Research and Policy, and Statistics  Stanford Univ  Stanford CA 94305 t...@stanford.edu http://www-stat.stanford.edu/~tibs __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

[R] Hmisc errbar color

2011-02-10 Thread Robert Baer
) library(Hmisc) plot(x,y) errbar(m$x, m$y, m$y+1.96*se$y, m$y-1.96*se$y,col='red',cex=2,type='b',add=TRUE) Thanks, Rob ------ Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A. T. Still Universit

[R] concatenate vector after strsplit()

2011-02-20 Thread Robert Baer
ls is a list of character vectors created by strsplit() I want to concatenate the 1st 4 character elements of each list item as a new vector called file. I admit to being confused about list syntax even after numerous readings. Here's what I tried: ls <- list(c("Focused", "10k", "A12", "t04.

Re: [R] concatenate vector after strsplit()

2011-02-20 Thread Robert Baer
You might try do.call(rbind, lapply(yourlist, "[", 1:4)) Thanks, Jorge, but when I tried this I simply got a matrix of character strings rather than my original list of character strings as in: m = do.call(rbind, lapply(ls, "[", 1:4)) m [,1] [,2] [,3] [,4] [1,] "Focused" "10k" "A12

Re: [R] concatenate vector after strsplit()

2011-02-20 Thread Robert Baer
Thanks Jorge and David. Both worked. Looks like I have to read more on "[" as an extractor function for lists. do.call() is also on my list of "low level magic' I don't understand.Appreciate the help! fil1 = do.call(c, lapply(lapply(ls1, "[", 1:4), paste, sep = "", collapse = "-")) fil

Re: [R] concatenate vector after strsplit()

2011-02-20 Thread Robert Baer
Thanks Gabor. Your suggestions work as well and have been helpful in my understanding, I can't use any excuse of not knowing about "]" in this case! Rob fil3 = sapply(ls1, function(x) paste(x[1:4], collapse = "")) fil4 = sapply(unname(as.data.frame(ls1))[1:4,], paste, collapse = "") fil5 =

[R] Pulling p values

2011-02-26 Thread Gallavan, Robert
Hi folks, I'm doing ANOVA with multiple comparisons. I've used both the TukeyHSD function and the multcomp procedure. In both cases, I get some tantalizing results such as this... e = aov(lm(d.all[,(n+4)] ~ d.all[,4]) TukeyHSD(e) Tukey multiple comparisons of means 95% family-wise co

[R] Plotting a 3D histogram

2011-03-01 Thread Robert A'gata
Hi - I am wondering if there is any package that does plotting of joint histogram between 2 variables, i.e. f(x,y). I found rgl but it seems not so intuitive to use. I'm wondering if there is any alternative. Thank you. Robert __ R-help@r-projec

Re: [R] RWinEdt difficulties

2011-03-02 Thread Robert Kinley
try RStudio instead :o) http://www.rstudio.org/ Robert Kinley Uwe Ligges Sent by: r-help-boun...@r-project.org 02/03/2011 15:00 To John Seers cc r-help@r-project.org Subject Re: [R] RWinEdt difficulties On 01.03.2011 11:01, John Seers wrote: > He

[R] vector("integer", length) : vector size specified is too large

2011-03-03 Thread Robert Guldemond
Good day to the R community, I am interested to run the plot.count() function in the "untb" package. My script is as follows:- > library(untb) > Community1 <- > structure(c(371,167,119,78,74,53,50,31,28,25,20,19,19,17,13,12,12,10, > 9,9,8,8,7,7,7,7,6,6,6,6,5,5,5,5,4,4,4,3,3,3,2,2,2,2,2

[R] Rstudio question

2011-03-04 Thread Robert Kinley
I really like RStudio ... ... but I wish it wouldn't automatically reload the last .RData it had. Anyone know how to fix this ... ? Also - does anyone know is there an Rstudio-user email-list forum thingy out there ? ta. Robert Kinley [[alternative HTML ve

[R] loess function takes long to estimate

2011-03-04 Thread Robert A'gata
Is my understanding correct? Thank you in advance. Regards, Robert __ 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,

[R] library(foreign) read.spss warning

2011-03-25 Thread Robert Baer
" $major [1] "2" $minor [1] "12.2" $year [1] "2011" $month [1] "02" $day [1] "25" $`svn rev` [1] "54585" $language [1] "R" $version.string [1] "R version 2.12.2 (2011-02-25)"

[R] new syntax: bash-like pipe operator

2011-03-29 Thread Robert Sugar
return(eval(thecall$y)) #evaluate } would be happy to receive some feedback on 1. Would you find this useful? 2. Is there any bugs/features that you'd like to mention? 3. Should I go ahead and make an R package on that? Cheers, Robert [[alternative HTML version deleted]] __

Re: [R] save ordinary numerical calculations as pdf

2011-03-30 Thread Robert Baer
I'm not sure about .pdf, but look at ?sink to create a text file. You could then print this as a .pdf if you so desired. Rob -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A. T. Still University of H

[R] corSpatial and nlme

2011-04-06 Thread Robert Baer
I noticed that ?corClasses in package nlme does not list corSpatial among the standard classes. This might either be intentional because corSpatial is not "standard" , or it might be simply an oversight that needs correcting. ------ Robert W.

[R] ddply and nlminb

2011-04-13 Thread Robert Clement
31.75188 -2.631321 17.32565 0.821518 8 0.748380 0.06081973 -2.119109e-05 31.75188 -2.631321 17.32565 0.821518 Can someone point out the error in my ways, and also the correct way to return both the parameter estimates and the parameter errors. Thank you Robert # END

[R] Statistical Tables Really Fast

2011-04-14 Thread Robert Wilkins
/BASE and SAS/STAT is not yet in beta mode. http://fivetimesfaster.blogspot.com Robert __ 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

[R] factor analysis - constraints

2011-04-19 Thread Robert Ruser
Dear R Users, I'm wondering how is it possible to get |factor loadings| <1 in factor analysis model (factanal) performing maximum-likelihood estimation. Is it caused by some constraints? If so, what kind of constraints are placed and when (during the estimation or after)?

[R] Using the ConText editor?

2011-08-22 Thread Robert Lundqvist
commands are highlighted and such, but the most important part, sending commands writtten in a ConText window into R is something I haven't been able to do. Anyone who has tried and made it work? Robert ** Robert Lundqvist Norrbotten regional council Sweden [[altern

[R] Error message related to 'weights for observations' argument in glmpath

2011-08-24 Thread Robert Nee
would appreciate any help that people can offer and apologize in advance if I have missed an obvious answer. Kind regards, Bob Robert J. Nee, PhD Candidate Division of Physiotherapy School of Health and Rehabilitation Sciences The University of Queensland St. Lucia, QLD 4072 AUSTRALIA r@uq

[R] ggplot2, grid graphics, x11(), windows(), and device fonts

2012-06-05 Thread Robert Baer
:\R tools\MinGW\bin;c:\Rtools\MinGW64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Window sPowerShell\v1.0\;C:\Program Files\Microsoft Application Virtualization Client;C:\Program Files\WIDCOMM\Bluetooth Softwa re\;C:\Program Files\Windows Live\Shared;C:\Program

Re: [R] R2wd error in wdGet

2012-06-10 Thread Robert Baer
wdGet() Error in if (wdapp[["Documents"]][["Count"]] == 0) wdapp[["Documents"]]$Add() : argument is of length zero Not sure what your error means without more context, you should see: Loading required package: rcom Loading required package: rscproxy Do you have RDCOMClient installed and worki

Re: [R] How to plot linear, cubic and quadratic fitting curve in a figure?

2012-06-13 Thread Robert Baer
ewenv +cc[3]*newenv^2 +cc[4]*newenv^3 lines(newenv, sp.cubic, col='blue', lty=2) -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A. T. Still University of Health Sciences 800 W. Jefferson St. Kirksville, MO 63501 660-626-232

Re: [R] binary tree

2012-07-02 Thread Robert Baer
On 6/27/2012 3:20 AM, Peppino wrote: Hi I am new with R I Have to build a binary tree with R. I'm very confused was wondering if anyone had any R sample code they would share. Any bady can help me? You might want to look at the R Task view for phylogenetics: http://cran.r-project.org/web/views

[R] Finding the last value before a certain date

2012-07-19 Thread Robert Latest
before the given date. Example: Input: as.Date("2010-10-06"). Output: 1968 (because the last value is from 2010-10-04) I've been tinkering with this for an hour now, without success. I think the solution is either surprisingly complicated or surprisingly simple.

[R] Documenting variables, dataframes and files?

2011-06-22 Thread Robert Lundqvist
solution on a lower level, closer to data. I can't find any pointers in the standard manuals. Suggestions are most welcome. Robert ** Robert Lundqvist Norrbotten regional council Sweden [[alternative HTML version de

Re: [R] Running R from windows command prompt

2011-06-28 Thread Robert Baer
Subject: Re: [R] Running R from windows command prompt Hi Siddharth, many experts already answered your query, however I would like to share how I run R in command prompt: 1. open command prompt 2. change working directory: cd C:\\R-2.13.0\bin\i386 (put the entire path here, howe

[R] new version of samr package

2011-07-01 Thread robert tibshirani
functions SAM and SAMseq. Comments (and bug reports) welcome! -- I get so much email that I might not reply to an incoming email, just because it got lost. So don't hesitate to email me again. The probability of a reply should increase. Prof. Robert Tibshirani  Depts of Health Researc

Re: [R] Bar chart in ascending order for each level of X

2011-07-16 Thread Robert Baer
The question is how to plot a bar chart in which bars are sorted in ascending order for each level of X. I would appreciate receiving your advice and help. This toy example might help: barlab <- sample(LETTERS,10) values <- sample(1:100, 10) op <- par(mfrow= c(4,1)) barplot(values, names.arg

Re: [R] barplot question

2011-07-19 Thread Robert Baer
As Sarah requested, could you at least read the posting guide and provide us with some sample data? -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A. T. Still University of Health Sciences 800 W. Jefferson

[R] 5 arguments passed to .Internal(matrix) which requires 7

2011-08-01 Thread Robert Pfister
arguments (only three being given) if the matrix() function is supposed to take seven arguments? Thank you, Robert [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] 5 arguments passed to .Internal(matrix) which requires 7

2011-08-01 Thread Robert Pfister
arguments (only three being given) if the matrix() function is supposed to take seven arguments? Thank you, Robert [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] 5 arguments passed to .Internal(matrix) which requires 7

2011-08-01 Thread Robert Pfister
On Mon, Aug 1, 2011 at 1:02 PM, Jean V Adams wrote: > > Robert, > > What code did you run to get that error? > > Do you get the error if the only code that you run is ... > matrix(0, 30, 10) > > You gave three arguments to matrix, which requires none, but can

Re: [R] 5 arguments passed to .Internal(matrix) which requires 7

2011-08-01 Thread Robert Pfister
l))) > } > > > I'm running Windows R version 2.13.0 (2011-04-13). > > Jean > > > From: > Robert Pfister > To: > Jean V Adams > Cc: > r-help@r-project.org > Date: 08/01/2011 01:35 PM Subject: Re: [R] 5 arguments passed to > .Internal(matrix) wh

Re: [R] Workspace Question.

2012-07-23 Thread Robert Baer
The objects from an R session are saved in the RWorking directory of the session. The answer to your question will depend on whether you started the different versions of R using shortcuts located in different folders or the same folder. The objects should not be automatically deleted so I wo

Re: [R] R2wd package wdGet() error

2012-07-23 Thread Robert Baer
On 7/23/2012 4:25 PM, Jean V Adams wrote: I am having trouble using the R2wd package. The last time I used it successfully, I was running an earlier version of R and an earlier version of Word with an earlier Windows OS. I'm not sure which if any of these changes might be contributing to the pr

Re: [R] Turning off continuation prompt?

2012-07-30 Thread Robert Baer
On Mon, 30 Jul 2012 09:58:09 +0100 (BST) (Ted Harding) wrote: Greetings All. My apologies for a question whose answer is probably readily available somewhere (for some interpetation of "somewhere") ... Say I have just typed (from a sheet of paper) several lines into the R command-line, and what

Re: [R] cell blocking in log-linear models with a survey sample

2012-07-30 Thread Robert Arnold
Hello. I hope someone can suggest a way to test log-linear models with cells blocked when working with survey data. The tables I am working with come from a multi-stage stratified sample. The command 'svyloglin' in the package 'survey' works well when I want to choose between models with tw

Re: [R] ANOVA repeated measures and post-hoc

2012-08-16 Thread Robert Baer
Check out: http://rtutorialseries.blogspot.com/2011/02/r-tutorial-series-two-way-repeated.html On 8/15/2012 11:32 AM, Diego Bucci wrote: > Hi, > I performed an ANOVA repeated measures but I still can't find any good news > regarding the possibility to perform multiple comparisons. > Can anyone hel

Re: [R] return first index for each unique value in a vector

2012-08-28 Thread Robert Baer
On 8/28/2012 5:52 PM, Bert Gunter wrote: Sheesh! I would have thought that someone would have noticed that on the ?unique Help page there is a link to ?duplicated, which gives a _logical_ vector of the duplicates. From this, everything else can be quickly derived -- and packaged in a simple Matl

Re: [R] read.table question

2011-12-08 Thread Robert Baer
z.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. -- Robert W. Baer, Ph.D. Professor of Physiology Kirk

[R] Boston/Cambridge -- Statistical Programming Language Technology Breakthroughs

2011-12-11 Thread Robert Wilkins
If you are a statistician or researcher working in Boston/Cambridge, and you have a strong interest in breakthroughs in statistical programming language technology, contact me. Robert __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] Product integral in R

2011-12-18 Thread Robert A'gata
Hi, I am wondering if anybody ever come across any implementation of product integral in R? As far as I googled, I haven't come across any package. Is there any? Thank you. http://en.wikipedia.org/wiki/Product_integral Regards, Robert __ R-h

Re: [R] a quick question about "rbinom"

2012-01-04 Thread Robert Baer
eone help? Thanks so much, X1<-c("A","B")[rbinom(n,1,0.6)+1] X2<-c("C","D")[rbinom(n,1,0.1)+1] It mean index the vector as 1's and 2's (1st and 2nd item in list) rather than 0's and 1's because R indices start at 1, not 0.

[R] Advice on approach to weighting survey

2011-09-30 Thread Farley, Robert
ips. Would this change the consideration of using the svydesign process? I initially looked into this process about 3 years ago, but haven't touched R since then Thanks in advance, Robert Farley LACMTA 1 Gateway Plaza Los Angeles, CA

[R] AsOf join in R

2011-10-04 Thread Robert A'gata
mp together while what I want is actually latest value prior to timestamp in A. Any example would be greatly appreciated. Thank you. Cheers, Robert __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

Re: [R] [R-SIG-Finance] AsOf join in R

2011-10-05 Thread Robert A'gata
o the trade. Is there any better way? Or I misunderstand anything about the RTAQ's function? Thank you. Robert On Wed, Oct 5, 2011 at 1:59 AM, Roupell, Darko wrote: > na.locf {zoo}, should do a job, also if you look in RTAQ they wrote a > function that looks on previous tick and carri

Re: [R] [R-SIG-Finance] AsOf join in R

2011-10-05 Thread Robert A'gata
eferred to in this communication. Commonwealth Bank and its subsidiaries > have effected or may effect transactions for their own account in any > investments or related investments referred to herein. In the case of certain > securities Commonwealth Bank is or may be the only m

Re: [R] [R ]Plot a colored rectangle under the points of a graph

2011-10-08 Thread Robert Baer
rg 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. -- Robert W. Baer, Ph.D. Professor of Physiology Kir

Re: [R] How to run Rcmdr with OS 10.4?

2011-10-12 Thread Robert Baer
d TcTlk 8.5.5-x11. What else to do? __ 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, rep

[R] OT RE: US States percentage change plot

2011-10-13 Thread Farley, Robert
OT question: can R produce Cartograms? Here's an example of World Population: http://www.worldmapper.org/display.php?selected=2 This might make Texas smaller and Rhode Island larger.... Robert Farley LACMTA -Original Message- From: r-help-boun...@r-project.org [mailto:r-help

[R] Aggregating Survey responses for weighting

2011-10-17 Thread Farley, Robert
view? There are a huge number of groupings to be done, so I'm hoping for an algorithm or process that could automatically group the stops and report when it fails to find sufficient "near neighbors" to aggregate. Thanks in advance, Robert Farley LACMTA 1 Gateway Plaza

[R] Segfault and bad output with fOptions::rnorm.sobol

2011-10-21 Thread Robert McDonald
I have had the following problem with R 2.10, 2.13.1, and 2.13.2, running on Ubuntu linux 10.04, xubuntu 11.10, and a version of Redhat (I think 5). rnorm.sobol is producing impossible random values, and occasionally the routine crashes. Here are samples of the output and the crash message. librar

Re: [R] Segfault and bad output with fOptions::rnorm.sobol

2011-10-22 Thread Robert McDonald
On Sat, Oct 22, 2011 at 2:45 AM, Patrick Burns wrote: > This should really go to Rmetrics > since it is a bug in their code. > > You could find out more specifically > where the problem is by running it > under valgrind. > > First you have to have valgrind, then > start R with it: > > R -d valgrin

Re: [R] Segfault and bad output with fOptions::rnorm.sobol

2011-10-23 Thread Robert McDonald
> > I think your question is answered by > > http://cran.r-project.org/web/packages/fOptions/ChangeLog > > 2010-04-23 chalabi > >* ChangeLog, DESCRIPTION: updated DESCR and ChangeLog >* src/085A-LowDiscrepancy.f: fixed sobol RVS on 64 bit platform >* ChangeLog, DESCRIPTION

Re: [R] Segfault and bad output with fOptions::rnorm.sobol

2011-10-23 Thread Robert McDonald
On Sun, Oct 23, 2011 at 11:48 AM, Robert McDonald wrote: > I think your question is answered by >> >> http://cran.r-project.org/web/packages/fOptions/ChangeLog >> >> 2010-04-23 chalabi >> >>* ChangeLog, DESCRIPTION: updated DESCR and ChangeLo

Re: [R] new to R coding.

2011-10-25 Thread Robert Baer
ovide commented, minimal, self-contained, reproducible code. -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A. T. Still University of Health Sciences 800 W. Jefferson St. Kirksville, MO 63501 660-626-2322 FAX 660-626

[R] Double integration using R

2011-11-06 Thread Robert A'gata
)) (1-N(\delta,\sigma \sqrt(u))) du. Then calling integrate function on this function. This straightforward way does not seem to work. I am not sure if there is any sample code to do such integration? Thank you. Regards, Robert __ R-help@r-project.org

[R] how to send text output to its own window

2012-03-05 Thread Robert Kinley
platform: R 2.14.2 -Windows XP - Rstudio When I use cat() or print() in a script, the output text is of course mixed up with the lines of the script. I can sink() the output to a textfile and then play the file back at the end of the script, but that's not really what I'm after. It

Re: [R] how to send text output to its own window

2012-03-06 Thread Robert Kinley
2012 18:39 To Robert Kinley cc r-help@r-project.org Subject Re: [R] how to send text output to its own window Sounds like a question for the RStudion people? Uwe Ligges On 05.03.2012 12:35, Robert Kinley wrote: > platform: R 2.14.2 -Windows XP - Rstudio > > When I use

[R] sourcearg function is there a better way already built into R

2012-03-06 Thread Robert Sandefur
d %s\nOrg Log+0.01 vs Dup Log+0.01 Plot\" )",asy,asy,asy)) print(names(j)) ipsend() detach(j) } A more typical invocation would use tapply to get the names of all the variables in the CSV file into asyl and then do the for loop. sourcearg works fine for my purposes but my

[R] Windows - **Paste commands only** issue

2012-03-06 Thread Robert Baer
ot;" $major [1] "2" $minor [1] "14.2" $year [1] "2012" $month [1] "02" $day [1] "29" $`svn rev` [1] "58522" $language [1] "R" $version.string [1] "R version 2.14.2 (2012-02-29)" -- Robert W. B

Re: [R] sourcearg function is there a better way already built into R

2012-03-06 Thread Robert Sandefur
List and Jim -Original Message- From: jim holtman [mailto:jholt...@gmail.com] Sent: Tuesday, March 06, 2012 09:47 To: Robert Sandefur Cc: r-help@r-project.org Subject: Re: [R] sourcearg function is there a better way already built into R The basic question is what do you want the

Re: [R] sourcearg function is there a better way already built into R

2012-03-06 Thread Robert Sandefur
riginal Message- From: jim holtman [mailto:jholt...@gmail.com] Sent: Tuesday, March 06, 2012 09:47 To: Robert Sandefur Cc: r-help@r-project.org Subject: Re: [R] sourcearg function is there a better way already built into R The basic question is what do you want the function to do. It seems c

[R] Where do I report CRAN mirror problems?

2012-03-06 Thread Robert King
Where should I report mirror problems? There doesn't seem to be anywhere on http://cran.r-project.org/mirrors.html listing contact emails for mirror admins. There is some problem with the debian binaries on http://cran.ms.unimelb.edu.au output from my apt-get update says: W: Failed to fetch http

Re: [R] sort dates

2012-03-09 Thread Robert Baer
20" "2012-01-22" "2012-01-31" [6] "2012-02-12" "2012-02-17" "2012-02-28" "2012-03-01" "2012-03-05" [11] "2012-03-08" "2012-03-17" "2012-03-18" "2012-03-21" "2012-04-01" Cheers, Carol _____

[R] subset problem

2012-03-14 Thread Farley, Robert
d <- subset(OBDataSumm, ROUTE == "MT-802") > dim(SubRed) [1] 0 130 > Robert Farley LACMTA 1 Gateway Plaza Los Angeles, CA 90012-2952 (213)922-2532 farl...@metro.net [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] subset problem

2012-03-15 Thread Farley, Robert
y/LAMTA_OD_WEIGHTED_DATA_SETS_012512/LAMTA_OD_SUMMARY_WEIGHTED_012512.SAV", : P:/Data/OBSurveys/OBSurvey-2010-2011/Final Delivery, Metro On-Board O-D Survey/LAMTA_OD_WEIGHTED_DATA_SETS_012512/LAMTA_OD_SUMMARY_WEIGHTED_012512.SAV: Unrecognized record type 7, subtype 18 encountered in s

[R] summing "transfers"

2012-03-15 Thread Farley, Robert
$expwgt, colvl-colvf ), list( as.matrix(SubOre[ ,colvf:(colvl-1)]), as.matrix(SubOre[ ,(colvf+1):colvl]) ), sum) but there are too many rows and columns to print. Robert Farley LACMTA 1 Gateway Plaza Los Angeles, CA 90012-2952 (213)922-2532 farl...@metro.net

Re: [R] summing "transfers"

2012-03-16 Thread Farley, Robert
NA NA NA NA NA [ reached getOption("max.print") -- omitted 595 rows ]] But I have no clue if this even has the interchanges I need. Robert Farley LACMTA -Or

Re: [R] Identifying a change in events between bins

2012-03-19 Thread Robert Baer
n both fwd and rev data sets). What I've been trying to gt to work is to generate values based on 0, 0.5 and 1x the average events, and trying to pull out the range of bins that fall into each of those categories (possibly 1 SD higher or lower to account for the stochastic variation), but I&#

Re: [R] How to get the input of a function right?

2012-03-25 Thread Robert Baer
vide commented, minimal, self-contained, reproducible code. -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A. T. Still University of Health Sciences 800 W. Jefferson St. Kirksville, MO 63501 660-626-2322 FAX 660-62

<    1   2   3   4   5   6   7   8   9   >