Re: [R] Multiple CSV files in different sheets of an Excel file

2017-11-06 Thread Marc Schwartz
ckage, along with some hints on generalizing the approach to a larger number of CSV files. Perhaps you should review that, and if that is not what you want to do, post back with more detailed information. Regards, Marc Schwartz __ R-help@r

Re: [R] Calculating frequencies of multiple values in 200 colomns

2017-11-10 Thread Marc Schwartz
uencies. While tabulate() is used within the table() function, reviewing the code for the latter reveals how the default behavior of tabulate() is modified and preceded/wrapped in other code for use there. Regards, Marc Schwartz > On Nov 10, 2017, at 8:43 AM, Boris Steipe wrote: > >

Re: [R] R and LINGO?

2017-11-10 Thread Marc Schwartz
://www.lindo.com/index.php/ls-downloads?catid=82&id=106:r-lingo-resource-page You should contact them for support with the product. 5. Even if this was related to R, this appears to be a homework problem of some type and the R lists do not assist with homework. Regards, Marc Schwartz > On

Re: [R] Yield-to-Maturity problem

2017-11-16 Thread Marc Schwartz
e.html <https://cran.r-project.org/web/views/Finance.html> Regards, Marc Schwartz > On Nov 16, 2017, at 11:23 AM, peter dalgaard wrote: > > This isn't all that likely to be homework, Bert > > However, Alexander, you may find that not many readers are familiar with

Re: [R] Thiel's Uncertainty Coefficient

2017-11-28 Thread Marc Schwartz
Hi Jose, Just be aware that you sent an e-mail, with a salutation to me specifically, to a large e-mail distribution list. It would have been better to simply send it directly to me via the e-mail in the post that you link to below. The code in question has been available for a number of years

Re: [R] warnings about factor levels dropped from predict.glm

2017-12-05 Thread Marc Schwartz
t, as that file will be loaded by default with a new R session. Regards, Marc Schwartz > On Dec 5, 2017, at 3:37 PM, Bert Gunter wrote: > > A guess (treat accordingly): > > Different BLAS versions are in use on the two different machines/versions. > In one, near singulari

Re: [R] Error installing ggplot2 package

2018-01-10 Thread Marc Schwartz
plot2 from CRAN (currently ggplot2_2.2.1.zip) with the intent to install it locally, for example, rather than just using: install.packages("ggplot2") as Bert notes below, that might explain the errors. Amelia, can you provide more details? Regards, Marc Schwartz > On Jan 10,

Re: [R] application of R

2018-01-11 Thread Marc Schwartz
rhaps even industry specific insights for you. Regards, Marc Schwartz __ 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-g

Re: [R] request for code

2018-01-18 Thread Marc Schwartz
e fora. R Studio is a third party GUI that sits on top of R, it is not R. Thus, "R studio programs" is not accurate. They are R programs that can be created, edited and run via the R Studio GUI. Regards, Marc Schwartz __ R-help@r-project.org m

Re: [R] IBM Power vs Markdown

2018-01-19 Thread Marc Schwartz
first step. For future reference, since you are running on RH, there is the R-SIG-Fedora list, which covers issues associated with running R on RH and Fedora based distros: https://stat.ethz.ch/mailman/listinfo/r-sig-fedora Regards, Marc Schwartz > On Jan 19, 2018, at 9:57 AM, Daniel Kin

Re: [R] how to search r-help?

2018-01-19 Thread Marc Schwartz
age is a link to "Getting Help", which takes you to: https://www.r-project.org/help.html and provides a series of pointers relative to seeking help with R. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Names of variables needed in newdata for predict.glm

2018-03-08 Thread Marc Schwartz
ded, whether the offset was part of the formula or specified as a separate argument. You can then process the results as you need from there, such as: > sapply(mx$data, class) D x f Y "integer" "numeric" "factor" "numeric"

Re: [R] Kendall tau a, b, or c

2018-06-14 Thread Marc Schwartz
ordant and discordant pairs. Then its > pretty easy. > > jeff > Hi Jeff, Take a look at my Github Gist here: https://gist.github.com/marcschwartz/3665743 I have b and c (among other measures), and supporting functions to calculate concordant and discordan

