[R] Hi, I'm working with custom slides(Cy5) and worki...

2009-03-12 Thread david david
s$Name) #The vsn normalization works fine mat <- vsnMatrix(RG$R) However i would like to normaliza using my spikein controls by block or by using the mean of all controls. Could you help on that ?? thanks, david __

Re: [R] Help on adding a negative binomial density plot

2017-10-03 Thread David
Dear David, thanks ever so much for your answer. Do you mean predicting the original values based on the fitted model and then comparing observed vs. predicted by, for example, a scatterplot? Thanks, David De: David Winsemius Enviado: lunes, 2 de octubre

[R] R Crashes with .C

2016-06-28 Thread David .
un it with .Fortran with only Fortran code? It seems like .Fortran have problem handling strings, or that's what I understood from: Interface func .C and .Fortran<https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Interface-functions-_002eC-and-_002eFortran> Thanks for your

[R] help assigning values to matrix

2015-04-14 Thread David
Hi group, I am automatically creating several matrices to store results from different analyses on vectors of different lengths. The matrices are named according to each vector, so I can trace back results. I am using the following commands, which give me an error. My idea is to populate th

[R] File names for mac newby

2020-01-21 Thread David
I moved to a mac a few months ago after years in windows, and I'm still learning basics.  I'm wanting to create a data frame based on a text file called HouseTemps.txt.  That's a file within one called house which is within one called ah.  That may further be in one called  Documents.  I tried

Re: [R] File names for mac newby

2020-01-22 Thread David
om>> wrote: > > > >    OSX is based on BSD UNIX so paths use the forward slash as > separator, e.g. > > > >    temps <- > > read.table("c:/Users/DFP/Documents/ah/house/HouseTemps.txt",header=T,row.names=1) > > > &g

[R] Not seeing the results of a function

2020-03-30 Thread David
, nothing has been changed.  How can I fix this? Here’s the function: > addday <- function(stp,mcp,stpos,mcpos){stpos<-c(stpos,stp) + mcpos<-c(mcpos,mcp) + days<-c(1:length(stpos))} David __ R-help@r-project.org mailing list -- To UNSUB

[R] Program to produce multiple plots

2020-03-30 Thread David
I wrote a little program that asked to produce two plots, but when I ran it, I saw only the second plot.  Is there a way to write a program that will produce multiple visible plots? David __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

[R] C code called from R: reallocate arrays passed as arguments?

2010-10-06 Thread David
ntf("\nFATAL ERROR: Could not allocate memory for the array\n"); exit(2); } But then, when calling the function ".C", I get *** error for object ...: pointer being reallocated was not allocated Is there any workaround for this? Thank you very much in advance,

[R] "Memory not mapped" when using .C, problem in Mac but not in Linux

