Re: [R] make install libgfortran.so.5: cannot open shared object file: No such file or directory; conftest.c:1:10: fatal error: jni.h: No such file or directory

2022-11-21 Thread Rob Kudyba
> В Mon, 21 Nov 2022 10:19:36 -0500 > Rob Kudyba пишет: > > > I edited the last line to be: > > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/gcc-11.2/lib64 then > > make install errored with: > > /path/to/R-4.2.2/bin/exec/R: error while loading shared libra

Re: [R] make install libgfortran.so.5: cannot open shared object file: No such file or directory; conftest.c:1:10: fatal error: jni.h: No such file or directory

2022-11-21 Thread Rob Kudyba
On Sun, Nov 20, 2022 at 2:26 PM Ivan Krylov wrote: > On Sun, 20 Nov 2022 14:03:34 -0500 > Rob Kudyba wrote: > > > /path/to/gcc-11.2/lib is definitely in LD_LIBRARY_PATH when loading > > the GCC 11.2 module. > > > > If using the /path/to/R-4.2.2/etc/ldpaths where

Re: [R] make install libgfortran.so.5: cannot open shared object file: No such file or directory; conftest.c:1:10: fatal error: jni.h: No such file or directory

2022-11-20 Thread Rob Kudyba
> It should be possible to run R without installing it, as > /path/to/R-4.2.2/bin/R (strictly speaking, as bin/R under the build > directory, if you're building R separately from the source tree). Does > it work? > So far R does seem to be working and I've tested installing some packages. Is there

[R] make install libgfortran.so.5: cannot open shared object file: No such file or directory; conftest.c:1:10: fatal error: jni.h: No such file or directory

2022-11-20 Thread Rob Kudyba
On RHEL 8 with GCC 11.2.0 loaded as a module in a non-standard location I'm the below error with make install. libgfortran.so is definitely in $LD_LIBRARY_PATH, i.e., /path/to/gcc-11.2/lib64 ls -l /path/to/gcc-11.2/lib64/*fortran.so* lrwxrwxrwx 1 rk3199 user20 Mar 24 2022 libgfortran.so -

Re: [R] LHS random number generator

2021-04-14 Thread Rob C
Shah, I am the maintainer of the lhs package. Please feel free to contact package maintainers directly for help specific to their package. If I understood your request, this is how I would construct the lhs... prior_lhs <- data.frame( name = c("r_mu", "r_sd", "lmp", "gr_mu", "gr_sd", "alpha1"

Re: [R] Using item difficulties from a fitted Partial Credit Model to predict person abilities in an extended dataset?

2020-06-07 Thread Rob Forsyth
OK thanks for the guidance Rob > On 7 Jun 2020, at 16:15, Bert Gunter wrote: > > ⚠ External sender. Take care when opening links or attachments. Do not > provide your login details. > Such package/methodology specific questions may well go unanswered here. They > are es

[R] Using item difficulties from a fitted Partial Credit Model to predict person abilities in an extended dataset?

2020-06-07 Thread Rob Forsyth
mates for the remaining ~950 observations (at other timepoints) not used to fit the model; and I can't see from the eRm package documentation how to do this? Advice very much appreciated Rob __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] R CMD build: "Error in if (any(update))"

2019-06-09 Thread Rob Foxall
t; > > 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 Sun, Jun 9, 2019 at 8:40 PM Rob Foxall wrote: > >

[R] R CMD build: "Error in if (any(update))"

2019-06-09 Thread Rob Foxall
quot;OK", but I am completely stuck as to how to narrow it down further, and Dr. Google has already failed me. Using R version 3.6.0, R tools version 3.5.0.4 (I don't recall if had different versions previous time I built this package in Feb

Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-05-30 Thread Rob C
Latin hypercube? This is a more difficult question. In some ways, the sample is still a Latin hypercube since it was drawn that way. But once the sample has been discretized into the distance classes, then it loses the latin property of having only one sample per "row". It might be clo

Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-05-27 Thread Rob C
rate=exponential_rate) hist(Y[,1], breaks=10) # you can transform the other marginals as required and then assess function sensitivity model_function <- function(z) z[1]*z[2] + z[3] apply(Y, 1, model_function) # now, trying to use pse library(pse) q <- lis

Re: [R] order list of date (bug?)

2017-01-26 Thread rob vech
Hi William, asking to the r-devel list I resolved the problem! It depends from the timezone (tz param) that I didn't specified and so R automatically uses my local time and considers also the daylight saving time (that comes at 2:00 at my position). As my dates are in solar time, I specified the

[R] order list of date (bug?)

2017-01-20 Thread rob vech
uot; "2016-03-27 02:35:50" the last two terms should be before (note that CET is missing). if I change "2016-03-27 02:05:50" and "2016-03-27 02:35:50" to something like "2016-03-27 01:05:50" and "2016-03-27 01:35:50" it seems to work. It seems to

Re: [R] JSON data in data frame

2017-01-14 Thread Rob Baer
Try this: # get weather data library(jsonlite) dat<- fromJSON('http://api.openweathermap.org/data/2.5/group?id=524901,703448,2643743&units=metric&appid=ec0313a918fa729d4372555ada5fb1f8') tab <- dat$list #look at what we get class(tab) names(tab) ncol(tab) nrow(tab) tab[,c("clouds","wind","name")

Re: [R] How to suppress console output when using choose.dir()?

2016-01-11 Thread Rob Grant
Thank you. Found uninstalling PC bloatware 'Acer Portal' rectified the problem. -Original Message- From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Sent: Sunday, 10 January 2016 6:51 PM To: Rob Grant; r-help@r-project.org Subject: Re: [R] How to suppress console o

[R] How to suppress console output when using choose.dir()?

2016-01-09 Thread Rob Grant
to be running. 22:07:18.873##ERR##|9824|ACloudToBeSynced.cpp:80:CACloudToBeSynced::IsMember Of| CCDIGetSyncState for syncbox fail rv -9055 ... Have tried sink(), invisible(), options(echo = FALSE), capture.output(). None working for me. Regards, Rob Grant [[alternative HTML version de

[R] Matching posterior probabilities from poLCA

2015-08-03 Thread Rob de Vries
Hi all, I'm a newbie to R with a question about poLCA. When you run a latent class analysis in poLCA it generates a value for each respondent giving their posterior probability of 'belonging' to each latent class. These are stored as a matrix in the element 'posterior'. I would like to create a d

Re: [R] rgdal installation with two versions of GDAL

2015-04-22 Thread Rob Skelly
on R-devel and > questions about rgdal on R-sig-geo. > Apologies. I'll ask there next time. Rob [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/list

[R] rgdal installation with two versions of GDAL

2015-04-21 Thread Rob Skelly
ng the 1.11.2 libs into /usr/local, where it works fine. So, the question is, how to I convince R to use the new library search path? I'm on xubuntu, and R is installed using apt. Thanks, Rob [[alternative HTML version deleted]] __ R-hel

Re: [R] P-value from Matching

2015-02-16 Thread Rob Wood
Hi Peter, That was my first port of call before I posted this thread. Unfortunately, it does not seem to explicitly state which test is used or how the p-value is calculated. Thanks, Rob. -- View this message in context: http://r.789695.n4.nabble.com/P-value-from-Matching-tp4703309p4703345

[R] P-value from Matching

2015-02-15 Thread Rob Wood
Hi all, When using the match command from the matching package, the output reports the treatment effect, standard error, t-statistic and a p-value. Which test is used to generate this p-value, or how us it generated? Thanks, Rob. -- View this message in context: http://r.789695.n4

[R] GenMatch providing different results

2014-12-16 Thread Rob Wood
an anyone point me in the right direction to diagnose my problem? Thanks, Rob. -- View this message in context: http://r.789695.n4.nabble.com/GenMatch-providing-different-results-tp4700836.html Sent from the R help mailing list archive at Nabble.com. ___

[R] New editions of R Books from Chapman & Hall/CRC

2014-06-30 Thread Calver, Rob
Take advantage of a 20% discount on new editions of the most recent R books from Chapman & Hall/CRC! June and July will be very busy for us, with new editions of some of our most popular R books publishing. We are pleased to offer a 20% discount on these titles through our website. To take adv

[R] R Books from Chapman & Hall/CRC

2014-02-04 Thread Calver, Rob
Take advantage of a 20% discount on the most recent R books from Chapman & Hall/CRC! We are pleased to offer our latest R books at a 20% discount through our website. To take advantage of this offer, simply visit www.crcpress.com, choose your titles, and insert code EZL20 in the Promotion Code

[R] The R Series from Chapman & Hall/CRC

2014-01-28 Thread Calver, Rob
ions editors below. Please provide brief details of topic, audience, aims and scope, and include an outline if possible. We look forward to hearing from you. Best regards, Rob Calver (rob.cal...@tandf.co.uk) David Grubbs (david.gru...@taylorandfrancis.com) John Kimmel (john.kim...@tayloran

[R] Chess Playing Software Written in R

2013-10-28 Thread Rob Bernard
Have there been attempts to build a chess engine in R? If so, is it available anywhere? I recognize that R really isn’t the right language for a chess engine, but I was more curious if it had been attempted. Thank you. Rob Bernard -- -- Robert N. Bernard minus

Re: [R] Latin Hypercube Sample and transformation to uniformly distributed integers or classes

2013-10-09 Thread Rob Carnell
t;h", col="blue", lwd=2, ylim=c(0,120), ylab="Frequency", xlab="y[,1]") plot(1:3, c(table(y[,2])), type="h", col="blue", lwd=2, ylim=c(0,400), ylab="Frequency", xlab="y[,2]") hist(y[,3], main="") hist(y[,4], m

Re: [R] padding specific missing values with NA to allow cbind

2013-06-11 Thread Rob Forsyth
-Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On >> Behalf >> Of Rob Forsyth >> Sent: Monday, June 10, 2013 2:42 PM >> To: r-help@r-project.org >> Subject: [R] padding specific missing values with NA

[R] padding specific missing values with NA to allow cbind

2013-06-10 Thread Rob Forsyth
iers) < nrows(mydata) and I'm getting in a tangle trying to pad the appropriate rows of outliers Thanks Rob __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-proje

Re: [R] How to suppress default legend in plot.cuminc()

2013-05-16 Thread rob
works for you, Rob -- View this message in context: http://r.789695.n4.nabble.com/How-to-suppress-default-legend-in-plot-cuminc-tp4664305p4667170.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

[R] Problem with constrained nlsList model

2013-05-14 Thread Rob Forsyth
e order of ~ 100 so I'm not sure why the constrained nls model doesn't converge on at least some occasions? Am I doing something else wrong? Thanks Rob __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] RODBC MSSQL query with date - time tag

2013-04-12 Thread Rob Steenburgh
695598 -19.9538670 273.4348 0.15818150 -2.602005 -1.4240593 -28.647099 273.4789 2.970420 How do I properly format the query in RODBC to obtain the results I seek? I was unable to discover a solution in the archives, although it appears I'm not the only one who has struggled wit

[R] Online resources for beginners

2013-03-19 Thread Rob Knell
. Regards Rob Knell __ 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] Introductory R - new book