Re: [R] fisher.test function error

2017-03-31 Thread Marc Schwartz
class = "data.frame", row.names = c(NA, -6L)) > fisher.test(tab) Error in fisher.test(tab) : Bug in FEXACT: gave negative key Note that in the second example, the data frame is coerced to a matrix inside fisher.test(). The above two examples were run using R version 3.3.3 on macO

Re: [R] Converting date vector into a serial date number

2017-04-04 Thread Marc Schwartz
] 683429 The last step takes the date and coerces it to a numeric value in the number of days since the origin. More generally, if you Google for R MATLAB, there are some online references that provide varying levels of function mappings between the two languages that you may find helpful. Regards

Re: [R] Yield to maturity calculation - bndyield equivalent of MATLAB in R

2017-04-05 Thread Marc Schwartz
ance <https://stat.ethz.ch/mailman/listinfo/r-sig-finance> and you would avail yourself of a focused audience in the domain using that list, as opposed to R-Help for these types of questions. Hopefully this will get you moving forward. Regards, Marc Schwartz [[alternative HTML vers

Re: [R] Yield to maturity calculation - bndyield equivalent of MATLAB in R

2017-04-05 Thread Marc Schwartz
> On Apr 5, 2017, at 11:34 AM, Tunga Kantarcı wrote: > > Thanks a lot Marc, for informing that R is object oriented, implying > that one should always try to vectorise the code (although I am not so > clear why this should be the case) but also for all the references you > provide. Hi, The r

Re: [R] Replying to replies in the forum

2017-04-05 Thread Marc Schwartz
> On Apr 5, 2017, at 11:41 AM, Tunga Kantarcı wrote: > > OK I cannot figure this out clearly in the guidelines of posting. When > I reply to a message I should out "Re:" in front of the subject line > of the original post. So if the subject line of the original post it > is "this is a post", the

Re: [R] Yield to maturity calculation - bndyield equivalent of MATLAB in R

2017-04-05 Thread Marc Schwartz
more to learn more about this. This > list cannot provide such extended explanation. > > Cheers, > Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka B

Re: [R] Replying to replies in the forum

2017-04-05 Thread Marc Schwartz
> On Apr 5, 2017, at 1:26 PM, Tunga Kantarcı wrote: > > My question is specifically about what I should use in the subject > line when replying, because I do not trust mail clients, or to myself > as I use different clients sometimes. Hence, I wanted to learn a > client free solution to correctl

Re: [R] How to plot a legend centered only on the x axis

2017-05-11 Thread Marc Schwartz
xactly the same as the first call, other than setting legend to FALSE in the first case. Any change in legend content between the two calls will alter the size and position of the enclosing box. par(xpd = TRUE) legend(BOX$left, y = -0.25, legend =

Re: [R] How to plot a legend centered only on the x axis

2017-05-11 Thread Marc Schwartz
> On May 11, 2017, at 7:01 PM, Duncan Murdoch wrote: > > On 11/05/2017 2:36 PM, Antonio Silva wrote: >> Hello r-users >> >> I want to plot some barplots inside a looping with the legend placed >> outside the plotting area. >> >> No matter the number of bars I want the legend to be placed cente

Re: [R] Compiling R with zlib in non-standard location

2017-05-23 Thread Marc Schwartz
artyn provided a resolution in the follow up post, including a pointer to the EPEL, where there are pre-compiled RPMs for R. For future reference, there is a dedicated e-mail list for queries pertaining to R on RH/Fedora based distributions: https://stat.ethz.ch/mailman/li

Re: [R] Compiling R with zlib in non-standard location

2017-05-23 Thread Marc Schwartz
. > > Apologies if this is a duplicate. I sent my first response with the wrong > email address. > > > On Tue, May 23, 2017 at 12:50 PM, Marc Schwartz > wrote: > >> >>> On May 23, 2017, at 11:07 AM, David Chin >> wrote: >>> >>>

Re: [R] Cause of error assigning NULL to element of a vector

2017-05-24 Thread Marc Schwartz
> is.vector(y) [1] FALSE Nor can a vector contain multiple NULLs: y <- c(NULL, NULL, NULL) > y NULL > length(y) [1] 0 Similarly: y <- c(1, NULL, 1) > y [1] 1 1 > length(y) [1] 2 Perhaps reviewing ?NULL as well as: https://cran.r-project.o

Re: [R] Changing the order of the factors in a cumulative logit model

2017-06-26 Thread Marc Schwartz
ries and how that affects the relevance/applicability of the model. Regards, Marc Schwartz __ 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] Jagged ROC curves?

