[R] Mixed Date Formats

2015-07-29 Thread farnoosh sheikhi via R-help
rsion deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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-cont

Re: [R] Mixed Date Formats

2015-07-29 Thread farnoosh sheikhi via R-help
                                                                                                    -7L), class = "data.frame")SampleData Thanks for your help:).   On Wednesday, July 29, 2015 1:50 PM, Sarah Goslee wrote: On Wed, Jul 29, 2015 at 2:45 PM, farnoosh sheikhi v

[R] Bootstrap library

2015-07-29 Thread Amelia Marsh via R-help
esults w.r.t. the samples. Thanking in advance. Regards Amelia ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] Mixed Date Formats

2015-07-30 Thread farnoosh sheikhi via R-help
rt of the date, convert and >> recombine. > > It would be easy if month and day were consistent, regardless of year > format. > > >> SampleData >>  id value      date >>  1  5813  19-Dec-11 >>  2  8706  07-Dec-11 >>  3  4049  06/05/11 >>  4

[R] question about implementation of the R

2015-07-31 Thread Beka Biashvili via R-help
: +995 599 414547    [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

[R] Clarification on Simulation and Iteration

2015-07-31 Thread Christopher Kelvin via R-help
l rho2<-cor(y1, z) select<-pnorm((mu0 + rho*(y1-mu)/sqrt(tua^2 + si^2))/sqrt(1-rho^2)) probselect<-ifelse(selecthttps://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] Clarification on Simulation and Iteration

2015-07-31 Thread Christopher Kelvin via R-help
Saturday, August 1, 2015 3:32 AM, David Winsemius wrote: On Jul 31, 2015, at 6:36 PM, Christopher Kelvin via R-help wrote: > Dear All, > I am performing some simulations for a new model. I run about 10,000 > iterations with a sample of 50 datasets and this returns one set of 50 &g

[R] Why does R start in wrong working directory despite R_USER setting?

2015-08-07 Thread Mauricio Cornejo via R-help
e that pointed to by R_USER. I don't have administrative access to the machine. Many thanks for any insight anyone can provide. Mauricio [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, se

[R] Error: Gradient function might be wrong - check it! OPTMX

2015-08-13 Thread Olu Ola via R-help
Thank you ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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] date format in xyplot

2015-08-17 Thread Christine Lee via R-help
ame") Raw$Date1<-as.Date(Raw$Date,"%d/%m") xyplot(Abun~Date1|as.factor(Year),Raw,type="p",xlab=list("Month",cex=1.5),ylab=list("Abundance",cex=1.5),cex=2,pch=c(16,16,21),col=c("Black","Grey","Black"),strip=strip.custom(

[R] How to fill rainbow colors under curves in R

2014-12-02 Thread Zilefac Elvis via R-help
333, 1.318583, 1.46, 0.707, 0.7479167, 1.09, 1.58575, 1.696667, 0.41, 0.4791667, 0.755, 1.2035, 1.37), .Dim = c(5L, 30L), .Dimnames = list(c("0%", "2.5%", "50%", "97.5%", "100%"), NULL))

[R] lmom package

2014-12-03 Thread Katherine Gobin via R-help
rameter values do differ even for many other distributions too viz. Gamma distribution etc. Is there any different algorithm or logic used in R? Can someone please guide.? Regards Katherine [[alternative HTML version deleted]] ______ R-help@r-projec

[R] lmom package - Resending the email

2014-12-03 Thread Katherine Gobin via R-help
her distributions e.g. Gamma, Exponential (2 parameter) distributions etc give different results than MINITAB and SPSS. Can some one guide me? Regards Katherine [[alternative HTML version deleted]] __ R-hel

[R] Rename multiple files in a directory and write renamed files back to directory

2014-12-04 Thread Zilefac Elvis via R-help
like to write the new file names to the directory. The data files contain huge amounts of data and should not be read into R. Only the file names should change. Many thanks for your helpful answers. Asong. __ R-help@r-project.org mailing list -- To UNSU

Re: [R] Rename multiple files in a directory and write renamed files back to directory

2014-12-04 Thread Zilefac Elvis via R-help
dat" "new_example_03.dat" [4] "new_example_04.dat" "new_example_05.dat" "new_example_06.dat" > > file.rename(from=file_names, to=new_names) [1] TRUE TRUE TRUE TRUE TRUE TRUE > list.files(pattern="*.dat") [1] "new_example_01.dat&qu