2013-03-14 Thread Rob Knell
like a copy for a review drop me a line. www.introductoryr.co.uk Cheers all Rob Knell __ 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 pr

Re: [R] latin hypercube sampling

2013-02-19 Thread Rob Carnell
al windows() par(mfrow=c(2,2)) apply(t, 2, hist, breaks=50) # these should be the results of the functions windows() par(mfrow=c(2,2)) apply(result, 2, hist, breaks=50) Please feel free to contact me as the package maintainer if you need additional help with lhs. Rob ___

[R] PCM() non-convergence problem: how to get diagnostics?

2012-07-26 Thread Rob Forsyth
s trying to generate some diagnostics to get a better idea of what the problem(s) are, and/or adjust default parameters used in the nlm call to see if this helped achieve convergence. Setting options(warn=1) doesn't appear to help and am unclear how set flags such as print.level for the nlm c

[R] Failed Convergence when using mi to generate synthetic data

2012-05-09 Thread Rob James
I was hoping to use mi to generate a synthetic version of a database. The strategy (see code below) was simple: use the diamonds dataset from ggplot2, subset it focus on 3K single-color, then create a blank record for every "real" record, and throw the new dataset at mi to see if it would popula

[R] fwdmsa package: Error in search.normal(X[samp, ], verbose = FALSE) : At least one item has no variance