2017-06-26 Thread Marc Schwartz
pROC) may interact, but look at the ?smooth function in the latter package to see if it might help. To your second point, if your plot is a png/jpg file, you could attach it to your post here, if that was your desire. Otherwise, you could post it to a cloud based repository, like Dropbox, and provid

Re: [R] Jagged ROC curves?

2017-06-26 Thread Marc Schwartz
Using the 'smooth' function: > > plot(c(1,0),c(0,1), type='l', lty=3, xlim=c(1.01,-0.01), ylim=c(-0.01,1.01), > xaxs='i', yaxs='i', ylab='', xlab='') > plot(smooth(roc_1),col="brown3", lwd=2, add=T, lty=1) &g

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

2017-07-07 Thread Marc Schwartz
ot;f" "g" "h" "i" "j" > #== > See the 'stringsAsFactors' argument in ?data.frame. dat1 <- data.frame(aa = letters[1:10], stringsAsFactors = FALSE) > str(dat1) '

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

2017-07-07 Thread Marc Schwartz
o 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 > > wrote:

Re: [R] Quadratic function with interaction terms for the PLS fitting model?

2017-07-13 Thread Marc Schwartz
Bert, The 'degree' argument follows the "..." argument in the function declaration: poly(x, ..., degree = 1, coefs = NULL, raw = FALSE, simple = FALSE) Generally, any arguments after the "..." must be explicitly named, but as per the Details section of ?poly: "Although formally degree should

Re: [R] Quadratic function with interaction terms for the PLS fitting model?

2017-07-13 Thread Marc Schwartz
gt; attr(,"degree") > [1] 1 2 1 2 2 > attr(,"coefs") > attr(,"coefs")[[1]] > attr(,"coefs")[[1]]$alpha > [1] 0.5477073 0.4154115 > > attr(,"coefs")[[1]]$norm2 > [1] 1. 20. 1.55009761 0.08065872 > >

Re: [R] Efficient Binning

2017-07-14 Thread Marc Schwartz
rval > findInterval(rand, boundaries) [1] 6 There are various function arguments as well, relative to how to deal with the interval boundaries, as described on the help page. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE an

Re: [R] Installing rpy2 on Red Hat 6

2017-07-20 Thread Marc Schwartz
hat 3.2+ should be ok. If so, I >would recommend installing the R RPMS for 3.4.0 from the EPEL and save >yourself the hassle and potential issues of building from source. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNS

Re: [R] How long to wait for process?

2017-07-27 Thread Marc Schwartz
roblematic and from a quick check here, glm(..., family = binomial) does not issue a warning or error in the case where the dependent variable has >2 levels. Regards, Marc Schwartz > On Jul 27, 2017, at 8:26 AM, john polo wrote: > > Michael, > > Thank you for the suggesti

Re: [R] How long to wait for process?

2017-07-27 Thread Marc Schwartz
o my original email might not have been my final step before > using glm. Thank you for reminding of the potential problem. > > I think Michael Friendly's idea is probably the solution I need to consider. > I am simplifying my factors a little bit and revising which I will keep.

Re: [R] greek letters do not work in expression

2017-07-30 Thread Marc Schwartz
an 'alfa': plot(c(1,20),c(1,20), xlab = expression(alpha)) Regards, Marc Schwartz __ 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.

Re: [R] Access Data Base Reading on Linux Platform

2017-07-31 Thread Marc Schwartz
ny of the above, so cannot speak for either ease of use or the validity of the tools. There is also a general resource here: https://www.lifewire.com/accdb-file-2619459 The OpenOffice/LibreOffice based options listed there are likely more work than they are worth. Regards, Marc Schwartz __

