Hi
The outline for France from that database is a little bit pesky because
it consists of multiple segments that travel in different directions
around the French border. Here is some (possibly jetlagged) code that
puts the segments all in the same direction and produces a nicer result ...
b
> ifelse(ChooseFn, lapply, sfLapply)(MyList, function(x) {
> ...
> return())
Use 'if', not 'ifelse', and wrap it in parentheses to get the precendence right
(if (ChooseFn) lapply else sfLapply)(MyList, function(x){...})
Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
>
I have posted a new version of the gam package: gam_1.09
to CRAN. Thus update improved the step.gam function considerably,
and gives it a parallel option.
I am posting this update announcement along with the original package
announcement below,
which may be of interest to those new to the list
I have this
mcfa<-
"impulsivity=~imp1r+imp2+imp3+imp4
physical=~phys1+phys2+phys3+phys4
risky=~risk1+risk2+risk3+risk4
selfish=~self1+self2+self3+self4
simple=~simp1+simp2+simp3+simp4r
temper=~temp1+temp2+temp3+temp4
control=~impulsivity+physical+risky+selfish+simple+temper"
where: the model is a
Perhaps it is bad form to respond to my own post but all the responses have
been useful and I did not want to play favorites
I am coming back to Linux after several MacBook years. Unfortunately the
Linux for Laptops page is not as well updated as it once was. On the other
hand, pre-installed Li
Another +1 here for the ThinkPad series... they seem to run Linux
distros about as well as most, and are pretty robustly built. I picked
up a Lenovo ThinkPad T530 last fall with Windows 7 Pro on it, and have
it currently set up to dual-boot into openSUSE 12.3. Ubuntu 13.04
probably ran the sm
I have a gatway running scientific linux 6.4. It runs R quite well. I had
an old mac power pc running a special flavor of debian that ran R well
relative to the hardware constraints.
FWIW, get all intel hardware; Then the rest is up to you. Good Luck!
Stephen
On Sun, Aug 11, 2013 at 4:40 PM,
Hi,
I have no real input here from personal experience, but the author of
the coderspiel blog has these two "recent" posts about his experience
with Ubuntu on (what seem to be) two very nice machines:
The latest is a Vaio Pro of some sort. Ubuntu is a bit difficult to
install, but doable:
http:/
I think that Hasan Diwan's assertion is a bit of an
over-simplification. I have a Toshiba Satellite
L850 that has no problems of any sort running R. However it *does* have
problems with WiFi.
The WiFi drivers for my laptop won't work under (any?) Linux system.
Apparently (I don't completel
Hello all.
Let's say I have a multivariate time-series, obtained from 2 loggers
returning a numeric value and a factor giving additional information about
this numeric value, for instance its accuracy:
data<-data.frame(date=rep(seq(from=as.Date("2012-01-01"), by=1,
length.out=100), 2), logger=c(re
Hi Ed,
our rapporter.net service might be useful for you that lets users create
brew-flavored report templates (text with R chunks) to be run on datasets.
So this is a cloud solution to be used directly via the frontend, or called
dynamically from any webpage via API:
http://blog.rapporter.net/201
Hi,
On Sun, Aug 11, 2013 at 4:47 AM, Alan Sausse wrote:
> Hi,
>
> Not an expert R user, something of a novice - please be gentle with me!
>
> I have a particular interest in generalised linear models (GLMs) and I'm
> experienced in fitting them using other bits of software.
>
> R can fit GLMs of
Hi,
On Sun, Aug 11, 2013 at 1:18 PM, Ron Michael wrote:
> Hi,
>
> How can I apply ifelse function to chose appropriate function?
>
> My goal is user will chose lapply() function if "ChooseFn = T" otherwise to
> chose sfLapply() from snowfall package.
>
> I am basically trying to avoid repeatatio
Take a look at http://www.rstudio.com/shiny/ to see if this is useful.
Cheers,
Bert
On Sun, Aug 11, 2013 at 12:43 PM, Wiebe, Ed@CDCR wrote:
> Hello,
>
> I am looking for tutorials on setting up R on a Windows 2008 server for the
> purpose of making calls from web pages (e.g. SharePoint) or r
Hi,
How can I apply ifelse function to chose appropriate function?
My goal is user will chose lapply() function if "ChooseFn = T" otherwise to
chose sfLapply() from snowfall package.
I am basically trying to avoid repeatation to write all internal steps, if user
choses lapply or sfLapply. F
Hello,
I am looking for tutorials on setting up R on a Windows 2008 server for the
purpose of making calls from web pages (e.g. SharePoint) or report engines
(e.g. SSRS) to embed inline dynamically rendered R content. I found the link to
RWeb (http://www.math.montana.edu/Rweb/) which I was hopi
HI Christofer,
Don't know what is wrong in your side.
I copy and pasted the same code and got the same answer as I emailed you.
CH <- c("MRTZIt", "MRTZIT", "PPBZJG", "ppbzJG")
CH1<-sort(CH,decreasing=TRUE)
CH1
#[1] "ppbzJG" "PPBZJG" "MRTZIt" "MRTZIT"
chnew<-CH1
chnew[duplicated(toupper(CH1))]<
Christopher:
Yes, I warned you about both cases: In your second example there is no
match since there is no nonupper case version of the all upper case
entries. As you did not specify what should be done in that case, I
leave it to you to figure out the necessary modifications of my code.
Possibl
Any laptop that performs well with Linux will perform acceptably with R and
vice versa. -- H
On 11 August 2013 11:03, Mitchell Maltenfort wrote:
> Can anyone recommend a laptop that performs well running R under Linux?
> Thanks.
>
> [[alternative HTML version deleted]]
>
> _
Hello Arun,
Thank you for your prompt reply.
However if I use your new code, I am not getting the answer which you
provided:
> CH <- c("MRTZIt", "MRTZIT", "PPBZJG", "ppbzJG")
> CH
[1] "MRTZIt" "MRTZIT" "PPBZJG" "ppbzJG"
> CH1<-sort(CH,decreasing=TRUE)
> chnew<-CH1
> chnew[duplicated(toupper(CH1)
Hi,
You may try this:
vec1<-unique(data1[,1])
res<-do.call(rbind,lapply(seq_along(vec1),function(i)
{x1<-data1[data1[,1]%in%vec1[-i],]; x2<-mean(x1$value[x1$value>0]); x3<-
data1[data1[,1]%in% vec1[i],]; x3$value[x3$value<0]<-x3$value[x3$value<0]+x2;
x3}))
res1<-res[match(row.names(dat1),row.nam
Hi Christofer,
I didn't test this extensively. Looks like this works for the example you
showed.
CH1<-sort(CH,decreasing=TRUE)
chnew<-CH1
chnew[duplicated(toupper(CH1))]<- CH1[duplicated(toupper(CH1),fromLast=TRUE)]
sort(chnew)
#[1] "MRTZIt" "MRTZIt" "ppbzJG" "ppbzJG"
A.K.
__
Can anyone recommend a laptop that performs well running R under Linux?
Thanks.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-
Thanks Bert and Arun for your help.
As Bert already pointed out, Arun's code is working well, however except
this:
> CH <- c("MRTZIt", "MRTZIT", "PPBZJG", "ppbzJG")
> chnew<-CH
> chnew[duplicated(toupper(CH))]<-CH[duplicated(toupper(CH),fromLast=TRUE)]
> CH
[1] "MRTZIt" "MRTZIT" "PPBZJG" "ppbzJG"
1. For RevolutionR capabilities, contact them (mailing lists, website, etc.)
2. CRAN has a whole section on GUI's. You should consult it:
http://www.sciviews.org/_rgui/
3. Your GUI query would be more appropriate on the R-sig-gui list.
Cheers,
Bert
On Sun, Aug 11, 2013 at 4:47 AM, Alan Sausse
Alan,
I can't answer your first question, but as far as the second question goes,
have you examined RStudio?
http://www.rstudio.com/
Rstudio is a free, nice, IDE (I think this stands for integrated development
environment that facilitates working in R. I provides very very basic sytax
help (i.e
Hi,
Not an expert R user, something of a novice - please be gentle with me!
I have a particular interest in generalised linear models (GLMs) and I'm
experienced in fitting them using other bits of software.
R can fit GLMs of course, using the glm() command. I have some large
multivariate data s
Version 2.4-3 of the pls package has been released. Windows and OSX
binaries should appear shortly.
The pls package implements Partial Least Squares Regression, Principal
Component Regression and Canonical Powered PLS Regression.
The major changes are:
- Can now perform cross-validation in para
Well, maybe: it assumes that the uppercase string version always
occurs after the nonuppercase version. That's why I rejected it.
However, it points out something important: details matter. The more
one knows about the nature of the problem, the better the solution one
can tailor -- a remark for w
Hi,
May be this helps:
chnew<-CH
chnew[duplicated(toupper(CH))]<-CH[duplicated(toupper(CH),fromLast=TRUE)]
chnew
#[1] "aBd" "sTb" "aBd" "dFDasd" "asd" "dFDasd"
A.K.
- Original Message -
From: Christofer Bogaso
To: r-help
Cc:
Sent: Sunday, August 11, 2013 8:39 AM
Subjec
Oh, sorry. One type. Here's the correct version
On Sun, Aug 11, 2013 at 7:54 AM, Bert Gunter wrote:
> Christofer:
>
> You may have to fortify the following a bit to allow for the
> possibility that some of your caps strings don't match. But other than
> that, I think this will do:
>
>> CH <- c("a
Christofer:
You may have to fortify the following a bit to allow for the
possibility that some of your caps strings don't match. But other than
that, I think this will do:
> CH <- c("aBd", "sTb", "ABD", "dFDasd", "asd", "DFDASD")
> caps <- CH %in% z
> noncaps <- CH[!caps]
> chnew <- CH
> chnew[ca
Hello again,
Let say I have a lengthy character vector like:
CH <- c("aBd", "sTb", "ABD", "dFDasd", "asd", "DFDASD")
Now I want to create a vector like:
CH_New <- c("aBd", "sTb", "aBd", "dFDasd", "asd", "dFDasd") ## the 3rd and
6th element replaced
Basically, the goal is:
If an element has a
On 08/11/2013 06:14 AM, Soumitro Dey wrote:
Hello all,
This may be a naive question but since I'm new to R/survival models, I
cannot figure it out the problem myself.
I have a coxph model for my data and I am trying to test if the
proportional hazards assumption holds. Using cox.zph on the mo
34 matches
Mail list logo