2010-10-13 Thread David
the latest version of gcc (obtained from MacPorts), but the error persists. Any ideas? Thank you very much in advance, David Can you please Cc to me any replies, just in case I may miss any of them among the whole amount of emails :-) ? [[alternative HTML versi

Re: [R] "Memory not mapped" when using .C, problem in Mac but not in Linux

2010-10-13 Thread David
e that the R equivalent is *not* "as.integer". Which is it? Thank you very much in advance, David Can you please Cc to me any replies, just in case I may miss any of them among the whole amount of emails :-) ? --- Program received signal EXC_BAD

Re: [R] "Memory not mapped" when using .C, problem in Mac but not in Linux

2010-10-14 Thread David
oubles. > I do not think so. Both R and the "default" gcc did not come from Macports. The "default" gcc came with Xcode in the extras' cd (by the way, how can gcc in Mac be upgraded?). > - on 64bit Mac OS X long int is 64bits and int is 32bits; on 32bit Mac OSX >

[R] 64-bit R via ec2

2010-10-17 Thread david
Saw your post - please provide more info on using your images. Thanks. __ 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, m

Re: [R] calibration curve for cph()

2011-08-15 Thread David
2011 2:04 PM > Subject: Re: [R] calibration curve for cph() > > Build a prediction function using 'Function' that gets applied to set2. > Calibrate and validate. > > -- > David > > Sent from my iPhone > > On Aug 15, 2011, at 11:31 AM, array chip wr

[R] The following object(s) are masked from ‘package:stats’

2012-07-10 Thread David
aphics" "package:grDevices" [9] "package:utils" "package:datasets" "package:methods" "Autoloads" "package:base" > attach(stats) Error in attach(stats) : object 'stats' not found However, I still could not get i

Re: [R] The following object(s) are masked from ‘package:stats’

2012-07-11 Thread David
Hi Charlie, Thanks for replying top my post, I really appreciate it. I understand whats going on now. Thank you once again David -- View this message in context: http://r.789695.n4.nabble.com/The-following-object-s-are-masked-from-package-stats-tp4636079p4636250.html Sent from the R help

Re: [R] barchart with 3 Arguments

2012-08-28 Thread David
The listserver is very good about passing on attachments IF AND ONLY IF they are text or an acceptable image format. -- David Sent from my iPhone On Aug 28, 2012, at 11:17 AM, John Kane wrote: > No data is attached. The R-help list usually strips out attachments to > prevent viru

[R] Making outregs in R

2011-12-09 Thread David .
Dear r-Gods! I am interesting in making an equivalent command like outreg in stata where I get all my 8 regressions in one table. Does R have an easy command to that? MVH Dave [[alternative HTML version deleted]]

[R] Creating dummys in R

2011-11-10 Thread David .
Dear R-project! How do i create 1 dummy from 2 already existing dummys. To be more precise, I want to create a dummy from a dummy called "sex" and another called "sex1" when both thoose dummys are 1 I want my created dummy "samesex" to take 1. Thanks for the help! Paulie

Re: [R] Extracting numbers from a character variable of different types

2012-03-18 Thread David
for the cells that identify months and > years, respectively: > > years<-gsub('[[:alpha:]]|[[:punct:]]|0','',x[grep("/A|/a",x)]) The problem with this approach is that the years vector becomes disjoint from the months vector. It doesn't lend itself we

Re: [R] bias sampling

2012-03-18 Thread David
Thank you for your time, Thomas . In case the questioner is not aware of a few facts... Thomas Lumley is both a) the person who originally ported tThereau's "survival" package to R and was also its maintainer for many years , and b) the author of the "survey" packag

[R] i dont know what function do i have to make for ("The number of lines in the body of the email")

2012-03-20 Thread david
i tried to make function about "The number of lines in the body of the email" and i have three values which are emailtestset1, emailtestset2, and emails. what i have to do? -- View this message in context: http://r.789695.n4.nabble.com/i-dont-know-what-function-do-i-have-to-make-for-The-number-o

[R] png misbehaving with levelplot when inside a loop

2008-05-02 Thread David
",height=500,width=500) x <- seq(pi/4, 5 * pi, length = 100) y <- seq(pi/4, 5 * pi, length = 100) r <- as.vector(sqrt(outer(x^2, y^2, "+"))) grid <- expand.grid(x=x, y=y) grid$z <- cos(r^2) * exp(-r/(pi^3)) levelplot(z~x*y, grid, cuts = 50, scales=list(log="e&q

[R] Frailty

2007-11-21 Thread David
Hi Which package(s) is R fit frailty models to univariate survival data, i.e. simple data with one survival time per person. David [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] What exactly is an dgCMatrix-class. There are so many attributes.

2017-10-20 Thread David Winsemius
ted]] Please read the Posting Guide. Your code was not mangled in this instance, but HTML code often arrives in an unreadable mess. > > ______ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/lis

Re: [R] What exactly is an dgCMatrix-class. There are so many attributes.