Re: [R] Extracting numeric part from a string

2017-08-02 Thread Marc Schwartz
t; > > However, above code is only extracting the integer part. > > Could you please help how to achieve that. Thanks, Using ?gsub: X <- "\"cm_ffm\":\"563.77\"" > gsub("[^0-9.]", "", X) [1] "563.77" or > gsub

Re: [R] Extracting numeric part from a string

2017-08-02 Thread Marc Schwartz
> On Aug 2, 2017, at 7:42 PM, Marc Schwartz wrote: > > >> On Aug 2, 2017, at 6:59 PM, Christofer Bogaso >> wrote: >> >> Hi again, >> >> I am struggling to extract the number part from below string : >> >> "\"cm_ffm\"

Re: [R] Extracting numeric part from a string

2017-08-02 Thread Marc Schwartz
Thanks Bert. I should probably also explicitly mention that if Christofer wants to ultimately coerce the numeric components of the strings to numeric data types for subsequent mathematical operations, you will need to strip the commas anyway. In that case, my first response, where I did not i

Re: [R] Pull data from Tally 9.1 to R studio

2017-08-24 Thread Marc Schwartz
ng Help With R page, linked on the main R Project page: https://www.r-project.org/help.html <https://www.r-project.org/help.html> Regards, Marc Schwartz > > On Thursday, August 24, 2017, 6:19:25 AM EDT, John Kane > wrote: > > > > > On Thursday, August 24,

Re: [R] Converting SAS Code

2017-09-29 Thread Marc Schwartz
Users: https://www.amazon.com/gp/product/1461406846/ <https://www.amazon.com/gp/product/1461406846/> While it is now a few years old, it is still relevant in terms of pointing you in the direction of basic and conceptual linkages between the languages. Regards, Marc Schwartz > On

Re: [R] promoting scalar arguments to vectors in a function

2016-05-23 Thread Marc Schwartz
y you will know, given your function, if that might result in problems in whatever result your function is intended to generate. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/

Re: [R] Unable to update R software to 3.3.0

2016-06-01 Thread Marc Schwartz
be available via the EPEL testing repos. Otherwise, you can wait until it is available via release in the next day or so, or download the RPMS directly here: http://koji.fedoraproject.org/koji/buildinfo?buildID=762521 Regards, Marc Schwartz __ R-he

Re: [R] Antwort: Re: Unable to update R software to 3.3.0

2016-06-01 Thread Marc Schwartz
(.Deb). Your ability to upgrade on Debian is not relevant to his issue, as a completely different infrastructure (RPM based repositories) is required for RHEL if one wishes to install pre-compiled binaries, as opposed to building from source, which is also an option if one wishes. Regards,

Re: [R] problems compiling packages | 3.3.0 | Linux

2016-06-02 Thread Marc Schwartz
s. Neither one. You should be posting to R-SIG-Fedora: https://stat.ethz.ch/mailman/listinfo/r-sig-fedora Please re-post there as both RH/Fedora users and the RH RPM maintainers read that list, should there be issues with the EPEL RPMs relative to dependencies. Regards, Marc Schwartz

Re: [R] Something weird

2016-06-03 Thread Marc Schwartz
A Hernández See: https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f Also, note that as per the Value section of ?as.integer: "Non-integral numeric values are truncated towards zero..." > print((3/10) / 0.1, 20) [1] 2.

Re: [R] Antwort: RE: Antwort: Re: Merging variables

2016-06-08 Thread Marc Schwartz
, of course, presumes that the combination of CustId and CustName are uniquely associated with each other. Regards, Marc Schwartz > On Jun 8, 2016, at 8:55 AM, g.maub...@weinwolf.de wrote: > > Hi Petr, > > thanks for your reply. > > I prepared little example for you: > &

Re: [R] Problem loading aplpack library

2016-06-09 Thread Marc Schwartz
package and is not indicated as being a dependency for aplpack. Regards, Marc Schwartz > On Jun 9, 2016, at 9:00 AM, Tom Wright wrote: > > Assuming you are on a mac this link may be of assistance: > http://tips.tutorialhorizon.com/2015/10/01/xcrun-error-invalid-active-developer-