Re: [R] Rename multiple files in a directory and write renamed files back to directory

2014-12-05 Thread Zilefac Elvis via R-help
>> new_names <- paste("new_example_", > + formatC(seq(length(file_names)), width=2, flag="0"), > + ".dat", sep="") >> new_names > [1] "new_example_01.dat" "new_example_02.dat" "new_example_03.dat" > [4]

Re: [R] Rename multiple files in a directory and write renamed files back to directory

2014-12-05 Thread Zilefac Elvis via R-help
6.dat" >> >> new_names <- paste("new_example_", > + formatC(seq(length(file_names)), width=2, flag="0"), > + ".dat", sep="") >> new_names > [1] "new_example_01.dat" "new_example_02.dat" "new_example_0

[R] add symbol above letter in R

2014-12-09 Thread Zilefac Elvis via R-help
s for your solutions. Asong. ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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

Re: [R] add symbol above letter in R

2014-12-09 Thread Zilefac Elvis via R-help
n letter P in the following: mtext(text=expression(Winter(DJF)~mean~daily~precipitation~italic(P)), side=3, line=1, cex=1.3, col="black") ?plotmath could not provide an answer to my problem. many thanks for your solutions. Asong. ______

[R] Angle brackets ?plotmath

2014-12-09 Thread Zilefac Elvis via R-help
t succeed. I learnt that adobe-type symbols can be used but I need help with this. Please help. Amny thanks, Asong. ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Angle brackets ?plotmath

2014-12-10 Thread Zilefac Elvis via R-help
Perfect! # italic(symbol("\341")*T[min]*symbol("\361")) Thanks, Uwe. Asong. On 10.12.2014 04:49, Zilefac Elvis via R-help wrote: > Hi All, > Please, I would like to enclose T[min] using angle brackets in R. > I have tried something like: > > mtext(text=e

[R] sort by decreasing columns?