2012-03-21 Thread Rob Cassidy
I'm using the fwdmsa package to identify deviant cases in a Mokken scale analysis. I've run into a problem., separate from the one I posted previously. The problem comes with items that are "easy" by IRT standards. A good scale should include a range of difficulties; yet when I include "easy" items

[R] fwdmsa package: Error in search.normal(X[samp, ], verbose = FALSE) : At least one item has no variance

2012-03-21 Thread Rob Cassidy
I'm using the fwdmsa package to identify deviant cases in a Mokken scale analysis. I've run into a problem., separate from the one I posted previously. The problem comes with items that are "easy" by IRT standards. A good scale should include a range of difficulties; yet when I include "easy" items

Re: [R] small scales in fwdmsa

2012-03-21 Thread Rob Cassidy
sorry I mistyped the "fs.MSA(by364.data)" in the previous post. -- View this message in context: http://r.789695.n4.nabble.com/small-scales-in-fwdmsa-tp4493479p4493490.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.o

[R] small scales in fwdmsa

2012-03-21 Thread Rob Cassidy
I'm using the fwdmsa package to identify deviant cases in a Mokken scale analysis. I've run into a problem. When I use scales comprising a few items, iI tend to get an error: Error in y[order(res[-msamp])][1:(length(samp) + 1 - length(msamp))] : only 0's may be mixed with negative subscripts I