Re: [R] inverse table

2016-06-15 Thread Marc Schwartz
521.html If memory serves, that code has made its way into one or more packages on CRAN but I don't recall which at the moment. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mai

Re: [R] [FORGED] Ask function missing in package car

2016-06-21 Thread Marc Schwartz
the second edition on Amazon.com would suggest that it was removed for the second edition. Regards, Marc Schwartz > On Jun 21, 2016, at 8:29 PM, Ashim Kapoor wrote: > > I am reading the book An R and S plus companion to Applied Regression and I > found this function there. > &g

Re: [R] R help needed

2016-06-23 Thread Marc Schwartz
Would really appreciate > your help on this. Thanks in advance > -- > Syeda Sana Fatima Hi, Shiny is a third party application that has its own dedicated support vehicles at: http://shiny.rstudio.com/help/ You should leverage those resources, as it is off-topic for R-Help. Regards,

Re: [R] Add column to the output of summary(glht).

2016-06-24 Thread Marc Schwartz
by the associated print method for the object class, you can modify things to fit your need by creating, if need be, your own functions to modify the required part or parts of the object itself and then output them. If you want to understand what summary.glht() is doing, take the same appro

Re: [R] performance of do.call("rbind")

2016-06-27 Thread Marc Schwartz
olumn order, column types), it may be prudent to do your own pre-allocation of a data frame that is the target row total size and then "insert" each "sub" data frame by using row indexing into the target structure. Regards, Marc Schwartz > On Jun 27, 2016, at 11:5

Re: [R] Not able to install RODBC package

2016-06-28 Thread Marc Schwartz
different CRAN mirror, including one that is not secure http (regular http:// URL) to see if that works. Also, note that the version of R that you are running (3.0.2) is from Sep of 2013, so quite dated. The current version is 3.3.1, which was just released this month. Regards, Marc Schwartz __

Re: [R] Understanding and predict round-off errors sign on simple functions

2016-06-29 Thread Marc Schwartz
Hi, Just to augment Bert's comments, I presume that you are aware of the relevant R FAQ: https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f That you had an expectation of the difference being 0 suggested to me that you might not be, but my apo

Re: [R] R-3.3.1 RPM release

2016-07-05 Thread Marc Schwartz
3.3.1 is in the R build queue, which can be viewed at: https://bodhi.fedoraproject.org/updates/?packages=R Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help P

Re: [R] source code of a function

2016-07-08 Thread Marc Schwartz
r, the true source code is available via the package source tarball (.tar.gz file) on CRAN: https://cran.r-project.org/web/packages/jvnVaR/index.html The tarball will include any comments/annotations in the code and the source for any compiled code that ma

Re: [R] barplot colour problem

2016-07-18 Thread Marc Schwartz
z <- seq(from = -5, to = 5) barplot(z, col = ifelse(z > 0, "brown", "green")) Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] probelm with xlab ylab and xaxp barplot

2016-07-20 Thread Marc Schwartz
r all labels to display given the large number of bars. The cex* family of graphic parameters can be helpful. See the arguments in ?barplot and in ?par for more information. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIB

Re: [R] probelm with xlab ylab and xaxp barplot

2016-07-25 Thread Marc Schwartz
Hi, If your code below is a verbatim copy and paste, you still have the following two lines active: par(mar=rep(2,4)) and op <- par(oma=c(1,2,3,5)) Comment out both of those lines and then see what the result looks like. As I noted before, try the plot **without any modifications** to th

Re: [R] probelm with xlab ylab and xaxp barplot

2016-07-25 Thread Marc Schwartz
place when > adjusting mar values. > > A remaining need is to have the x axis at least for the two bottom figures as > date from 1981 to 2005. Do you think this is doable. Ylim is fine but how > tots in this case xlim. > > Best regards, > > asarr > Le 25 juil. 2016

Re: [R] Date Time in R

