[R] How to integrate OpenBLAS LAPACK to my RStudio in WINDOWS 7?

2017-04-15 Thread Allan Tanaka via R-help
enBLAS and use it? Please let me know. THANKS *Note: I Have installed RTools but i don't set R's mingw, cygwn in the environment path because i have installed those two beforehand. My RSTUDIO=3.4 ______ R-help@r-project.org mailing list -- To UNSUB

[R] seq argument alomg.with

2017-04-16 Thread Carl Sutton via R-help
Hi Thank you gentlemen for sharing your knowledge. It makes perfect sense and using seq_along prevents errors that could be perplexing and time consuming to discover. Thank you Carl Sutton __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

Re: [R] the difference between "-" and "!" between base and data.table package

2017-04-16 Thread Carl Sutton via R-help
7 1:00 AM, David Winsemius wrote: > On Apr 15, 2017, at 5:18 PM, Carl Sutton via R-help > wrote: > > Hi > > > I normally use package data.table but today was doing some base R coding. > Had a problem for a bit which I finally resolved. I was attempting to > separa

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-17 Thread William Dunlap via R-help
". The former doesn't show. >>> Bruce >>> >>> __ >>> Bruce Ratner PhD >>> The Significant Statistician™ >>> (516) 791-3544 >>> Statistical Predictive Analytics -- www.DMSTAT1.com >>> Machine-Learning D

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-17 Thread William Dunlap via R-help
pr 17, 2017 at 3:06 AM, Bruce Ratner PhD wrote: >>>> David: >>>> When I launch Rstudio the effects of the Rprofile do not show, e.g., I >>>> want the prompt to be "R> " instead of the default "> ". The former >>>> doesn&

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-17 Thread William Dunlap via R-help
;>>> and sticking things into it." >>>> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) >>>> >>>> >>>>> On Mon, Apr 17, 2017 at 3:06 AM, Bruce Ratner PhD >>>>> wrote: >>>>> David: &g

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-17 Thread William Dunlap via R-help
t;> ?options >>>>> >>>>> is how it can be set. Did you do this? >>>>> >>>>> -- Bert >>>>> >>>>> Bert Gunter >>>>> >>>>> "The trouble with having an open mind is that people

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-17 Thread William Dunlap via R-help
gt;>>>>> >>>>>> 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 Count

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-17 Thread William Dunlap via R-help
en given >>>>>>> regarding .Rprofile. >>>>>>> >>>>>>> But what code did you use in your .Rprofile to set the prompt? The >>>>>>> posting guide explicitly requests that you provide your code, >>>>>>> although >>>>&g

Re: [R] Return value from function with For loop

2017-04-17 Thread William Dunlap via R-help
My question is *Which *is considered as the last line in a functoin for the > purpsoe of default return ? And under what conditions ? > > -Thanks, > Ramnik > > [[alternative HTML version deleted]] > > ______ > R-help@r-pro

Re: [R] Question on accessing foreign files