2014-12-13 Thread Nia Gupta via R-help
    9 5   3 Thank you [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

[R] Help sought with 1. converting factor to numeric; 2. creating new dataframe

2014-12-16 Thread Aditya Singh via R-help
ll the columns, 1 to 561 my_m[1,i]= mean(my_merge_data[,i]) ## here in my_m[2,i] that is the second row of the new dataframe my_m I want to store the standard deviation of columns 1 to ##561 my_m[2,i]=std(my_merge_data[,i]) } Thanking you, Aditya _____

[R] Add encoded special characters (greek characters) as text to plot

2014-12-17 Thread heyi xiao via R-help
ut these strings with special characters automatically? Thank you! Heyi __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Add encoded special characters (greek characters) as text to plot

2014-12-18 Thread heyi xiao via R-help
anybody has any hint on this? Subject: Add encoded special characters (greek characters) as text to plot To: r-help@r-project.org Date: Wednesday, December 17, 2014, 9:25 PM Dear all, I read my a character matrix from a text file. Some of them

Re: [R] Add encoded special characters (greek characters) as text to plot

2014-12-20 Thread heyi xiao via R-help
"heyi xiao" , "heyi xiao via R-help" Date: Thursday, December 18, 2014, 3:43 PM Why don't you try this approach if you cannot use 'expression()'? > x <- c("alpha", "beta", "gamma", "delta") > plot(0, type=&quo

[R] Gains package installation error

2015-01-02 Thread Rodica Coderie via R-help
for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.1Warning in install.packages :  package ‘gains’ is not available (for R version 3.1.2) Does anyone know how can I fix this?Thanks! [[alternative HTML version deleted]] ______ R-help@r-proj

[R] Export chaid decision tree rules

2015-01-03 Thread Rodica Coderie via R-help
f YES and which is the probability? An example of a terminal node output is below:clicks_flag in YES: NO (n = 1142, err = 5.3%) Thanks!Rodica  [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more

Re: [R] Export chaid decision tree rules

2015-01-03 Thread Rodica Coderie via R-help
Thanks! It answered my question. Rodica - Original Message - From: Achim Zeileis To: David Winsemius Cc: Rodica Coderie ; "r-help@r-project.org" Sent: Saturday, January 3, 2015 10:58 PM Subject: Re: [R] Export chaid decision tree rules On Sat, 3 Jan 2015, David Winse

[R] #library("CHAID") - Cross validation for chaid

2015-01-05 Thread Rodica Coderie via R-help
on many times of models, but model CHAID is not in caret's built-in library. library(caret) model <- train(vote3 ~., data = USvoteS, method='CHAID', tuneLength=10,trControl=trainControl(method='cv', number=10, classProbs=TRUE, summaryFunction=twoClassSummary)) Thanks,

[R] #library(CHAID) - export associated probabilities and rules for each row

2015-01-05 Thread Rodica Coderie via R-help
hich node is that row in (what are the rules associated with it) and with which probability. This may refer to any kind of decision tree, not only CHAID. Thanks, Rodica ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://s

Re: [R] #library("CHAID") - Cross validation for chaid

2015-01-07 Thread Rodica Coderie via R-help
hanks! Rodica From: Max Kuhn Cc: "r-help@r-project.org" Sent: Monday, January 5, 2015 6:56 PM Subject: Re: [R] #library("CHAID") - Cross validation for chaid You can create your own: http://topepo.github.io/caret/custom_models.html I put a prototype tog

Re: [R] #library("CHAID") - Cross validation for chaid

2015-01-07 Thread Rodica Coderie via R-help
So, if I understood correctly, the mod$finalModel should be the resulted tree after cross-validation, right? It's the same as the original one. names(mod) mod$finalModel chaidUS Thanks! Rodica - Original Message - From: Rodica Coderie To: Max Kuhn Cc: "r-help@r-project.

[R] Neural Network

2015-01-20 Thread javad bayat via R-help
Eutrophication by these parameter? please help me to write the codes. many thanks. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Neural Network

2015-01-23 Thread javad bayat via R-help
variables. Regards. On Thu, 1/22/15, Charles Determan Jr wrote: Subject: Re: [R] Neural Network roject.org> Date: Thursday, January 22, 2015, 4:41 PM Javad, First, please make sure to hit 'reply all' so that these messages go

Re: [R] Neural Network

2015-01-23 Thread javad bayat via R-help
rst, please make sure to hit 'reply all' so that these messages go to the R help list so others (many far more skilled than I) may possibly chime in. The problem here is that you appear to have no dependent variable (i.e. no eutrophication variable).  Without it, there is no way to a typical

[R] stupid thing with the correlation

2015-01-30 Thread n omranian via R-help
rnative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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] stop a function

2015-01-30 Thread n omranian via R-help
[[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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,

Re: [R] stupid thing with the correlation

2015-01-30 Thread n omranian via R-help
Well, yes, I do agree with you. And thanks a lot, I found the FAQ 7.31. very useful. Best,N. On Friday, January 30, 2015 12:44 PM, Duncan Murdoch wrote: On 30/01/2015 5:22 AM, n omranian via R-help wrote: > Hi All, > I'm getting actually nuts. I don't understa

Re: [R] Difference in dates for unique ID

2015-02-15 Thread farnoosh sheikhi via R-help
th this. I know I need to write some kind of loop, but I don't know how to think of the logic behind it. Thanks a lot. Farnoosh [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see http

[R] #library(party) - Compare predicted results for ctree

2015-02-16 Thread Rodica Coderie via R-help
he NO responses are predicted with 100% accuracy and the YES response are predicted with 0% accuracy. Why is this happening? It's because of my data or it's something in ctree algorithm? Thanks! Rodica __ R-help@r-project.org mailing list --

[R] split dataframe to several dataframes in R

2015-02-16 Thread Zilefac Elvis via R-help
Sepal.Length Sepal.Width Petal.Length Petal.Width isv# iris2.csv 5.843.0573333.758 1.199333 0.333 Many thanks,Asong. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

[R] view large tables

2015-02-17 Thread carol white via R-help
what is the best function to view large tables or data frames, scrolling down-up, left-right? Thanks c. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

Re: [R] split dataframe to several dataframes in R

2015-02-17 Thread Zilefac Elvis via R-help
may be that storing your > # data objects as a single object, such as a list, is more useful. > > Chris Campbell, PhD > > Tel. +44 (0)1249 705 450 | Mobile. +44 (0) 7929 628 349 > www.mango-solutions.com > Mango Solutions > 2 Methuen Park, Chippenham, Wiltshire. SN14 OGB UK > &g

Re: [R] split dataframe to several dataframes in R

2015-02-17 Thread Zilefac Elvis via R-help
ion(x) {as.data.frame(t(iris1.csv))}) #Get the data.frames in the list to the global environment list2env(lst4 ,.GlobalEnv) Regards On 17 February 2015 at 09:23, Zilefac Elvis via R-help wrote: > Hi All,I have a dataframe called 'means' as shown below:iris1.csv <- iris > iri

[R] Apply t-test on list in R

2015-02-17 Thread Zilefac Elvis via R-help
uot;, "G117_pav_DJF", "G118_pav_DJF", "G119_pav_DJF", "G120_pav_DJF", "GG10_pav_DJF", "GG11_pav_DJF", "GG12_pav_DJF", "GG13_pav_DJF", "GG14_pav_DJF", "GG15_pav_DJF", "GG16_pav_DJF", "GG17_pav_

[R] API request from R

2015-02-18 Thread Mittal Ashra via R-help
]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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] API request from R