[R] Accessing variable's name as an attribute?

2012-03-15 Thread Rob Forsyth
(this alters the names of the internal column names) - can I set a variable name attribute directly? thanks Rob __ 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/po

[R] Quantile scores as dependent variables.. an R and general method question

2012-02-28 Thread Rob James
I have a dataset that does not include native scores, but only serial quantile rankings for a set of units. Clearly these observations are dependent (in that you can't alter one observation without also altering others). Are there methods for dealing with quantile dependent variables. My atempt t

Re: [R] R CMD INSTALL fails where R CMD check succeeds.

2012-02-24 Thread Rob Steele
That's it! I was mounting /tmp with the noexec option. That was the problem. Thanks! On 2/24/2012 12:56 PM, Prof Brian Ripley wrote: Guess: did you set TMPDIR to somewhere you are allowed to execute scripts? __ R-help@r-project.org mailing list h

[R] R CMD INSTALL fails where R CMD check succeeds.

2012-02-24 Thread Rob Steele
This is in a 64 bit CentOS 5.6 instance at Amazon AWS with R version 2.14.1 (2011-12-22). It happens on several packages: RMySQL, RODBC, FastICA. Many other packages install just fine. Here's an example error message: * installing *source* package 'RODBC' ... ** package 'RODBC' successfully

[R] ANNOUNCEMENT: Call for Proposals for The R Series from Chapman & Hall/CRC

2011-12-05 Thread Calver, Rob
Extended Rasch Modeling in R: Theory and Practice – Maier, Mair & Hatzinger We look forward to hearing from you. Best regards, Rob Calver (rob.cal...@informa.com) David Grubbs (david.gru...@taylorandfrancis.com) John Kimm

Re: [R] what is wrong with this dataset?

2011-11-24 Thread Rob Griffin
,by = dataset[,c(1:2), drop = F], mean) But, please actually enlighten us as to the nature of your problem. Rob -Original Message- From: Carl Witthoft Sent: Thursday, November 24, 2011 3:08 AM To: r-help@r-project.org Subject: Re: [R] what is wrong with this dataset? As the Kroger D

Re: [R] [OT] 1 vs 2-way anova technical question

2011-11-21 Thread Rob Griffin
don't have a delete button... Good luck. Rob -Original Message- From: Giovanni Azua Sent: Monday, November 21, 2011 4:59 PM To: r-help@r-project.org Subject: Re: [R] [OT] 1 vs 2-way anova technical question Hello Bert, Thank you for taking the time to try to answer. 1) I know this

Re: [R] create list of names where two df contain == values

2011-11-16 Thread Rob Griffin
rop = F], mean) Rob -Original Message- From: Rob Griffin Sent: Wednesday, November 16, 2011 4:35 PM To: Dennis Murphy Cc: r-help@r-project.org Subject: Re: [R] create list of names where two df contain == values Ok, thanks for looking in to this so far, I seem to have confused you al

Re: [R] create list of names where two df contain == values

2011-11-16 Thread Rob Griffin
felse worked for the first few lines then as soon as it got to a point where one of the Flybase.CG values had been removed during the process of making df.2 it got out of line between the data frames and just gave NA after there. Rob -Original Message- From: Dennis Murphy Sent:

[R] create list of names where two df contain == values