2016-07-26 Thread Marc Schwartz
016-05-30 Monday 2 2016-05-30 Monday 3 2016-05-30 Monday 4 2016-05-30 Monday 5 2016-05-30 Monday 6 2016-05-30 Monday I would check to be sure that you do not have any typos in your code. Regards, Marc Schwartz > On Jul 26, 2016, at 6:58 AM, Shivi Bhatia wrote: > > Hello Again

Re: [R] removing all non-numeric characters from a string, but not "."

2016-07-26 Thread Marc Schwartz
;[^0-9]", "", x) > > However, it strips my numbers of "." > > Help - how could I do the same but leave the "." in? > > Thanks a lot! > > -- > Dimitri Liakhovitski > gsub("[^0-9\\.]", "

Re: [R] removing all non-numeric characters from a string, but not "."

2016-07-26 Thread Marc Schwartz
> On Jul 26, 2016, at 4:39 PM, Marc Schwartz wrote: > > >> On Jul 26, 2016, at 4:28 PM, Dimitri Liakhovitski >> wrote: >> >> Hello! >> >> I have a string x: >> x <- c("x - 84", "y - 293.04", "z = 12.5") >

Re: [R] Windows 10 Application Compatibility Check | FreeWare R Statistical Environment v3.2.2

2016-07-27 Thread Marc Schwartz
ctional and philosophical difference between FOSS and Freeware. Regards, Marc Schwartz > On Jul 27, 2016, at 9:47 AM, John C Frain wrote: > > When I first graduated some 50 years ago I worked in the Department of > Finance. On small piece of my work involved getting CPI data from the

Re: [R] Regression expression to delete one or more spaces at end of string

2016-08-02 Thread Marc Schwartz
one or more times at the end of the character string. Note that as per ?regex, it is [:space:], not [:blank:] and the brackets need to be doubled in the regex to define the enclosing character group. An example would be: sub("[[:space:]]+$", "", str) ## white space, POSIX-style

Re: [R] Anderson Darling Goodness of fit test

2016-08-02 Thread Marc Schwartz
current stable release of R. A search using http://rseek.org would suggest that the test is available in other packages on CRAN. You may also wish to search the R-Help archives to see frequent discussions on the utility (or primarily the lack thereof) of normality tests... Regards, Marc Schwart

Re: [R] Freq in dataframe

2016-08-05 Thread Marc Schwartz
Week 52 Dose 2 B 9 11 Week 32 Dose 3 B7 12 Week 52 Dose 3 B 10 13 Week 32 Dose 1 C 11 14 Week 52 Dose 1 C 13 15 Week 32 Dose 2 C7 16 Week 52 Dose 2 C 16 17 Week 32 Dose 3 C8 18 Week 52 Dose 3 C 16 Regards, Marc Schwartz

Re: [R] Proving (instead of rejecting) that two groups are actually equal

2016-08-10 Thread Marc Schwartz
g versus the pre-existing "brand name" version of the drug to demonstrate that they have equivalent efficacy and safety profiles, within a clinically acceptable range. There is at least one R package that is relevant, conveniently called "equivalence": https://cran.r-proje

Re: [R] R-Studio+Commander

2016-09-01 Thread Marc Schwartz
n an R instance remotely from a server and/or via desktop VM clients that can run on mobile devices (e.g. Parallels). A Google search brings up some links from the RStudio support forums and you may want to search those separately. Regards, Marc Schwartz __

Re: [R] Have help list filters changed recently

2016-09-08 Thread Marc Schwartz
> On Sep 8, 2016, at 7:35 PM, Bert Gunter wrote: > > To all: > > r-help has been holding up a lot of my recent messages: Have there > been any changes to help list filters that caused this? Is there > something I'm doing wrong? -- I have made no changes that I am aware > of. Here's what I get:

Re: [R] Upgrade R 3.2 to 3.3 using tar.gz file on Ubuntu 16.04

2016-09-13 Thread Marc Schwartz
bscribers can help you, but be sure to indicate how you installed the version of R that you are currently using when you post there. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailma

Re: [R] Drill down reports in R