2015-02-19 Thread Mittal Ashra via R-help
Dear All Thanks for the reply. RegardsMittal On Friday, 20 February 2015 1:56 AM, Barry Rowlingson wrote: On 19 Feb 2015 20:11, "Robert Baer" wrote: > > > On 2/19/2015 8:06 AM, Barry Rowlingson wrote: >> >> On Wed, Feb 18, 2015 at 11:44 AM, Mi

Re: [R] Apply t-test on list in R

2015-02-25 Thread Zilefac Elvis via R-help
Many thanks, Petr.You solved my problem.AT. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Gamma Distribution - is there any problem with "pgamma"?

2015-03-11 Thread Amelia Marsh via R-help
, 2015, 11:48 AM Hi, Try pgamma(amounts,shape_gamma,scale=scale_gamma) as I am guessing you mean scale_gamma to be the scale of the distribution, but are using it as the rate ( = 1 / scale) instead Martyn -Original Message----- From: R-help [mailto:r-help-boun...@r-project.org]

[R] Mann-Kendall test for many independent columns data set at a time

2015-03-30 Thread Desta Yoseph via R-help
you for your help in advance,Desta WodeboTU-DresdenGermany  __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html a

[R] Calculating Kendall's tau

2015-03-31 Thread Desta Yoseph via R-help
0 [[2]][1] 0.4352941attr(,"Csingle")[1] TRUE [[3]][1] 0.5462185attr(,"Csingle")[1] TRUE [[4]][1] 0.4218487attr(,"Csingle")[1] TRUEThank you for your guidance  [[alternative HTML version deleted]] __ R-help

Re: [R] Calculating Kendall's tau

2015-04-02 Thread Desta Yoseph via R-help
or while it's about it. > > S Ellison > > > *** > This email and any attachments are confidential. Any u...{{dropped:12}} __ R-help@r-project.org mailing list -- To

[R] strip levels

2015-04-06 Thread Christine Lee via R-help
grey',as.table=TRUE) in order to specify the variable names of the strip. Instead of showing "Raw.no10$Year", each of the lattice plot states "2014"! They should have 4 plots showing "2002" and another 4 showing "2014". Could any one help indicating

Re: [R] strip levels

2015-04-06 Thread Christine Lee via R-help
has gone wrong? Many thanks. Regards, Christine 2015年4月6日 星期一,Michael Dewey 寫道﹕ 主題: Re: [R] strip levels 收件人: "Sarah Goslee" , "Chr 副本(CC): "r-help" 日期: 2015年4月6日,星期一,下午11:15 See inline On 06/04/2015 15:39, Sarah Goslee wrote: > Hi, >

Re: [R] strip levels

2015-04-06 Thread Christine Lee via R-help
rStrips ... = your code Regards Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Christine Lee via R-help Sen

Re: [R] Formatting summary() output to a file

2018-07-27 Thread William Dunlap via R-help
988-10-01 00:30:00 > 1st Qu.:1996-02-01 00:45:00 > Median :2001-12-01 15:30:00 > Mean :2002-07-29 03:04:28 > 3rd Qu.:2008-09-10 16:00:00 > Max. :2018-06-21 00:00:00 > > TIA, > > Rich > > __ > R-help@r-project.o

Re: [R] Formatting summary() output to a file