2011-11-16 Thread Rob Griffin
,5,6,7,8,9,10) df.2$numb1<-rnorm(10,1,1) df.2$id<-c("CG234","CG232","CG441","CG128","CG125","CG182","CG982","CG541","CG282","CG154") df.2[8,3]<-12 df.1 df.2 Your patience is much appreciated, Rob __ 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] correlations between columns for each row

2011-11-15 Thread Rob Griffin
F,a=174:213,b=214:253) Thanks very much both of you! Rob -Original Message- From: R. Michael Weylandt Sent: Tuesday, November 15, 2011 9:28 PM To: Rob Griffin Cc: Joshua Wiley ; r-help@r-project.org Subject: Re: [R] correlations between columns for each row Is the whole thing a data frame?

Re: [R] correlations between columns for each row

2011-11-15 Thread Rob Griffin
ecked str() and the columns are all numeric ??? -Original Message- From: Joshua Wiley Sent: Tuesday, November 15, 2011 7:14 PM To: robgriffin247 Cc: r-help@r-project.org Subject: Re: [R] correlations between columns for each row Hi Rob, Here is one approach: ## define a function that does

Re: [R] averaging between rows with repeated data

2011-11-15 Thread Rob Griffin
many attempts) to solve it so feels good that I was going along the right lines at some point! Could you possibly explain what this drop=F term is doing? Rob (A very grateful and relieved phd student). (also if anyone fancies helping me with another problem I posted yesterday: http://r.789695

[R] correlations between columns for each row

2011-11-14 Thread Rob Griffin
have the rF value at the end of it (which will then be used later against other variables) Can anyone help me with this problem? I’ve tried allsorts and I have run out of ideas. Thanks in advance, Rob [[alternative HTML version deleted]] __ R

Re: [R] Creating dummys in R

2011-11-10 Thread Rob Griffin
hi Paulie, Further to Sarah’s email, this will give the same sex indicator (both 0 or both 1 then samesex scores 1): samesex<-ifelse(sex==sex1,1,0) from what you have described this will give you the desired result hope that helps, Rob Robert M Griffin Department of Evolutionary Biol

Re: [R] How to show classes with 0 count in table()?

2011-10-31 Thread Rob Griffin
x<-matrix(c(1,2,3,4,5,3,3,0,0,3),nrow=2,ncol=5,byrow=TRUE) x [,1] [,2] [,3] [,4] [,5] [1,]12345 [2,]33003 -Original Message- From: Leonardo Bergamini Sent: Monday, October 31, 2011 1:35 PM To: r-help@r-project.org Subject: [R] How to show

[R] plot methods for summary of rms objects

2011-10-11 Thread Rob James
The integration of plot methods for various outputs from rms packages is a great appreciated aspect of the rms package. I particularly like to use: plot(summary(model)) for my own purposes, but... for publication/presentation I need to modify details like variable names, or the number of sign

[R] rms:fastbw variable selection differences with AIC .vs. p value methods

2011-08-19 Thread Rob James
I want to employ a parsimonious model to draw nomograms, as the full model is too complex to draw nomograms readily (several interactions of continuous variables). However, one interesting variable stays or leaves based on whether I choose "p value" or "AIC" options to fastbw(). My question b

[R] When models and anova(model) disagree...

2011-06-15 Thread Rob James
I have a situation where the parameter estimates from lrm identify a binary predictor variable ("X") as clearly non-significant (p>0.3), but the ANOVA of that same model gives X a chi^2-df rank of > 200, and adjudicates X and one interaction of X and a continuous measure as highly significa

[R] Removal of elements from nomograms

2011-06-02 Thread Rob James
The rms package includes the nomogram function, which generates a list object that can be passed to plot for graphical production of nomograms. I would like to remove the "linear predictor" line in the graph, which means (I suspect) removing it from the nomogram output object. I've looked at

Re: [R] Latin Hypercube Sampling with a condition

2011-06-02 Thread Rob Carnell
Duarte Viana gmail.com> writes: > > Thanks Rob and Ravi for the replies. > > Let me try to explain my problem. I am trying to make a kind of > sensitivity analysis where I have 5 parameters (the margins of the > Latin hypercube), 3 of them are proportions that should sum

Re: [R] Latin Hypercube Sampling with a condition

2011-06-02 Thread Rob Carnell
samples on the other margins. x <- seq(0.05, 0.95, length=10) y <- runif(length(x), 0, 1-x) z <- 1-x-y hist(x) hist(y) hist(z) If you could explain why you want to maintain the uniformity on the margins, I might be able to suggest something different. Rob _

Re: [R] Help converting a data.frame to ordered factors

2011-05-03 Thread Rob Cassidy
Hi again, Now that I have the data.frame as ordered factors, when I try to transpose it, I lose the factor orders. > datfact<-data.frame(c1,c2,c96) > sapply(datfact, class) c1c2c96 [1,] "ordered" "ordered" "ordered" [2,] "factor" "factor" "factor" > > dafacT<-as.data.

Re: [R] Help converting a data.frame to ordered factors

2011-05-03 Thread Rob Cassidy
Thanks, Phil. I could have sworn that I tried that (several times). It works perfectly, of course. Thanks again, Robert -- View this message in context: http://r.789695.n4.nabble.com/Help-converting-a-data-frame-to-ordered-factors-tp3490838p3492705.html Sent from the R help mailing list archive

[R] Nomograms from rms' fastbw output objects

2011-04-28 Thread Rob James
s on either the technical or the theoretical issues. Many thanks in advance, Rob James __ 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 pr

[R] binary exogenous variable in path analysis in sem or lavaan

2011-03-15 Thread Rob Knell
is there any way to do this in R? Thanks for any help Regards Rob __ 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 comme

Re: [R] A question about data frame

2011-03-10 Thread Rob Tirrell
See the max.levels argument in ?print. I think this is what you're looking for. -- Robert Tirrell | r...@stanford.edu | (607) 437-6532 Program in Biomedical Informatics | Butte Lab | Stanford University On Thu, Mar 10, 2011 at 13:35, Gang Chen wrote: > n = c(2, 3, 5) > > s = c("aa", "bb", "cc"

Re: [R] SQLDF - Submitting Queries with R Objects as Columns

2011-03-09 Thread Rob Tirrell
You're submitting queries for SQLDF to execute as strings. So, if you want to use a variable column name, sprintf() or paste() your statement together, like: sqldf(sprintf('select sum(%s) as XSUM, Y as Y from testdf group by Y', var1)) -- Robert Tirrell | r...@stanford.edu | (607) 437-6532 Progra

Re: [R] Incorrectness of mean()

2011-02-28 Thread Rob Tirrell
Keep your eyes out for this - you will find this sort of behavior throughout R. -- Robert Tirrell | r...@stanford.edu | (607) 437-6532 Program in Biomedical Informatics | Butte Lab | Stanford University On Mon, Feb 28, 2011 at 02:26, zbynek.jano...@gmail.com < zbynek.jano...@centrum.cz> wrote:

[R] R5 multiple inheritance

2011-02-28 Thread Rob Paul Tirrell
tains, but method dispatch only behaves correctly for the first of them. I don't *think* this has changed in R2.12.2 - I'm checking into that now. Regards, Rob __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-hel

Re: [R] Database abstraction

2011-02-28 Thread Rob Paul Tirrell
x27;d like to release this in the near future. I've been using Roxygen for documentation, but support for annotations on R5 methods isn't great... Thanks all. - Original Message - From: "Rob Tirrell" To: r-help@r-project.org Sent: Sunday, February 27, 2011 2:

[R] Database abstraction

2011-02-27 Thread Rob Tirrell
Hi all - I've been working on a lite ORM and database abstraction package for R. Formatting complex queries by hand has always been an error-prone hassle, so I've tried to do away with that as much as possible, instead, using R objects to represent elements of a database system (statements, clause

Re: [R] Hello!

2011-02-27 Thread Rob Tirrell
Look at ?readline for input from the user. For reading Excel files, a good place to start would be page 26 of the manual: http://cran.r-project.org/doc/manuals/R-data.pdf -- Robert Tirrell | r...@stanford.edu | (607) 437-6532 Program in Biomedical Informatics | Butte Lab | Stanford University O

Re: [R] Selecting data based on the range of dates

2011-02-25 Thread Rob Tirrell
Try my.date <- strptime("20/2/06 11:16:16.683", "%d/%m/%y %H:%M:%OS") Then you can examine my.date$mon. -- Robert Tirrell | r...@stanford.edu | (607) 437-6532 Program in Biomedical Informatics | Butte Lab | Stanford University On Thu, Feb 24, 2011 at 14:12, Belle wrote: > > I think I got it,

Re: [R] Compatibility with R for Windows 2.12.2

2011-02-25 Thread Rob Tirrell
I can't think of a reason why they would... Rob Tirrell On Thu, Feb 24, 2011 at 23:56, Vedajit Boyd wrote: > Hi, > > Please someone let me know that the installation of both R for Windows > 2.12.2 and MS office 2010 on the same system will interfere each other or > not. &

Re: [R] output selectively change the font

2011-02-21 Thread Rob Tirrell
If I understand you correctly - you can add a column to the output table for your color variable?. Otherwise, if you need to write the *text* in a different color, that's probably something you want to do outside of R... Rob Tirrell On Mon, Feb 21, 2011 at 10:14, Yan Jiao wrote: &

Re: [R] Finding length of unique numbers in a vector

2011-02-10 Thread Rob Tirrell
How about: table(samp) -- Robert Tirrell | r...@stanford.edu | (607) 437-6532 Program in Biomedical Informatics | Butte Lab | Stanford University On Thu, Feb 10, 2011 at 13:54, Nipesh Bajaj wrote: > > set.seed(100) > > samp <- sample(c(1,-1,0), 20, replace=T); samp > [[alternative H

[R] Multiple inheritance with reference classes?

2011-02-09 Thread Rob Tirrell
ClassS *<-* setRefClass*(*'ClassS', fields = c*(* 'field.s' *)*, methods = list*(* initialize = *function**()* *{* *return**(*initFields*(*field.s = 0*))* *}* *)* *)* ClassM *<-* setRefClass*(*'ClassM', fields = c*(* 'field.m' *)*, methods = list*(* initialize = *function**()*

[R] ANNOUNCEMENT: Chapman & Hall/CRC: The R Series

2011-01-19 Thread Calver, Rob
e or one of the Chapman & Hall/CRC statistics acquisitions editors below. Please provide brief details of topic, audience, aims and scope, and include an outline if possible. We look forward to hearing from you. Best regards, Rob Calver (rob.cal...@informa.com) David Grubbs (d

Re: [R] Baseline terms for lrm

2011-01-18 Thread Rob James
he associated ranges, Here's the idea: e.g: Variable LowHigh V 02 V' 36 V' 722 ... Is there existing functionality to do this? If not, it suggest it would be a helpful addition. Rob _

[R] Baseline terms for lrm

2011-01-18 Thread Rob James
bles and the ranges specified in the cut. Thus, it is seems possible to misidentify the baseline value for the term. Many thanks, Rob __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] Dealing with Latex output in Openoffice

2011-01-17 Thread Rob James
ave a convenient strategy for dealing with Latex output and openoffice, either within or outside of a OdfSweave environment? Thanks, Rob __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] How to save & play back an entire R session?

2010-12-16 Thread Rob Goedman
, e.g. if something goes wrong in R. Typing directly into the R session is still useful to quickly try something or help questions. Regards, Rob On Dec 16, 2010, at 7:06 AM, David Winsemius wrote: > > On Dec 16, 2010, at 9:43 AM, Roy Shimizu wrote: > >> I know that at the end

[R] Reorder factor and address embedded escapes

2010-12-10 Thread Rob James
I am trying to reorder a factor variable that has embedded escape characters. The data begins as a csv file with a factor that includes embedded new line characters. By the time read.table has rendered it into a data frame, the variable now has an extra backslash. e.g. "This\nLabel" in the c

[R] R 2.12.0 and JGR

2010-10-19 Thread Rob Baer
stopped working with the upgrade. My ultimate goal of was to run the Deducer package which ironically runs fine from the Windows GUI despite recommending that I use JGR instead. Any hints how I recover the use of JGR? Thanks, Rob > sessionInfo() R version 2.12.0 (2010-10-15) Platform:

[R] Recovering x/y coordinates from a scatterplot image

2010-10-15 Thread Rob James
Do I recall correctly that there is an R package that can take an image, and help one estimate the x/y coordinates? I can't find the package, thought it was an R-tool, but would appreciate any leads. Thanks, Rob __ R-help@r-project.org ma

[R] XML getNodeSet syntax for PUBMED XML export

2010-09-08 Thread Rob James
I am looking for the syntax to capture XML tags marked with /DescriptorName MajorTopicYN="Y"/ , but the combination of the internal space (between "Name" and "Major" and the embedded quote marks are defeating me. I can get all the "DescriptorName" tags, but these include both MajroTopicYN

Re: [R] Memory leak in system() command?

2010-09-07 Thread Rob Steele
You're quite right; the problem lies in an SQL query ("LOAD DATA INFILE"). Thanks! On 9/7/2010 6:50 AM, Duncan Murdoch wrote: > Rob Steele wrote: >> I run an external program a few hundred times via >> >> status <- system(command = "blah blah blah&quo

[R] Memory leak in system() command?

2010-09-07 Thread Rob Steele
I run an external program a few hundred times via status <- system(command = "blah blah blah") and pretty soon Linux thinks R is using tons of memory. R doesn't think so, at least not according to gc(). I'm also opening, reading and closing files but I don't think that's where the problem lies.

[R] HMisc/rms package questions

2010-08-17 Thread Rob James
e baseline population across graphs; this way I could attempt to impose some content-specific coherence to the graphs, by selecting the baseline populations. Clearly this is do-able, but I have yet to see it done. I'd welcome suggestions and comments. Thanks, Rob __

[R] Specifying interactions in rms package... error

2010-08-02 Thread Rob James
I am encountering an error I do not know how to debug. The error arises when I try to add an interaction term involving two continuous variables (defined using rcs functions) to an existing (and working) model. The new model reads: model5 <- lrm( B_fainting ~ gender+ rcs(exactage, 7) +

Re: [R] predicting without a model

2010-05-11 Thread Rob Forler
an the winter months for example. Hope that helps, Rob """ Given that you don't have a strong background in statistics you would at the very least want to think about a few things. Do you think that the current level of weekly passage has an impact on the next week's pa

[R] Fidelity of lattice graphics captured to jpeg or png... followup

2010-04-29 Thread Rob James
Subsequent investigations (via GIMP) show that the problem is in OO, and now with the images themselves. Off to the OO forums. Original Message Subject:Fidelity of lattice graphics captured to jpeg or png Date: Thu, 29 Apr 2010 08:05:04 -0700 From: Rob James To

[R] Fidelity of lattice graphics captured to jpeg or png

2010-04-29 Thread Rob James
I am generating images via lattice from Frank Harrell's RMS package. These images are characterized by coloured lines and grey-scale confidence intervals. I need to port them to Openoffice/etc, and have tried both png and jpeg (at high quality), but in neither format can I subsequently see the

Re: [R] R for Engineering (Mechanical, Industrial , Civil, etc.)

2010-04-27 Thread Rob Goedman
ion/object). The ability to include fortran, C, etc., R's graphical capabilities, including 3D, and R's capabilities/libraries (e.g. different interpolation models) to generate the input files based on survey data and revising the input during iterations were key for me. Regards, Rob O

[R] logical(0) response from lrm

2010-04-25 Thread Rob James
What causes the error report: logical(0) to arise in the rms function lrm? Here's my data: But both the dependent and the independent variable seem fine... > str(AABB) 'data.frame':1176425 obs. of 9 variables: $ sex : int 1 1 0 1 1 0 0 0 0 0 ... $ faint : int 0 0 0 0 0 0 0 0 0 0

Re: [R] env() for lme4

2010-04-14 Thread Rob Goedman
Pierre, This question is better asked on R-sig-ME. I updated below call to 'profile(fm...@env)' Regards, Rob On Apr 14, 2010, at 6:28 AM, pnouvellet wrote: > > Hi, > > using lme4a, and the dystuff data, I call profile and get: >> profile(fm1ML) > Error i

Re: [R] Code is too slow: mean-centering variables in a data framebysubgroup

2010-04-07 Thread Rob Forler
Leave it up to Tom to solve things wickedly fast :) Just as an fyi Dimitri, Tom is one of the developers of data.table. -Rob On Wed, Apr 7, 2010 at 2:51 PM, Dimitri Liakhovitski wrote: > Wow, thank you, Tom! > > On Wed, Apr 7, 2010 at 3:46 PM, Tom Short wrote: > > Here's h

Re: [R] dataframe in loop

2010-03-30 Thread Rob Forler
Wait so basically you want to merge the two data sets on some key value? On Tue, Mar 30, 2010 at 12:30 PM, Muting Zhang wrote: > hello all: > > I would like to thank those who helped me out of the string problem..but > now I got another problem. > I used R to query from SQL and got a list of cr

  1   2   >