2017-04-18 Thread William Dunlap via R-help
gt; > Thank you, > Daniel > > [[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://

[R] difference-in-difference method for estimating causal impact,

2017-04-18 Thread Ralf Pfeiffer 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] Interesting quirk with fractions and rounding

2017-04-20 Thread William Dunlap via R-help
gt; round(aa) > [1] 57 > > round(bb) > [1] 58 > > I'm putting this one in my collection of "difficult to understand" > numerical calculations. > > If you have seen this before, I'm sorry to waste your time. > > pj > -- > Paul E. Johnson htt

Re: [R] Creating interactive graphs and exporting to Intranet site

2017-04-23 Thread William Michels via R-help
the directors on >> Wednesday and really don’t want to use Excel for the graphs - I want this to >> be intuitive for them, but ensuring that the report is easily maintained and >> more flexible than a Pivot Table. >> >> Thanks so much for your time and have

Re: [R] R Date Time

2017-04-25 Thread William Dunlap via R-help
> Having problems converting the following DTG into an R recognized date/time > field > > > > 01-01-2016T14:02:23.325 > > > > Would I separate it into a date field and time filed then put it back > together??? > > > > Jeff > > > [[alternative H

[R] Different output for "if else" and "ifelse" that I don't understand

2017-04-28 Thread Marc Girondot via R-help
t(...), silent=TRUE))=="try-error") p3p <- list() else p3p <- list(...) + return(p3p) + } > Try1(k=100) $k [1] 100 > Try1() list() > Try2 <- function(...) { + p3p <- ifelse(class(try(list(...), silent=TRUE))=="try-error", list(), list(...)) + return(p3p)

Re: [R] Different output for "if else" and "ifelse" that I don't understand

2017-04-28 Thread William Dunlap via R-help
of using ifelse, since the return value of 'if ... else ...' is the value of whichever branch was taken. Even better, use p3p <- try(list(...), error=function(e) list()) Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Apr 28, 2017 at 2:21 AM, Marc Girondot via R-help <

Re: [R] Different output for "if else" and "ifelse" that I don't understand

2017-04-28 Thread William Dunlap via R-help
> > 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 Fri, Apr 28, 2017 at 8:34 AM, William Dunlap v

[R] Lattice xyplot

2017-05-01 Thread array chip via R-help
5 134 2 2.3 207 3 4.8 130 3 4.9 207 2 2.3 130 1 3.8 131 2 3.9 133 3 3.1 134 1 2.8 209 1 4.2 208 3 2.3 208 1 5.3 208 2 0.8 128 3 4.4 131 3 6.2 209 2

Re: [R] Example of the use of the "crt" graphical parameter?

2017-05-01 Thread William Dunlap via R-help
ate characters in some marginal text > >> in a base-R plot. I made a few stabs on using the "crt" parameter but > >> was unsuccessful. > >> > >> I'm deliberately omitting details of my attempts, as I want just to > >> focus on the following:

Re: [R] Lattice xyplot

2017-05-01 Thread array chip via R-help
Thanks all for the clarification! From: Jeff Newmiller To: r-help@r-project.org; Bert Gunter ; array chip Cc: "r-help@r-project.org" Sent: Monday, May 1, 2017 10:53 AM Subject: Re: [R] Lattice xyplot It is not a question of whether lattice "understands&quo

[R] memory problem

2017-05-02 Thread Amit Sengupta via R-help
Hi,I was unable to read a 2.4 gig file into an R object using read.table in 64 bit R environment. Please let me have your suggestions.Amit Sengupta [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

[R] memory issue

2017-05-02 Thread Amit Sengupta via R-help
HI,I am unable to read a 2.4 gig file into a table (using read.table) in a 64 bit R environment. Do you have any suggestions?Amit [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

Re: [R] install lapack for mac

2017-05-02 Thread William Michels via R-help
##### > 100.0% > > ==> *Pouring lapack-3.7.0_2.sierra.bottle.tar.gz* > > ==> *Caveats* > > This formula is keg-only, which means it was not symlinked into /usr/local. > > > macOS already provides this sof

[R] RCommander issue

2017-05-03 Thread thambu david via R-help
deIs this an issue with R? Is there some setting i need >to do to get this sorted out?I would be thankful for you helpsincerelyThambu [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https:/

Re: [R] Formatting column displays

2017-05-05 Thread William Dunlap via R-help
gh the >> knitr package and in RStudio via Rnw and Rmd files. Tables in particular >> are well supported via LaTeX with the tables package. The ReporteR package >> can output to Microsoft Word files directly with various formatting >> options, but it doesn't play well

[R] create a correct list from Document Term Matrix

2017-05-06 Thread Elahe chalabi via R-help
of my DTM as the second element of my list? in the line marked by * I need to have $frequenciesAlzheimer : List of 6 but there's no name, does anyone know how should I solve this? Thanks for any help! Elahe __ R-help@r-project.org mailing list

Re: [R] setting the values of a secondary "y" axis

2017-05-06 Thread William Dunlap via R-help
rom plot to plot. > > Thanks in advance for any help. All the best. > > Antonio > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/ma

[R] visualization of KNN results in text classification

2017-05-07 Thread Elahe chalabi via R-help
know how to plot the results. Does anyone know any special package? Thanks for any help! Elahe ______ 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] visualization of KNN results in text classification

2017-05-08 Thread Elahe chalabi via R-help
Any idea?! On Sunday, May 7, 2017 5:56 PM, Elahe chalabi via R-help wrote: Hi all, Does anyone know what is the best way to visualize KNN(K nearest neighbor) results for classification of texts in R? My data set has only speeches and the type of the people for them which is

[R] Revolutions blog: April 2017 roundup

2017-05-08 Thread David Smith via R-help
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog (http://blog.revolutionanalytics.com) and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you

Re: [R] About calculating average values from several matrices

2017-05-09 Thread William Michels via R-help
[R] About calculating average values from several matrices > >> >> >> >> I'm trying to get a new dataframe or whatever to call, which has the same >> structure with each file as listed above. For each cell in the new >> dataframe or the new file, it is

[R] How to replace missing values by mean of subgroup of a group

2017-05-09 Thread Olu Ola via R-help
| | 106 | Hull | flour | 40 | | 106 | Hull | eggs | NA | [[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

Re: [R] visualization of KNN results in text classification

2017-05-12 Thread Elahe chalabi via R-help
p you. Please, read posting guide. > ______ > 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] installing caret package

2017-05-12 Thread Elahe chalabi via R-help
or ‘caret’ how should I solve the problem with this sigma?! Thanks for any help. Elahe __ 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-proj

Re: [R] Plotting bar charts by Month

2017-05-13 Thread John Kane via R-help
Could we see some sample data? On Tuesday, May 9, 2017 9:55 PM, Jeff Reichman wrote: r-help Trying to figure out how to plot by month bar charts. The follow code plots the monthly portion on a yearly x-scale.  So I either I create 12 individual month plots or maybe there is some

Re: [R] Xtable with long column headings/names

2017-05-15 Thread John Kane via R-help
Can you give us an example. I am having a problem visualizing this.  It seems obvious just to put in a line break normally but in xtabs who knows? On Monday, May 15, 2017 1:15 PM, Bruce Ratner PhD wrote: R-help: I'm using xtable that produces a table in html with one-line for ea

[R] optimx and follow.on=TRUE... does not follow

2017-05-17 Thread Marc Girondot via R-help
e optimx. Thanks a lot. Marc ______ 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] Help on reducing multiple loops

2017-05-18 Thread John Kane via R-help
quot;Active_Prod_Id"),by.y = c("P_KEY", "prod"),all.x=TRUE)   names(Final_data)[names(Final_data) == "weight"] <- "Proficiency_Score"   emerging_prod_mapping <- readRDS("5.Emerging_prod_Lookup.rds")   emerging_prod_list <- subset(emerging

[R] train function in caret package

2017-05-19 Thread Elahe chalabi via R-help
= TRUE)) : could not find function "mayCallBrowser" Does anyone know how should I solve it?! Thanks for any help! Elahe __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PL

Re: [R] [FORGED] p-value=0 running log-rank test

2017-05-19 Thread William Dunlap via R-help
cted (O-E)^2/E (O-E)^2/V >> tphist=1 513 19 40.87911.710 9.00e+01 >> tphist=2 4943.892 0.003 3.27e-03 >> tphist=3 2391.68631.717 3.29e+01 >> tphist=4 18 150.543 385.172 3.91e+02 >> >> Chisq= 430 on 3 deg

Re: [R] had non-zero exit status

2017-05-19 Thread William Dunlap via R-help
notify the sender. Those individuals are hereby notified that they are > strictly prohibited from reviewing, forwarding, printing, copying, > distributing or using this information in any way. > > [[alternative HTML version deleted]] > > __ > R-

Re: [R] train function in caret package

2017-05-19 Thread Elahe chalabi via R-help
Any answer?! On Friday, May 19, 2017 6:33 AM, Elahe chalabi via R-help wrote: Hi all, I'm running train function from caret package on my data set patientdata:     model=train(type~., data=patientdata, method="lvq", preProcess="scale", trControl=cont

Re: [R] Matching values between 2 data.frame.

2017-05-20 Thread William Dunlap via R-help
alData & TargetValue respectively. With this same law, I need to > >> update 'Value' column of OriginalData with that of TargetValue. > >> > >> As an example, after replacement by above rule, 1st row of > >> OriginalData should look like : > >> > >>> Origina

Re: [R] [FORGED] Logical Operators' inconsistent Behavior

2017-05-21 Thread William Michels via R-help
s FALSE so FALSE & NA is FALSE. >>> >>> As I said *think* about it; don't just go with your immediate knee-jerk >>> (simplistic) reaction. >> >> Hmm... not sure that was quite fair to the OP. Yes, FALSE & == >> FALSE. But 'NA' does

Re: [R] [FORGED] Logical Operators' inconsistent Behavior

2017-05-22 Thread William Michels via R-help
hing'; it means 'missing' (see ?'NA'). It >> is much less obvious that FALSE & should generate a non-missing >> value. SQL, for example, generally takes the view that any expression >> involving 'missing' is 'missing'. > >

[R] Duplicate row names are not allowed

2017-05-22 Thread ville iiskola via R-help
mmander. I attach the data file and print sqreen of my code to here if somebody could help the  novice. Ville______ 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 ht

Re: [R] R truncating decimal places

2017-05-22 Thread William Dunlap via R-help
; Thanks! > > Andrea > > [[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 ht

Re: [R] About change columns and specific rows in R

2017-05-22 Thread William Michels via R-help
n month2 by 2.0? I wrote the code like this but does not work. > Thanks for your help. > > DF['month'==1, ]$product1_1 = DF['month'==1, ]$product1 * 3.1; > DF['month'==2, ]$product3_1 = DF['month'==1, ]$product3 * 2.0; > > [[alternative HT

Re: [R] About change columns and specific rows in R

2017-05-23 Thread William Michels via R-help
ou have to > specify the data.frame you want to look into. > > And last, learn to use dput() to provide a nice reproducible example. > > HTH, > Ivan > > > -- > Dr. Ivan Calandra > TraCEr, Laboratory for Traceology and Controlled Experiments > MONREPOS Archaeolog

[R] prcomp: Error in La.svd(x, nu, nv): error code 1 from Lapack routine "dgesdd"

2017-05-23 Thread Fix Ace via R-help
On Thursday, December 29, 2016 11:44 AM, Ista Zahn wrote: Use coord_fixed() --Ista On Thu, Dec 29, 2016 at 9:59 AM, Fix Ace via R-help wrote: > > > >  Hello, there, > What exactly does "expand" do for this function? > I followed the examples from the manual to

[R] MDS plot in Random Forest

2017-05-25 Thread Elahe chalabi via R-help
any help. Elahe __ 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

Re: [R] MDS plot in Random Forest

2017-05-26 Thread Elahe chalabi via R-help
Thanks for your reply Bert. But the question on how to plot MDS on predicted data I guess belong to here! On Thursday, May 25, 2017 9:43 AM, Bert Gunter wrote: Elahe: On Thu, May 25, 2017 at 8:15 AM, Elahe chalabi via R-help wrote: > Hi all, > I have applied Random Forest on m

[R] deviance in GLM vs. summary.glm

2017-05-30 Thread array chip via R-help
ot;R" 0 "A" "R" 1 "A" "R" 0 "B" "R" 0 "B" "NR"0 "B" "NR"0 "B" "R" 1 "A" "R" 1

[R] Post for R

2017-05-31 Thread carrie wang via R-help
;-list()G<-list()for (i in length(L1)){  Z=data.frame(L1[i])  G <- split(Z$submax,"0.02")  print(G)  } Thanks so much!Carrie [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

Re: [R] Data import R: some explanatory variables not showing up correctly in summary

2017-06-01 Thread William Dunlap via R-help
30-40m : 16 > > > 40-50m : 57 10-20m : 13 > > > **(Other): 82 (Other): 18** > > > > > > I have checked my data sheet over and over again and I think > > standardised the data, but the issue keeps arising. I'm assuming I need > to > >

Re: [R] Data import R: some explanatory variables not showing up correctly in summary

2017-06-01 Thread William Dunlap via R-help
2017, at 8:57 AM, William Dunlap via R-help < > r-help@r-project.org> wrote: > > > > Check for leading or trailing spaces in the strings in your data. > > dput(dataset) would show them. > > This function would strip any leading or trailing spaces from a column: &g

Re: [R] Warning from reshape2 when melting a data frame with uneven number of columns.

2017-06-04 Thread John Kane via R-help
t;factor"),     V5 = structure(c(1L, 2L, 1L), .Label = c("", "name_78"), class = "factor")), .Names = c("V1", "V2", "V3", "V4", "V5"), class = "data.frame", row.names = c(NA, -3L)) library(resha

[R] glm and stepAIC selects too many effects

2017-06-05 Thread Marc Girondot via R-help
+ B + C + D + E + F + G + H + I + J + K, data=df, family = gaussian(link = "identity")) g2 <- stepAIC(G2) summary(g2) __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEAS

[R] Revolutions blog: May 2017 roundup

2017-06-06 Thread David Smith via R-help
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog (http://blog.revolutionanalytics.com) and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you

[R] Time series axis breaks

2017-06-07 Thread Felipe Carrillo via R-help
ima(pond)d.forecast <- forecast(d.arima, level = c(95), h = 3)d.forecast autoplot(d.forecast) + xlim(7, 101)Error in unit(x, default.units) : 'x' and 'units' must have length > 0 Take a look at the attached plot __ R-hel

[R] time series x axis labels

2017-06-07 Thread Felipe Carrillo via R-help
ima(pond)d.forecast <- forecast(d.arima, level = c(95), h = 3)d.forecast autoplot(d.forecast) + xlim(7, 101)Error in unit(x, default.units) : 'x' and 'units' must have length > 0 Take a look at the attached plot __ R-hel

[R] stepAIC() that can use new extractAIC() function implementing AICc

2017-06-07 Thread Marc Girondot via R-help
C") return(c(edf, AIC -2*edf + log(n)*edf)) } extractAIC <- extractAIC.lm <- extractAIC.glm extractAIC(G1, criteria="AIC") extractAIC(G1, k=log(15)) extractAIC(G1, criteria="BIC") stats:::extractAIC.glm(G1, k=log(15)) extractAIC(G1, criteria="AICc") ste

Re: [R] stepAIC() that can use new extractAIC() function implementing AICc

2017-06-08 Thread Marc Girondot via R-help
kage, and it works: > stepAIC(G1, criteria="AICc", steps = 1) Start: AIC=70.06 x ~ A + B Df DevianceAIC - A 1 48.506 68.355 47.548 70.055 - B 1 57.350 70.867 Now stepAIC can use AICc Marc __ R-help@r-project.org

[R] I don't want to receive mail from questioner

2017-06-08 Thread Sara Edi via R-help
blockquote, div.yahoo_quoted { margin-left: 0 !important; border-left:1px #715FFA solid !important; padding-left:1ex !important; background-color:white !important; } How can I cancel R-help mail?I do not want to receive questions of questioner becouse I do not have enough information about R

Re: [R] help regarding r-project

2017-06-08 Thread John Kane via R-help
; > to predict,  skills + experience =result > -- Michael http://www.dewey.myzen.co.uk/home.html ______ 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 htt

[R] count number of stop words in R

2017-06-12 Thread Elahe chalabi via R-help
n the on the counter . She's outside ." Thanks for any help! Elahe __ 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] count number of stop words in R

2017-06-12 Thread Elahe chalabi via R-help
lish")) Patrick Casimir, PhD Health Analytics, Data Science, Big Data Expert & Independent Consultant C: 954.614.1178 From: R-help on behalf of Bert Gunter Sent: Monday, June 12, 2017 10:12:33 AM To: Elahe chalabi Cc: R-help Mailing List Subject:

Re: [R] count number of stop words in R

2017-06-12 Thread Elahe chalabi via R-help
it there it's a picture of a kitchen window . And the curtains are very uh distinct . But the water is still flowing." Patrick Casimir, PhD Health Analytics, Data Science, Big Data Expert & Independent Consultant C: 954.614.1178 ____ Sent: Monday,

Re: [R] replacement has *** rows, data has ***

2017-06-12 Thread William Dunlap via R-help
as 34347. > Do you know how to solve that? > > Thanks, > Manqing > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/lis

[R] Σχετ: plotting gamm results in lattice

2017-06-13 Thread Maria Lathouri via R-help
yplot(x,y, type="smooth")                   panel.xyplot(Q2, upper, lty=2, col="red")                   panel.xyplot(Q2, lower, lty=2, col="red")                   #panel.loess(x,y,...)                   #panel.rug(x = x[is.na(y)], y = y[is.na(x)])                 } ) If you are pu

[R] Classification and Regression Tree for Survival Analysis

2017-06-13 Thread Dimitrie Siriopol via R-help
to properly do what I want. 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-proj

Re: [R] is.null(mylist[1]) and is.null(mylist$a) returns different values

2017-06-15 Thread William Dunlap via R-help
the other two select a single > >element." > > > >On Thu, Jun 15, 2017 at 11:33 AM, ce wrote: > >> Hi > >> > >> I have a list : > >> > >> mylist <- list( a = NULL, b = 1, c = 2 ) > >> > >>> mylist[1] >

[R] "reverse" quantile function

2017-06-15 Thread Andras Farkas via R-help
,0.33)) #to get 0.33 back... any suggestions on how I could to that for a data frame? thank you,Andras Farkas __ 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

Re: [R] about fitting a regression line

2017-06-15 Thread William Dunlap via R-help
alue > for the slope. And here is the error message: > Coefficients: (1 not defined because of singularities) > > > On Thu, Jun 15, 2017 at 12:20 AM, PIKAL Petr > wrote: > > > Hi > > > > But X can be some function like - sin, cos, log, exp... > >

Re: [R] "reverse" quantile function

2017-06-15 Thread Andras Farkas via R-help
eciate the help... Andras Farkas, On Thursday, June 15, 2017 6:46 PM, David Winsemius wrote: > On Jun 15, 2017, at 12:37 PM, Andras Farkas via R-help > wrote: > > Dear All, > > we have: > > t<-seq(0,24,1) > a<-10*exp(-0.05*t) > b<-10*exp(-0.0

Re: [R] "reverse" quantile function

2017-06-16 Thread Andras Farkas via R-help
your one liner would be the first 4 column values of each row and "q" is the last (5fth) column value of each row.. thanks again for all the help, Andras Farkas ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://sta

Re: [R] "reverse" quantile function

2017-06-16 Thread Andras Farkas via R-help
Never mind, I think i figured: z<-df apply(df,1,function(x) approx(sort(x[1:4]), seq(0,1,,length(x[1:4])), x[5])$y) thanks again for the help Andras Farkas, On Friday, June 16, 2017 5:34 AM, Andras Farkas via R-help wrote: Peter, thanks, very nice, this will work for me... co

Re: [R] "reverse" quantile function

2017-06-16 Thread Andras Farkas via R-help
.1234)) pfun(q) There are variations, e.g. the one-liner approx(sort(x), seq(0,1,,length(x)), q)$y -pd > On 16 Jun 2017, at 01:56 , Andras Farkas via R-help > wrote: > > David, > > thanks for the response. In your response the quantile function (if I see > correctly)

Re: [R] write.dna command

2017-06-17 Thread William Michels via R-help
quot; > > > ># Store the sequence in lst (a list) > > lst <- read.GenBank(DNAid, as.character = T) > > > > # convert the sequence to fasta format > > write.dna (lst, file = "DNAseq.fasta", format = "fasta", append =

[R] mixed models lmer function help!!

2017-06-19 Thread Shelby Leonard via R-help
s on volume growth curves [[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

Re: [R] write.dna command

2017-06-19 Thread William Michels via R-help
t; lst <- read.GenBank(DNAid, as.character = T) > > # convert the sequence to fasta format >write.dna (lst, file = "DNAseq.fasta", format = "fasta", append = > FALSE, >nbcol= 6, colsep= " ", colw= 10) > > &

[R] Back to back barplot

2017-06-22 Thread Franklin Mairura via R-help
Dear Gentlemen, i want to create a back-to back barplot in R, close to a pyramid chart, but with categories, please help; Here is a sample, Franklin. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

[R] optim() has a non-consistent way to send parameter for different methods

2017-06-23 Thread Marc Girondot via R-help
lt;-optim(par=p, fn=fitnorm_mean, val=val, method="Brent", lower=10, upper=30) [1] 17.63932 [1] 22.36068 ______ 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] Simple control structure issue

2017-06-23 Thread William Dunlap via R-help
ums))) { > If (!identical(Cpers[j],WhichRunNow)){" > > next > Error: no loop for break/next, jumping to top level > > } > Error: unexpected '}' in "}" > > print(j) > [1] 3 > > } > Error: unexpected '}' in "}" > > > > Obvio

[R] Different date formats in one column

2017-06-28 Thread Farnoosh Sheikhi 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

[R] package to fit mixtures of student-t distributions

2017-06-29 Thread vare vare via R-help
ons to some data and estimate the "location" "scale" and "degrees of freedom" for each. I hope someone can point me to a simple package, I can’t believe that this is such an obscure use case. Thanks! ______ R-help@r-projec

Re: [R] package to fit mixtures of student-t distributions

2017-06-29 Thread vare vare via R-help
> and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Thu, Jun 29, 2017 at 5:41 AM, vare vare via R-help > wrote: >> Hello! >> >> I am new to R (before used python exclusively and would actu

Re: [R] Different date formats in one column

2017-06-29 Thread Farnoosh Sheikhi via R-help
Hi Christoph, There is "," between dates.Many thanks. Best,Farnoosh On Wednesday, June 28, 2017 9:05 PM, Christoph Puschmann wrote: Hey, Are all the dates connected? So no comma or space btw? Regards, Christoph > On 29 Jun 2017, at 2:02 pm, Farnoosh Sheikhi via R-h

Re: [R] Different date formats in one column

2017-06-29 Thread Farnoosh Sheikhi via R-help
format="%B-%d-%y" ) idx <- grepl( "^(0[1-9]|1[0-2])[0-9]{2}[0-9]{2}$", dta$DtStr, perl=TRUE ) dta$Dt[ idx ] <- as.Date( dta$DtStr[ idx ], format="%m%d%y" ) idx <- grepl( "^([1-9]|1[0-2])/[0-9]{1,2}/[0-9]{2}$", dta$DtStr, perl=TRUE ) dta$Dt[ idx ] &l

Re: [R] Questions regarding to JohnSonFit() in the R package Johnson {SuppDists}

2017-06-30 Thread William Dunlap via R-help
ould be too laborious to do so. > > If possible, could you shed some light on this error? > > Thanks! > > -- > Regards, > > Shiner Yang > B. Sc Statistics & Economics, Commerce Minor | UBC > Co-President, Science Co-op Students Association > > [[al

Re: [R] package to fit mixtures of student-t distributions

2017-07-02 Thread vare vare via R-help
-distributions/44827220#44827220 <https://stackoverflow.com/questions/44825529/package-to-fit-mixtures-of-student-t-distributions/44827220#44827220> Kind regards Vare > Would package "teigen" help? > > Ranjan > > > On Thu, Jun 29, 2017 at 2:41 PM, vare vare via R-

[R] Factor vs character in a data.frame vs vector

2017-07-07 Thread John Kane via R-help
bb = letters[1:10] str(bb) chr [1:10] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" #==

Re: [R] Factor vs character in a data.frame vs vector

2017-07-07 Thread John Kane via R-help
17, 10:37:29 AM EDT, Marc Schwartz wrote: > On Jul 7, 2017, at 6:03 AM, John Kane via R-help wrote: > > This is not  serious problem but I just wonder if someone can explain what is > happening. > The same command within a dataframe is giving me a factor and as a plain >

Re: [R] Factor vs character in a data.frame vs vector

2017-07-08 Thread John Kane via R-help
olClasses' argument to explicitly set such vectors to character, or to use I(...) to create AsIs class columns. Regards, Marc > > > > On Friday, July 7, 2017, 10:37:29 AM EDT, Marc Schwartz > wrote: > > > > > On Jul 7, 2017, at 6:03 AM, John Kane via

[R] Help with ftable.svyby

2017-07-09 Thread Orsola Costantini via R-help
ot;65-74", ">=75"), RACECL=c("white non his", "non white or hispanic"))) any idea why? Thanks!!! U. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more

Re: [R] Help with ftable.svyby

2017-07-09 Thread Orsola Costantini via R-help
factor levels and re-run? > > q50 <- update( q50 , INCOME = factor( INCOME ) , AGECL = factor( AGECL ) , > RACECL = factor( RACECL ) ) > > > > > On Sun, Jul 9, 2017 at 2:59 PM, Orsola Costantini via R-help < > r-help@r-project.org> wrote: > >> Hi all, >&g

[R] Revolutions blog: June 2017 roundup

2017-07-10 Thread David Smith via R-help
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog (http://blog.revolutionanalytics.com) and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you

[R] filtering of CO2 observation time series residuals using FFT

2017-07-10 Thread Yogesh Tiwari 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

[R] Extracting sentences with combinations of target words/terms from cancer patient text medical records

2017-07-11 Thread Paul Miller via R-help
ames = c("PTNO", "DATE", "TYPE", "TVAR"), class = c("tbl_df", "tbl", "data.frame"), row.names = c(NA,-4L) ) sampletxt2 <- group_by_at(sampletxt, vars(PTNO, DATE, TYPE)) sampletxt2 <- sampletxt2 %>% mutate( EXTRACTED = sentence_match(TVAR) ) __ 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.

<    3   4   5   6   7   8   9   10   11   12   >