> Jim Lemon
> on Thu, 2 Jun 2016 13:03:01 +1000 writes:
> Hi ce,
> a<-10
> condition<-expression("a>0")
> if(eval(parse(text=condition))) cat("a>0\n")
While this may answer the question asked,
the above is *not* good advice, excuse me, Jim :
> fortune(106)
If the a
Loris Bennett writes:
> Hi Sunish,
>
> Sunish Kumar Bilandi writes:
>
>> Hi Team,
>>
>> I am using RedHat 5 and installed R using YUM, (R version 3.2.3) Now I
>> want to update R version tp 3.3.0, but I am unable to do that, Is
>> there any alternate to do this?
>>
>> Hope to hear from your side
Hi Sunish,
Sunish Kumar Bilandi writes:
> Hi Team,
>
> I am using RedHat 5 and installed R using YUM, (R version 3.2.3) Now I
> want to update R version tp 3.3.0, but I am unable to do that, Is
> there any alternate to do this?
>
> Hope to hear from your side.
>
> Regards,
>
>
> Sunish Bilandi
>
Greetings fellow R users.
I'm struggling with the syntax of submitting a PUT request
I'm trying to insert a few PUT requests into some legacy R code that I have
that performs daily ETL on a small database. These requests will add users
to an email mailing list in MailChimp.
I have been able to
a <- 10
CONDITION <- (a > 0)
if ( CONDITION ) print(" a is bigger" )
On Wed, Jun 1, 2016 at 10:30 PM, ce wrote:
>
> Dear all,
>
> I want to make an if condition variable like :
>
> a = 10
> CONDITION = " a > 0 "
>
> if ( CONDITION ) print(" a is bigger" )
>
> I tried get , getElement , eval wit
Beware of getting too "meta" in your programming... it is rarely worth it. Just
write the code and move on with life. That is the beauty of a scripting
language.
--
Sent from my phone. Please excuse my brevity.
On June 1, 2016 7:30:29 PM PDT, ce wrote:
>
>Dear all,
>
>I want to make an if con
if ( eval(parse(text=CONDITION ))) print(" a is bigger" )
Best,
Ista
On Jun 1, 2016 10:32 PM, "ce" wrote:
>
> Dear all,
>
> I want to make an if condition variable like :
>
> a = 10
> CONDITION = " a > 0 "
>
> if ( CONDITION ) print(" a is bigger" )
>
> I tried get , getElement , eval without su
Hi ce,
a<-10
condition<-expression("a>0")
if(eval(parse(text=condition))) cat("a>0\n")
Jim
On Thu, Jun 2, 2016 at 12:30 PM, ce wrote:
>
> Dear all,
>
> I want to make an if condition variable like :
>
> a = 10
> CONDITION = " a > 0 "
>
> if ( CONDITION ) print(" a is bigger" )
>
> I tried get ,
Dear all,
I want to make an if condition variable like :
a = 10
CONDITION = " a > 0 "
if ( CONDITION ) print(" a is bigger" )
I tried get , getElement , eval without success ?
Thanks
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,
Hi Georg,
add.value.labels simply creates an attribute named "value.labels" for
the sorted values of the vector passed to it. The value labels passed
become the names of this attribute in the sorted order. The function
is intended to mimic a factor in reverse. While the factor adds
sequential numer
Thanks Thierry for the reply. I think I now have a better understanding for
the specification of the random effects when using lme function.
Are my interpretations below correct?
random=~ 1 | individual (same random intercept no random slope)
random=~ 1 +method| individual(same random inter
Hi,
Please find below the code:
Thanks,Vinay
>library(sem) >data1=read.csv("data_1.csv") >corr=cor(data1)
>model1<-specifyModel()brand1_Pric_ind-> Val_brand1,lamb1,NADist_brand1
>-> Val_brand1,lamb2,NAbrand1_like_me ->
>Val_brand1,lamb3,NAbrand2_Def_Drink -> Val_brand1,lamb
Dear members;
I am stuck trying to find optimal parameters using optim() function. I would be
veryy gateful if you could help me on this:
I have the following equation:
Rp,t+1 = rf+ beta*rt+1 (1)
Rp,t+1= the return of the portfolio , fr = free risk rate ,
Hi Juho!
01.06.2016, 14:40, Juho Kiuru wrote:
Hi all, I am new to R and TwitteR and would love to get some advice from
you.
I managed to get list of tweets containing word 'innovation' tweeted in
Helsinki with following script:
searchTwitter('innovation', n=1, geocode='60.1920,24.9458,30mi
Hi Jim,
many thanks for the hint.
When looking at the documentation I did not get how I do control which
value gets which label. Is it possible to define it?
Kind regards
Georg
Von:Jim Lemon
An: g.maub...@weinwolf.de, r-help mailing list ,
Datum: 01.06.2016 03:59
Betreff:
> On Jun 1, 2016, at 12:02 PM, g.maub...@weinwolf.de wrote:
>
> Hi all,
>
> I did it today on Debian GNU Linux 8 Jessie this way:
>
> vim /etc/apt/sources.list
> deb http://cran.uni-muenster.de/bin/linux/debian jessie-cran3
> ESC;:wq
>
> apt.get update
> apt-get install r-base r-base-dev
>
>
Hi Petr,
I am looking for a general procedure that I can use with any package of R.
As to my current experience it probably will happen that I need a
procedure from another package than hmisc or memisc and the my solution
shall work even than so that I do need to find another way to do it.
Kin
Hi all,
I did it today on Debian GNU Linux 8 Jessie this way:
vim /etc/apt/sources.list
deb http://cran.uni-muenster.de/bin/linux/debian jessie-cran3
ESC;:wq
apt.get update
apt-get install r-base r-base-dev
This worked for me.
When installing R packages from within R I found that R needed the
Hello Jeff, thank you very much for following up with me on this. It
definitely helped me get on my way with my analysis. It figures your from
UC Davis (I'm guessing from your email address), I've been helped out by
them often! -Eric
Eric Morway
Hydrologist
2730 N. Deer Run Rd.
Carson City, N
> On Jun 1, 2016, at 1:33 AM, Sunish Kumar Bilandi
> wrote:
>
> Hi Team,
>
> I am using RedHat 5 and installed R using YUM, (R version 3.2.3) Now I want
> to update R version tp 3.3.0, but I am unable to do that, Is there any
> alternate to do this?
>
> Hope to hear from your side.
>
> Reg
Hi all, I am new to R and TwitteR and would love to get some advice from
you.
I managed to get list of tweets containing word 'innovation' tweeted in
Helsinki with following script:
searchTwitter('innovation', n=1, geocode='60.1920,24.9458,30mi',
since="2016-01-01", until="2016-05-31")
Howev
Dear all,
I'm looking for a tool to perform non-ergodic covariance and
correlation analysis. This is in the purpose to study the spatial
autocorrelation of a variable.
Reagrds
*Emmanuel Poizot*
Cnam/Intechmer
__
R-help@r-project.org mailing list --
Hi Team,
I am using RedHat 5 and installed R using YUM, (R version 3.2.3) Now I want to
update R version tp 3.3.0, but I am unable to do that, Is there any alternate
to do this?
Hope to hear from your side.
Regards,
Sunish Bilandi
Business Analyst, CIDA-01
Evalueserve
Office: +91 124 412000
Hi all,
I was wondering if someone could help me designing a contrast matrix when
you have a continuous variable (Days).
My model looks like this:
model<-lme(Y~A*B*Days, data=data_over_time)
The factor A has two levels (A1 and A2) and factor B
Hi Elahe,
if you look at your subdf, you will see that the column Country - which is
not numeric - is still present. You might have other non-number columns,
but this I cannot tell.
scale expects a numeric matrix. You give it a data.frame which is silently
cast to a matrix. A matrix can only have
You did not send sample of your data, using dput. Before doing that, I
suggest peeling apart your troublesome line of code yourself:
str( as.matrix( scale( subdf ) ) )
str( scale( subdf ) )
str( subdf )
And then think about what the scale function does. Does it make sense to ask it
to scale c
Hi All,
I am installng miniCRAN on Debian GNU Linux 8 Jessie (Linux analytics7
4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) x86_64 GNU/Linux)
and R 3.3.0
-- cut --
> sessionInfo()
R version 3.3.0 (2016-05-03)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Lin
Hi all,
I want to use Self Organizing Map in R for my data. I want my training set to
be the following subset of my data:
subdf=subset(df,Country%in%c("US","FR"))
next I should change this subset to a matrix but I get the following error:
data_train_matrix=as.matrix(scale(subdf))
Petr and David,
Thank you so much! Both approaches do precisely what I need. I knew there
had to be a very simple way to do this, but I am still very much a novice
and struggle with data management at times. Also, thank you for the
suggestion to use dput(yourdata) or dput(yourdata[1:20,]) -- I kne
Hi
It is preferable to use output of
dput(yourdata) or dput(yourdata[1:20,])
so that we can use your data.
From your description maybe
boxplot(split(yourdata$value, yourdata$valid_time))
can give you what you want.
Regards
Petr
> -Original Message-
> From: R-help [mailto:r-help-boun
All:
I have used R in combination with GRASS GIS spatial data (using spgrass)
many times in the past to generate a 'time series' of boxplots, to show
variations over time. But I have a new problem, not involving spatial data,
but rather, true time-series data (snippet shown below). So, what I want
On Wed, 1 Jun 2016, T.Riedle wrote:
Thank you very much. I have applied the example to my case and get
following results:
crisis_bubble4<-glm(stock.market.crash~crash.MA+bubble.MA+MP.MA+UTS.MA+UPR.MA+PPI.MA+RV.MA,family=binomial("logit"),data=Data_logitregression_movingaverage)
summary(crisis
Thank you very much. I have applied the example to my case and get following
results:
crisis_bubble4<-glm(stock.market.crash~crash.MA+bubble.MA+MP.MA+UTS.MA+UPR.MA+PPI.MA+RV.MA,family=binomial("logit"),data=Data_logitregression_movingaverage)
> summary(crisis_bubble4)
Call:
glm(formula = stock.m
Notice that within-group processing is intended. I'd try
> first <- function(x)x[1]
> s <- within(q, {bl <- ave(b, paste(G,a), FUN=first); db <- b - bl})
Or perhaps
q <- within(q, Ga <- paste(G,a))
tbl <- with(q, tapply(b, Ga, first))
s <- within(q, {bl <- tbl[Ga]; db <- b - bl})
-pd
On 28 M
Hi
Keep your replies on the list, you can get more and better replies.
Do not post in HTML
combination of values is easily achieved e.g. by expand grid
expand.grid(mat[,1], mat[,2])
Regards
Petr
From: ameneh deljoo [mailto:amene.del...@gmail.com]
Sent: Tuesday, May 31, 2016 3:45 PM
To: PIKAL P
35 matches
Mail list logo