2018-07-27 Thread MacQueen, Don via R-help
hatever} sink() -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 7/27/18, 8:20 AM, "R-help on behalf of Rich Shepard" wrote: I want to save the output of summary(df_name) to a disk file and my

Re: [R] Formatting summary() output to a file

2018-07-27 Thread William Dunlap via R-help
> Bill, > > Thanks very much. I doubt my searches would have found capture.output(). > > > Rich > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PL

Re: [R] Formatting summary() output to a file

2018-07-27 Thread MacQueen, Don via R-help
Hmmm. I do get output in the file with the first example, and the second example is too complicated for me. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 7/27/18, 9:56 AM, "R-help on beha

Re: [R] subsetting ls() as per class...

2018-07-28 Thread William Dunlap via R-help
gt; remove objects starting with a certain pattern; is there any way to remove > objects ending in a certain pattern? > > very many thanks for your time and effort... > yours sincerely, > AKSHAY M KULKARNI > > [[alternative HTML version deleted]] > >

Re: [R] read txt file - date - no space

2018-07-30 Thread MacQueen, Don via R-help
Xct class rather than POSIXlt class) -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 7/30/18, 4:03 PM, "R-help on behalf of Jim Lemon" wrote: Hi Diego, You may have to do some co

Re: [R] Unexpected YAML

2018-07-31 Thread Rainer Krug via R-help
x27; on how to cite R or R packages in publications. >> Type 'demo()' for some demos, 'help()' for on-line help, or >> 'help.start()' for an HTML browser interface to help. >> Type 'q()' to quit R. >> Error in loadNamespace(name) : t

Re: [R] Combinations of true/false values where one pair is mutually exclusive

2018-08-02 Thread MacQueen, Don via R-help
<- expand.grid(D=tmp, E=tmp, F=tmp) > X <- subset(X, !(E=='f' & F=='f')) > X D E F 1 p p p 2 f p p 3 p f p 4 f f p 5 p p f 6 f p f -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509

[R] kSamples ad.test question

2018-08-02 Thread Andras Farkas via R-help
ing that the samples are not from the common distribution?  much appreciate your help, Andras  __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://

Re: [R] Questions for Licensing

2018-08-03 Thread Marc Schwartz via R-help
d. > We just want to avoid a situation in which our product accidentally falls > under the GPL license because of our use of R and us therefore having to > provide the source code for our product. > > Thank you for your precious time reading this mail and any advices and > informati

Re: [R] Philip Morris International - Windows10 migration assessment

2018-08-03 Thread Clive Nicholas via R-help
J. Dyson [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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] (no subject)

2018-08-06 Thread malika yassa via R-help
p((x1-u)/h1,lower=s[i-1],upper=s[i])}     H<-function(u,x1) for (i in 1:n) {H(u,x1)=sum(g[i]*fkS*integrate(k1,lower=s[i-1],upper=s[i]) } [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE

[R] sub/grep question: extract year

2018-08-09 Thread Marc Girondot via R-help
subtext) # return 2010 but subtext <- "bla 1010 bla" sub(".*[ \\.\\(-]([12][01289][0-9][0-9])[ \\.\\)-].*", "\\1", subtext) # return 1010 I would like exclude the case 1010 and other like this. The solution would be: 18[0-9][0-9] or 19[0-9][0-9] or 200[0-9] o

Re: [R] security using R at work

2018-08-09 Thread john matthew via R-help
--- > -- > > > > # > Scanned by MailMarshal - M86 Security's comprehensive email content > security solution. > Download a free

Re: [R] sub/grep question: extract year

2018-08-09 Thread Marc Girondot via R-help
"\\1\\2", subtext) # return 1980 subtext <- "bla 2010 bla" sub(pattern.year, "\\1\\2", subtext) # return 2010 subtext <- "bla 1010 bla" sub(pattern.year, "\\1\\2", subtext) # return bla 1010 bla subtext <- "bla 3010 bla" sub(patter

Re: [R] sub/grep question: extract year

2018-08-09 Thread john matthew via R-help
you restart R and try your 2nd expression first, \\1 will be empty or no match result. Just speculation :) John On 9 Aug 2018 08:58, "Marc Girondot via R-help" wrote: > Hi everybody, > > I have some questions about the way that sub is working. I hope that > someone has the

Re: [R] sub/grep question: extract year