2016-09-13 Thread Marc Schwartz
reporting/OLAP tools like Cognos, Business Objects, Crystal Reports, etc. The first thing that came to mind is RStudio's Shiny, which I do not use, but their gallery seems to have some possibilities: http://shiny.rstudio.com/gallery/ Regards, Marc Schwartz > On Sep 13, 2016, at

Re: [R] Drill down reports in R

2016-09-13 Thread Marc Schwartz
lone or within a browser based environment, but it would not be "pure R" per se. It may also be possible that one of the other commercial R vendors (e.g. Microsoft) have built something on top of a server version of R and you would need to contact them to see if that is the case. Re

Re: [R] why data.frame, mutate package and not lists

2016-09-14 Thread Marc Schwartz
egression models and the like. Regards, Marc Schwartz __ 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 pr

Re: [R] Handling NA values in a if statement

2015-04-17 Thread Marc Schwartz
t; is.finite(x) [1] FALSE FALSE FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [12] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [23] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [34] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE Regards, Marc

Re: [R] regexpr - ignore all special characters and punctuation in a string

2015-04-20 Thread Marc Schwartz
2 > agrep("What a nice day today Story of happiness Part 2", c(Vec1, Vec2), value = TRUE) [1] "What a nice day today! - Story of happiness: Part 2." [2] "What a nice day today: Story of happiness (Part 2)” Also, possibly: http://cran.r-project.org/web/packa

Re: [R] color handling in `barplot' inconsistent betwen `beside=FALSE' and `beside=TRUE'

2015-04-20 Thread Marc Schwartz
s the same colors in each stack by default. This is not always easy if the differences are subtle, similar to the issues with pie charts. I would not advocate changing the current behavior, as a lot of long standing code would break, including functions in packages that are built on top of barpl

Re: [R] cannot find package colbycol in R 3.2.0

2015-04-21 Thread Marc Schwartz
if there are any alternatives that would work for you: http://cran.r-project.org/web/views/HighPerformanceComputing.html Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/lis

Re: [R] Question on funcion and npar

2015-04-21 Thread Marc Schwartz
quot;Mean=", center, "\n", "SD=", spread, "\n") > } else if (print & npar) { >cat("Median=", center, "\n", "MAD=", spread, "\n") > } > result <- list(center=center,spread=spread) > return(result) >

Re: [R] cbind question, please

2015-04-24 Thread Marc Schwartz
your vectors are stored, might be: > sapply(big.char, get, pos = 1) dog cat tree [1,] 1 25 [2,] 2 36 [3,] 3 47 which specifies which environment to search for the named objects and the cat() function is not returned since it is in namespace:base. See ?get Regards, Marc

Re: [R] Stacking of vectors to form a column vector

2015-04-30 Thread Marc Schwartz
Hi, Given that a data frame is a list: unlist(mydata[, 1:3]) For example: > all(unlist(iris[, 1:3]) == do.call(c, iris[, 1:3])) [1] TRUE Also, note that the returned result in both cases above retains names: > unlist(iris[, 1:3]) Sepal.Length1 Sepal.Length2 Sepal.Length3 Sepal.Leng

Re: [R] Passing strings with spaces to Python using system2 splits string at whitespace

2015-06-04 Thread Marc Schwartz
cript > print string > > What happens is that string 2 is splits into "This" and "doesn't". Does > anyone know how to resolve this issue? Of course I can remove the white > spaces, but that may be somewhat inconvenient. > > Thanks for any help.

Re: [R] Unwanted unicode