2017-10-21 Thread David Winsemius
e all these matrices should work like regular numeric > matrices, just faster with less memory foot print if they are > really sparse (and not just formally of a sparseMatrix class) > ((and there are quite a few more niceties in the package)) > > Martin Maechler > (here, maintainer of &#

Re: [R] Syntax for fit.contrast

2017-10-22 Thread David Winsemius
I'm thinking you should pick one of the examples in gmodels::fit.contrast that most resembles your real problem, post it, and and then explain what difficulties you are having with interpretation. -- David. > Thank you, > > John > > > My model: > > model=glm(

Re: [R] Syntax for fit.contrast (from package gmodels)

2017-10-22 Thread David Winsemius
> On Oct 22, 2017, at 3:56 PM, Sorkin, John wrote: > > David, > Thank you for responding to my post. > > Please consider the following output (typeregional is a factor having two > levels, "regional" vs. "general"): > Call: > glm(formula = ev

Re: [R] Syntax for fit.contrast (from package gmodels)

2017-10-22 Thread David Winsemius
> On Oct 22, 2017, at 5:01 PM, Sorkin, John wrote: > > David, > Again you have my thanks!. > You are correct. What I want is not technically a contrast. What I want is > the estimate for "regional" and its SE. There needs to be a reference value for the contrast

Re: [R] Syntax for fit.contrast (from package gmodels)

2017-10-22 Thread David Winsemius
> On Oct 22, 2017, at 5:26 PM, Sorkin, John wrote: > > David, > predict.glm and se.fit were exactly what I was looking for. The default 'se' delivered for a listed contrast is not for that particular level per se, but rather for the difference between that level and

Re: [R] Problem when trying to run Java in R:

2017-10-22 Thread David Winsemius
cpp_0.2 latticeExtra_0.6-28 [57] sandwich_2.3-4 TH.data_1.0-8 RColorBrewer_1.1-2 tools_3.4.2 [61] glue_1.1.1 Rook_1.1-1 parallel_3.4.2 colorspace_1.3-2 [65] cluster_2.0.6 knitr_1.15.1bindr_0.1 quantreg_5.33 Running

Re: [R] Problem Subsetting Rows that Have NA's

2017-10-25 Thread David Winsemius
need to spend time with the examples and with other tutorial material to recognize the gotcha's. Here's a couple of possibly helpful rules regarding "[[" and "[" and logical indexing: Nothing _equals_ NA. Selection operations with NA logical index item return NA. (Justified as a warning feature as I understand it.

Re: [R] Problem Subsetting Rows that Have NA's

2017-10-25 Thread David Winsemius
> On Oct 25, 2017, at 11:17 AM, David Winsemius wrote: > > >> On Oct 25, 2017, at 6:57 AM, BooBoo wrote: >> >> On 10/25/2017 4:38 AM, Ista Zahn wrote: >>> On Tue, Oct 24, 2017 at 3:05 PM, BooBoo wrote: >>>> This has every appearance of being

Re: [R] R encountered a fatal error. The session was terminated. + *** caught illegal operation ***

2017-10-26 Thread David Barron
I've seen similar issues reported on the RStudio community site: https://community.rstudio.com/. You might want to check in there, as I think this may well be an RStudio issue rather than a problem with R itself. Dave On 26 October 2017 at 12:11, Eric Berger wrote: > How about going back to ea

Re: [R] nomogram function error

2017-10-26 Thread David Winsemius
t offered a reproducible problem. > I heard there might be some an issue because of a softwareupdate? There's often a NEWS for packages. Type: help(pac=rms) > > > > Thanks, > > Annie > > > [[alternative HTML version deleted]] Please read the Posting

Re: [R] 3D Plot with Date Axis?

2017-10-27 Thread David Winsemius
xis.Date(1, mydf$market_date, format="%Y-%m-%d") > > I tried to hide the x axis, but it looks like xaxt is not working for the > scatterplot3d function. Please read the "?scatterplot3d page more carefully. I think you should be looking for the x.ticklabs parameter

Re: [R] Scatterplot3d :: Rotating x tick labels by x degrees

2017-10-31 Thread David Winsemius
suggest downloading the scatterplot3d package code and then open up scatterplot3d.R. Find the comment ## label tick marks ... and perhaps decide whether you need to use `text` rather than `mtext`. (`text` can rotate by any amount, but may need "xpd" to be set TRUE. `mtext` is limited to

Re: [R] beta binomial distribution installation

2017-11-01 Thread David Winsemius
hen library ("TailRank"), I got the following > errors. It appears you failed to follow the full instructions which were to execute: source("https://bioconductor.org/biocLite.R";) biocLite() The first line creates the biocLite function within your workspace. -- David

Re: [R] "prob" package alternative

2017-11-01 Thread David Winsemius
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. David Winsemius Alameda, CA, USA 'Any technology distinguishable from magic is insufficiently advanced.' -Ge

Re: [R] ggplot inside function doesn't plot

2017-11-02 Thread David Winsemius
e = element_text(hjust = 0.5)) >> dev.off() > null device > 1 >> list.files("img") > [1] "Etv5.png" > > Why doesn't my function work? `ggplot` creates an object. You need to print it when used inside a function. Inside a function (in a more restricted environment) there

Re: [R] ggplot inside function doesn't plot

2017-11-02 Thread David Winsemius
n since they return objects) than base graphics. Base graphics behaves the way you expect. Execution of `lines` or `points` will give you "pen-on-ink" output, actually pixel on device output. > > > > On Thu, Nov 2, 2017 at 11:54 AM, David Winsemius > wrote: >>

Re: [R] "prob" package alternative

2017-11-02 Thread David Winsemius
ation: yes Repository: CRAN Date/Publication: 2013-06-24 01:53:27 Built: R 3.4.2; x86_64-apple-darwin15.6.0; 2017-11-01 22:45:02 UTC; unix > Alternatively, is there another package that behaves similarly to prob? > > > > On Wed, Nov 1, 2017 at 6:17 PM, David Winsemius > wro

Re: [R] "prob" package alternative

2017-11-02 Thread David Winsemius
. Not even close to being true. I explained it all on the SO question page that you posted 2 days ago. -- David. > > Is there some other package that does something similar to prob that can be > used instead? > > On Thu, Nov 2, 2017 at 2:29 PM, David Winsemius > wrote: &g

Re: [R] "prob" package alternative

2017-11-02 Thread David Winsemius
you have trouble understanding or getting success after thoroughly reading these directions, you need to explain what you have done (preserving the order of all operations) and post a complete transcript of all commands and complete error messages. -- David. > Otherwise, do you know

Re: [R] "prob" package alternative

2017-11-02 Thread David Winsemius
> On Nov 2, 2017, at 2:14 PM, Tiby Kantrowitz wrote: > > Rtools is not available for the current version of R. Really? If true, I'm surprised and not able to help. I do see an Rtools34.exe at https://cran.r-project.org/bin/windows/Rtools/ -- David. > > What I

Re: [R] "prob" package alternative

2017-11-02 Thread David Winsemius
ot;source") I suggest you learn to post in plain text since your HTML postings are loosing their carriage returns. -- David > dependencies=TRUE, repos=NULL, type = "source") > Installing package into ‘C:/Users/Tlk7/Documents/R/win-library/3.4’ (as ‘lib’ > is unspe

Re: [R] Problem with r project in ubuntu xenial

2017-11-03 Thread David Winsemius
rk > Phone: (+45)38153501 > Office: A 4.23 > Email: pd@cbs.dk Priv: pda...@gmail.com > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read t

Re: [R] Change colour of line in logi.hist.plot

2017-11-05 Thread David Winsemius
4) { > [[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/po

Re: [R] Help in R

2017-11-05 Thread David Winsemius
t; > Pls help. > > Sent from my iPhone > > __ > 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, s

Re: [R] Survival model error

2017-11-05 Thread David Winsemius
You should stop trying to use matrices on the RHS and using separate vectors to Surv. Instead use a data argument and have the names in your formula refer to column names. — David Sent from my iPhone > On Nov 5, 2017, at 7:21 PM, Meghna Govil via R-help > wrote: > > > H

Re: [R] Survival model error

2017-11-06 Thread David Winsemius
> On Nov 6, 2017, at 5:45 AM, Meghna Govil wrote: > > Thanks David. Could you show me how to do that in my example ? Possibly: kmsurvival_np <- survfit(Surv( tte, censored) ~ . , data=train1_na) I say "possibly" because I don't know whether all the columns of `t

Re: [R] Fitdistrplus and Custom Probability Density

2017-11-07 Thread David Winsemius
e range of p-values in the range [0,1] -- David. > > e.g. > d <- function(x) { exp(-x^2/2)/(sqrt(2*pi)) } # just an example for you to > test with; use your own density d(x) in your case > > Then define myCumDist, myQuantile as above and compare with pnorm, qnorm. > > HTH, &g

Re: [R] Problem with r project in ubuntu xenial

2017-11-07 Thread David Winsemius
end issues to the correct mailing list: igraph-help mailing list https://lists.nongnu.org/mailman/listinfo/igraph-help -- David. > > If there are errors installing devtools just install any package that > comments. > > On Nov 5, 2017 00:07, "George Balas" wrote: > >> -Well

Re: [R] Primer for working with survey data in R

2017-11-11 Thread David Winsemius
s. (Not just how to run the > mathematical operations but how to work with and manage the data.) Possibly > this would be in conjunction with some packages such as Likert or Scales. Try looking at: http://personality-project.org/r/psych/

Re: [R] Primer for working with survey data in R

2017-11-11 Thread David Winsemius
ivers. The website maintained by Revelle has several tutorials that include developed examples using R to deliver the requested measure. Obviously "reversing values" is something that would require learning basic R manipulation of factor variables. -- David. > > I hope tha

Re: [R] Bootstrap analysis from a conditional logistic regression

2017-11-13 Thread David Winsemius
should think you would arrange you data so groups are in the long direction and single groups occupy a line of data with a single index. Then you would probably rearrange the data within the boot.clogit function so that the "inner" clogit call can handle it correctly. -- David. > >

Re: [R] error message for function: lmer (from lme4 package)

2017-11-14 Thread David Winsemius
e your wakeup call. If you have, then why are you ignoring sensible advice? > > __ > 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] error message for function: lmer (from lme4 package)

2017-11-14 Thread David Winsemius
> On Nov 14, 2017, at 12:49 PM, Fix Ace wrote: > > Hi, David, > > Thank you very much for getting back to me! Sorry about the messy code > example. I am re-posting here (including the error message): > > > example.3=data.frame(levels=as.numeric(XXX[,c(4)]),replica

Re: [R] Problems installing mice package

2017-11-15 Thread David Winsemius
> __ > 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 prov

Re: [R] Autologistic regression in R

2017-11-15 Thread David Winsemius
determine a proper size of cells? How about the searching window sizes? Have you read the Posting Guide? -- David. > > Many Thanks. > > Erin > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.o

[R] 'fractal' package

2017-11-16 Thread David Paul
ze the 'fractal' package. Many Thanks in Advance, David Paul [[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 r

Re: [R] error message for function: lmer (from lme4 package)

2017-11-17 Thread David Winsemius
> snipped > > Hi, Bert, > Sorry about that! David seemed to be able to read the post since he replied. The only reason it appear readable was that you copied me as well as the list. Then HTML was still the basic format although it did npt appear that way to me since my reader cou

Re: [R] family

2017-11-17 Thread David Winsemius
Alex1 Alexa > CarlaAlex1 0 > JackySmith Abbot > Jack 0 Jacky > Almo JackCarla You might get useful ideas by looking at ?'%in%" and ?union (set operations) > fam$Parent1[!fam$Parent1 %in% fam$offsp

Re: [R] Complicated analysis for huge databases

2017-11-18 Thread David Winsemius
ffered. But we cannot know since you did not "show your code", not=r did you post complete error messages. Both of these practices are strongly recommended by the Posting Guide. Please read it (again?). -- David. > > > the desired output is expected to be very large as for

Re: [R] help

2017-11-21 Thread David Winsemius
the special requirements regarding attachments. The only person who received your attachments was Jeff. So you are essentially at his mercy regarding how he handles private communications. -- David. > > On Tue, Nov 21, 2017 at 9:13 PM, Jeff Newmiller > wrote: > >> Your example

Re: [R] R-How to unlist data frame multiple structured list column value and new column

2017-11-21 Thread David Winsemius
n is that this cam from a JSON file or a SQL file and got inappropriately rearranged into a dataframe. It probably should have been processed differently. My advice would be to go back a couple of steps to the original data input process and see if you can deliver a less mangled version of your d

Re: [R] libPaths displays truncated path?

2017-11-23 Thread David Winsemius
nition of "major" differs from the usual convention. -- David > > ? > > Long version > > > I run a cluster of diskless nodes for which the OS is loaded > directly into RAM and other software is provided by an NFS server. > However, in the case of R,

Re: [R] Multiple sets of proportion tests

2017-11-25 Thread David Winsemius
osed to be the number of success and the n variable is the number of trials. So in all instances n MUST be greater than or equal to x. Your data example is going to fail that requirement even after you correct the semantic error noted above.) (And do learn to post with plain text.) -- David.

Re: [R] dplyr - add/expand rows

2017-11-26 Thread David Winsemius
> On Nov 25, 2017, at 11:18 AM, Hutchinson, David (EC) > wrote: > > I have a returned tibble of station operational record similar to the > following: > >> data.collection > # A tibble: 5 x 4 > STATION_NUMBER YEAR_FROM YEAR_TO RECORD >

[R] Removing a data subset

2017-11-29 Thread David Doyle
://doylesdartden.com/ExampleData.csv and I use the code below to do the graph but I want to do it without MW01. How can I remove MW01?? I'm sure I can do it by SubSeting but I can not figure out how to do it. Thank you David -- library(ggplot2) M

Re: [R] 2^3 confounded factorial experiment

2017-11-29 Thread David Winsemius
> 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-c

Re: [R] Help avoiding setting column type two times

2017-11-30 Thread David Winsemius
temmer, > BlankeStemmer, AndreUgyldigeStemmer), stringsAsFactors = FALSE) The construction `data.frame(cbind( ...` is a serious source of potential error. The cbind coerces to matrix class which also then coerces to a single atomic class, either numeric or character. Factors loose all t

Re: [R] Removing a data subset

2017-11-30 Thread David Doyle
m_line(colour="black", linetype="dotted", size=0.5) + ylab("Elevation Feet Mean Sea Level") ## does the graph using the Location IDs as the different Locations. p + facet_grid(Location ~ .) Thanks again David [[alternative HTML version deleted]] _

Re: [R] Odd dates generated in Forecasts

2017-12-06 Thread David Winsemius
03", "07/12/08", "07/12/14", > "07/13/13", "07/14/07", "07/14/12", "07/15/06", "07/16/05", "07/16/11", > "07/16/16", "07/17/04", "07/17/10", "07/18/09", "07/18/15&

Re: [R] Odd dates generated in Forecasts

2017-12-06 Thread David Winsemius
> On Dec 6, 2017, at 11:09 AM, Paul Bernal wrote: > > Thank you very much David. As a matter of fact, I solved it by doing the > following: > > MyTimeSeriesObj <- ts(MyData, freq=365.25/7, > start=decimal_date(mdy("01-04-2003"))) > > After doing tha

Re: [R] Remove

2017-12-06 Thread David Winsemius
> 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. David Win

Re: [R] Remove

2017-12-06 Thread David Winsemius
> On Dec 6, 2017, at 4:27 PM, Ashta wrote: > > Thank you Ista! Worked fine. Here's another (possibly more direct in its logic?): DM[ !ave(DM$x, DM$GR, FUN= function(x) {!length(unique(x))==1}), ] GR x y 5 B 25 321 6 B 25 512 7 B 25 123 8 B 25 451 -- David > On We

Re: [R] Error in loadNamespace

2017-12-07 Thread David Winsemius
.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. David Winsemius Alameda, CA, USA 'Any technology distinguishable from magic is insufficiently advanced.' -Gehm's Corollary to Clarke's Third Law __

Re: [R] Seeking help with code

2017-12-07 Thread David Winsemius
e to read the Posting Guide, a link to which is at the bottom of every posting sent out from the Rhelp mail-server. You are advised to post credential/affiliation information and more context of the wider goals if my assumption of HW-status is incorrect. -- David. (And yes I do realize that I am

Re: [R] Remove

2017-12-08 Thread David Winsemius
> On Dec 8, 2017, at 4:48 PM, Ashta wrote: > > Hi David, Ista and all, > > I have one related question Within one group I want to keep records > conditionally. > example within > group A I want keep rows that have " x" values ranged between 15 and 30. &g

Re: [R] Remove

2017-12-09 Thread David Winsemius
> On Dec 8, 2017, at 6:16 PM, David Winsemius wrote: > > >> On Dec 8, 2017, at 4:48 PM, Ashta wrote: >> >> Hi David, Ista and all, >> >> I have one related question Within one group I want to keep records >> conditionally. >> exampl

Re: [R] MSVAR model

2017-12-10 Thread David Winsemius
IAH(2)-VAR(2)) and finding > impulse response function in different regimes and also variance > decomposition? This is uncomfortably close to an existing fortune: fortunes::fortune("brain surgery") Why don't you read the Posting Guide. Then perhaps you can improve your question? -

Re: [R] delta and sd parameters for power.t.test

2017-12-14 Thread David Winsemius
al R code to make this an on-topic discussion for Rhelp. > 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/posting-guide.html > and p

Re: [R] something weird has happened....!!!!!!!!!!

2017-12-15 Thread David Winsemius
> 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] Errors in reading in txt files

2017-12-15 Thread David Winsemius
ata is not in "%Y-%m-%d %H:%M" format. Read: ?strptime -- David. > > On Thu, Dec 14, 2017 at 1:31 PM, MacQueen, Don wrote: > >> In addition to which, I would recommend >> >> df <- read.table("DATAM", header = TRUE, fill = TRUE, >> str

Re: [R] offset with a factor

2017-12-20 Thread David Winsemius
ble scenario, I feel > compelled. Assume I have 11 coefs estimated with contr.sum. Why not create a variable that specifies the relevant coefficient for each of the various levels of the factor (and 0 for the reference level? Then pass that variable to the offset argument. -- David

Re: [R] problem in installing "simpleaffy"

2017-12-20 Thread David Winsemius
t; 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. David Winsemius Alameda, CA,

Re: [R] LSD-test

2017-12-25 Thread David Winsemius
> On Dec 25, 2017, at 10:21 AM, Ahmed Attia wrote: > > LSD.test ?LSD.test No documentation for ‘LSD.test’ in specified packages and libraries: you could try ‘??LSD.test’ -- David Winsemius Alameda, CA, USA 'Any technology distinguishable from magic is insufficiently advance

Re: [R] LSD-test

2017-12-25 Thread David Winsemius
(Mg/ha)`~Rep+code*as.factor(Nitrogen),data=Rotationdata_R) You seemed to have missed my point that LSD.test is not in the packages loaded by default. > Ahmed Attia, Ph.D. > Agronomist & Soil Scientist > > > > > > > On Mon, Dec 25, 2017 at 7:38 PM, David Winsem

Re: [R] RQuantLib

2017-12-30 Thread David Winsemius
g list -- >>To UNSUBSCRIBE and more, see >>https://stat.ethz.ch/mailman/listinfo/r-help >><https://stat.ethz.ch/mailman/listinfo/r-help> >>PLEASE do read the posting guide >>http://www.R-project.org/posting-guide.html >><http://ww

Re: [R] RQuantLib

2017-12-30 Thread David Winsemius
> On Dec 30, 2017, at 9:44 AM, David Winsemius wrote: > > >> On Dec 30, 2017, at 7:54 AM, rsherry8 wrote: >> >> OA, >> >> Thanks for the response. I downloaded the file RQuantLib_0.4.4.tar.gz >> into a directory c:\r.zip on my Windows machin

Re: [R] RQuantLib

2017-12-30 Thread David Winsemius
> On Dec 30, 2017, at 9:46 AM, David Winsemius wrote: > > >> On Dec 30, 2017, at 9:44 AM, David Winsemius wrote: >> >> >>> On Dec 30, 2017, at 7:54 AM, rsherry8 wrote: >>> >>> OA, >>> >>> Thanks for the response. I d

Re: [R] httr::content without message

2018-01-02 Thread David Winsemius
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. David Winsemius Alameda, CA, USA 'Any techn

Re: [R] Help with Regular expression

2018-01-03 Thread David Wolfskill
t; ignore.case = TRUE) > > Obviously, with above code, I am removing that portion of my string > which I actually I wanted! > > How can I reverse above code, so that I will be removing that portion > of my string which I actually I ***NOT*** wanted? > You may find strptime

Re: [R] summary.rms help

2018-01-03 Thread David Winsemius
alues from > the summary printed on the plot to the right of the variable name... Any > thoughts on how printing these low and high values can be suppressed, ie: > prevent them from being printed? > Luke, ... Look at the code! The values are suppressed if the "Diff." has

Re: [R] format integer numbers with leading 0

2018-01-04 Thread David Wolfskill
" > > Now I use: > > x <- c(1, 2, 20) > > gsub(" ", "0", format(x, width=2)) > > But I suspect more elegant way could be done directly with format > options, but I don't find. > x <- c(1, 2, 20) > sprintf("%02d", x)

Re: [R] svm

2018-01-10 Thread David Winsemius
> [[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

Re: [R] Help with packages (methods, stats, stats4)

2018-01-12 Thread David Winsemius
want to install those packages in order to use the "DVstats" package) >>>>>> >>>>>> (i have the latest version of R (3.4.3 ) and Rstudio(1.2.240) ) >>>>>> >>>>>> thank you >>>>>> Regards >>>>>> >>>>>> >>>

Re: [R] Time-dependent coefficients in a Cox model with categorical variants

2018-01-15 Thread David Winsemius
ted values in the summary output. And if you used a crossing operator in the formula you get some sort of interaction result. Whether it has any sensible interpretation is decision that's above my pay grade. The code for `pspline` is readily available. It's not even necessary to sue th

Re: [R] reading lisp file in R

2018-01-17 Thread David Winsemius
at.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. David Winsemius Alameda, CA, USA 'Any technology distinguishab

  1   2   3   4   5   6   7   8   9   10   >