2018-08-09 Thread john matthew via R-help
or no match result. > > Just speculation :) > > John > > > On 9 Aug 2018 08:58, "Marc Girondot via R-help" > wrote: > >> Hi everybody, >> >> I have some questions about the way that sub is working. I hope that >> someone has the answer: >> &

Re: [R] security using R at work

2018-08-09 Thread john matthew via R-help
Hi Katherina. Good point you make. What makes your IT department happy with the use of R studio server? What are the safe packages? Can I trust your answer? :) John. On 9 Aug 2018 10:38, "Fritsch, Katharina (NNL) via R-help" < r-help@r-project.org> wrote: > Hiya, > I w

Re: [R] Plot function: hourly data and x-axis

2018-08-09 Thread MacQueen, Don via R-help
t reviewing the posting guide and other advice shown at the bottom of every email sent by R-help. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 8/9/18, 7:51 AM, "R-help on behalf of Edoard

Re: [R] error with the expand.grid command

2018-08-09 Thread MacQueen, Don via R-help
ons, I get: > class(time) [1] "function" > find('time') [1] "package:stats" -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 8/8/18, 11:20 PM, "R-help on behalf of Mayur T

Re: [R] Help reinstalling rgdal (Ubuntu 16.04)

2018-08-09 Thread MacQueen, Don via R-help
-7509 On 8/9/18, 8:36 AM, "R-help on behalf of Alexandra Thorn" wrote: Hi all, Following some updates to R that I received via Synaptic Package Manager on Ubuntu 16.04 (looks like I now have R 3.4.4-1xenial0), I have been unable to reinstall rgdal,

Re: [R] Resolving installed package updates warning

2018-08-10 Thread MacQueen, Don via R-help
on MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 8/10/18, 6:48 AM, "R-help on behalf of Rich Shepard" wrote: Updating installed packages ends with a warning: Warning message: In i

Re: [R] Resolving installed package updates warning

2018-08-10 Thread MacQueen, Don via R-help
't even look at the other error messages until that one has been solved. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 8/10/18, 9:53 AM, "R-help on behalf of Rich Shepard" wrote:

Re: [R] searching for a specific row name in R

2018-08-13 Thread MacQueen, Don via R-help
Or to return a logical value, i.e., TRUE if the column contains the value, FALSE if it does not: any( x[,2] == 'A501' ) -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 8/13/18, 12:09 A

Re: [R] Problem with loaded R packages

2018-08-15 Thread Marc Schwartz via R-help
gnettes/cgdsr.pdf > > This Bioconductorlink was reported to contain an error and was not loaded > successfully. > > Any ideas of what exactly I am doing wrong in my lines? > > Many thanks, > > Spencer Brackett > > [[alternative HTML version deleted]] _

Re: [R] Problem with loaded R packages