2015-06-04 Thread Marc Schwartz
ply(list.files(path = “Path/To/Your/RD/Files", pattern = ".Rd"), showNonASCIIfile) See ?list.files and ?showNonASCIIfile Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/ma

Re: [R] Split data frame into 250-row chunks

2015-06-10 Thread Marc Schwartz
3.0 5.9 2.1 virginica 104 6.3 2.9 5.6 1.8 virginica 105 6.5 3.0 5.8 2.2 virginica 106 7.6 3.0 6.6 2.1 virginica Regards, Marc Schwartz ___

Re: [R] Split data frame into 250-row chunks

2015-06-10 Thread Marc Schwartz
> On Jun 10, 2015, at 2:21 PM, Marc Schwartz wrote: > > >> On Jun 10, 2015, at 7:39 AM, Liz Hare wrote: >> >> Hi R-Experts, >> >> I have a data.frame like this: >> >>> head(map) >> chr snp poscm posbpdist >> 1

Re: [R] Installing R 2.15.2 on Mac

2015-06-12 Thread Marc Schwartz
is issue: https://stat.ethz.ch/pipermail/r-help//2014-November/423169.html which also raises the issue of why SPSS is requiring such an old version of R. As to how to accomplish what Peter references, a Google search is likely to be enlightening. Regards, Marc Schwartz

Re: [R] Sign of specific elements of a vector

2015-06-18 Thread Marc Schwartz
9 0.4734006 But unless your vector is very large, I suspect the performance gain may be minimal in real time. Regards, Marc Schwartz > On Jun 18, 2015, at 3:07 PM, Bert Gunter wrote: > > Your **is** the "coolest" and most efficient way to do this. It's > vectorized

Re: [R] matrix -> delete last row -> list

2015-07-03 Thread Marc Schwartz
7 8 9 10 11 # This is a vector, not a list > str(mat[-nrow(mat), ]) int [1:11] 1 2 3 4 5 6 7 8 9 10 … > mat[-nrow(mat), , drop = FALSE] [,1] [1,]1 [2,]2 [3,]3 [4,]4 [5,]5 [6,]6 [7,]7 [8,]8 [9,]9 [10,] 10 [11,] 11 # This is a matrix > s

Re: [R] Invalid URL for R documentation

2015-07-06 Thread Marc Schwartz
be present for the July 3, 2015 dated file versions. So something happened over the weekend on the main CRAN server it would seem, depending upon the regen cycle timing. I tried two different browsers, with refreshes, in case there was a caching issue of sorts

Re: [R] matching strings in a list

2015-07-16 Thread Marc Schwartz
weets <- list("I like google", "Hi Google google", "what's up”) > Tweets [[1]] [1] "I like google" [[2]] [1] "Hi Google google" [[3]] [1] "what's up” > sapply(Tweets, function(x) grepl("google",

Re: [R] Differences in output of lme() when introducing interactions

2015-07-22 Thread Marc Schwartz
Hi, In addition to Terry’s great comments below, as this subject has come up frequently over the years, there is also a great document by Bill Venables that is valuable reading: Exegeses on Linear Models http://www.stats.ox.ac.uk/pub/MASS3/Exegeses.pdf Regards, Marc Schwartz > On

Re: [R] question about implementation of the R

2015-07-31 Thread Marc Schwartz
s://www.r-project.org/certification.html Regards, Marc Schwartz __ 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-g

Re: [R] trojan with R download

2015-07-31 Thread Marc Schwartz
you can get to a different server, try it to see what happens. Regards, Marc Schwartz __ 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] x11() hangs in 3.2.1

2015-07-31 Thread Marc Schwartz
ched version. Presuming local compilation, I would check your configure and build logs for warnings/errors. It is possible that you are missing an X11 header or lib someplace. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRI

Re: [R] Exclude 2014 data from mean

2015-07-31 Thread Marc Schwartz
ething along the lines of: mean(subset(brady.t, (G. == 1) & (Year != 2014), select = Yds)[[1]]) Basically, subset() is returning a data frame where Year does not equal 2014 and G. is equal to 1. The select argument is only returning the Yds column, which would otherwise be a list,

Re: [R] Question about survival::survfit

2015-08-05 Thread Marc Schwartz
ably, because the survivorship function never crosses below 0.5. You may need to refresh yourself on the definition of median survival. Plot the curves to visually confirm. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSC

Re: [R] Release schedule (was (no subject) )

2015-08-05 Thread Marc Schwartz
In addition, there are documents here: https://www.r-project.org/certification.html that cover R’s SDLC (Software Development Life Cycle) that may be helpful. Regards, Marc Schwartz > On Aug 5, 2015, at 12:19 PM, Martin Morgan wrote: > > On 08/05/2015 10:08 AM, Jeff Newmil

  1   2   3   4   5   6   7   8   9   10   >