2018-08-15 Thread Marc Schwartz via R-help
hen did the following > > > > source(https://cran.r-project.org/web/packages/cgdsr/vingnettes/cgdsr.pdf > > > > This Bioconductorlink was reported to contain an error and was not loaded > > successfully. > > > > Any ideas of what exactly I am doing wrong in

Re: [R] searching for a specific row name in R

2018-08-15 Thread MacQueen, Don via R-help
-423-1062 Lab cell 925-724-7509 From: Deepa Date: Monday, August 13, 2018 at 8:36 PM To: "MacQueen, Don" , array R-help Subject: Re: [R] searching for a specific row name in R Hi Don, When there is a list of identifier names that I want to check, the only way is to loop over each

[R] Using rmarkdown with many plots created in a loop

2018-08-16 Thread MacQueen, Don via R-help
", file=myf, append=TRUE) } cat('Done with report\n', file=myf, append=TRUE) render(myf) -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 __ R-h

Re: [R] CARET NN Too Much Output Even with Trace=False

2018-08-17 Thread William Dunlap via R-help
ontrol <- trainControl(method = "cv",number = 5,savePredictions = > 'final',classProbs = T) > > trainSet<-subset(trainSet,select=-c(Loan_ID)) > outcomeName<-"Loan_Status" > predictors<-names(trainSet)[!names(trainSet) %in% outcomeName]

Re: [R] Finding and changing .Rprofile

2018-08-17 Thread Marc Schwartz via R-help
ally affect all R sessions for your user profile. I don't use RStudio, so it may have other relevant features, and they have their own support lists linked on their site. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSU

Re: [R] Understanding read.csv error message

2018-08-17 Thread MacQueen, Don via R-help
ore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 8/17/18, 3:08 PM, "R-help on behalf of Rich Shepard" wrote: I have a data file, 'precip_projected.csv,' that starts like this: name,

Re: [R] Understanding read.csv error message

2018-08-17 Thread MacQueen, Don via R-help
small typo in previous: should be quote="" (I left behind a single quote by mistake) -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 8/17/18, 5:03 PM, "R-help on behalf of MacQueen,

[R] plotmath and logical operators?

2018-08-20 Thread MacQueen, Don via R-help
E" "FALSE & TRUE" "TRUE & TRUE" "TRUE & FALSE" "TRUE & FALSE" Thanks -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 _

Re: [R] plotmath and logical operators?

2018-08-20 Thread MacQueen, Don via R-help
CA 94550 925-423-1062 Lab cell 925-724-7509 From: Bert Gunter Date: Monday, August 20, 2018 at 3:38 PM To: "MacQueen, Don" Cc: array R-help Subject: Re: [R] plotmath and logical operators? This is clumsy and probably subject to considerable improvement, but does it work for you: lef

Re: [R] plotmath and logical operators?

2018-08-20 Thread William Dunlap via R-help
parentheses needed to enforce the order of evaluation: it always puts parentheses around the arguments to | and never puts them around the arguments to &. Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Aug 20, 2018 at 4:14 PM, MacQueen, Don via R-help < r-help@r-project.org> wrote:

Re: [R] as.Date() function

2018-08-21 Thread John Kane via R-help
at must be a very simple problem. Here is a >> reproducible example: >> >> library(lubridate) >> st <- c("1961-01","1961-04","1983-02") >> print(st) >> #[1] "1961-01" "1961-04" "1983-02" >> st1 &

Re: [R] differing behavior of mean(), median() and sd() with na.rm

2018-08-22 Thread Marc Schwartz via R-help
a.rm=TRUE) [1] NA >>> >>> Thanks for any feedback. >>> >>> Best, >>> Ivan >>> >>> -- >>> Dr. Ivan Calandra >>> TraCEr, laboratory for Traceology and Controlled Experiments >>> MONREPOS Archaeological Resear

[R] Algorithm Net Analyte Signal (NAS) in R

2018-08-24 Thread Vittorio Colagrande via R-help
ld provide. Best regards. Vittorio Colagrande [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-p

Re: [R] Multiple counters in a single for loop

2018-08-24 Thread MacQueen, Don via R-help
might want to do with such a loop, R can do them without an explicit loop. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 8/24/18, 6:44 AM, "R-help on behalf of Deepa" wrote: Hello,

Re: [R] Cant schedule R job using taskscheduleR

2018-08-27 Thread John Kane via R-help
ached base packages: [1] stats    graphics  grDevices utils    datasets  methods  base other attached packages: [1] taskscheduleR_1.1 loaded via a namespace (and not attached): [1] compiler_3.5.0    tools_3.5.0      data.table_1.11.4     [[alternative HTML version deleted]] __

Re: [R] importing .v8x file in R

2018-08-27 Thread John Kane via R-help
:45 a.m. EDT, Rolf Turner wrote: On 08/23/2018 08:35 PM, Rui Barradas wrote: > Hello, > > Sorry but I don't believe this is a question for r-help. > > r-help is meant for questions about R code, you should find out what > type of file do you have. Maybe open

Re: [R] r-data partitioning considering two variables (character and numeric)

2018-08-27 Thread MacQueen, Don via R-help
27;A-training', 'B-testing' ) split(mydata, grp) -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 8/27/18, 3:54 PM, "R-help on behalf of Ahmed Attia" wrote: I would

Re: [R] r-data partitioning considering two variables (character and numeric)

2018-08-27 Thread MacQueen, Don via R-help
n Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 8/27/18, 4:10 PM, "R-help on behalf of MacQueen, Don via R-help" wrote: You could start with split() grp <- rep('', nrow(mydata) )

Re: [R] Bitbucket code

2018-08-29 Thread Marc Schwartz via R-help
et() function, so perhaps that will do what you want. In terms of making a stable archive file available, that will be entirely up to the package maintainer and when/how they choose to make that available (e.g. via CRAN or other vehicles). Regards, Marc Schwartz ____

<    7   8   9   10   11   12   13   14   15   16   >