Re: [R] Bootstrapping One- and Two-Sample Hypothesis Tests of Proportion

2018-11-29 Thread Marc Schwartz via R-help
Hi, I don't see Duncan's reply in the archive, but consider: > 1 / 4 [1] 0.25 > mean(c(1, 0, 0, 0)) [1] 0.25 > 3 / 9 [1] 0.333 > mean(c(1, 1, 1, 0, 0, 0, 0, 0, 0)) [1] 0.333 Regards, Marc Schwartz > On Nov 29, 2018, at 6:57 PM, Janh Anni wrote: > > Hi Bert

Re: [R] Importing SAS datasets into R efficiently

2018-10-19 Thread Marc Schwartz via R-help
e BDAT datasets(s) to CSV files in SAS, and them import them into R, using read.csv(). Regards, Marc Schwartz > On Oct 19, 2018, at 10:41 AM, Bert Gunter wrote: > > Have you looked at the "foreign" package? > > -- Bert > > Bert Gunter > > "The trouble wit

Re: [R] GLM Model Summary

2018-10-16 Thread Marc Schwartz via R-help
csv(my.coef, file = "MyCoefficients.csv") The R Data Import/Export manual: https://cran.r-project.org/doc/manuals/r-release/R-data.html <https://cran.r-project.org/doc/manuals/r-release/R-data.html> has some insights into pathways for getting data to and from R, including so

Re: [R] Package updates for new versions

2018-10-11 Thread Marc Schwartz via R-help
otherwise, and can give you some idea of current status and plans. 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://

Re: [R] Logic operators...more than one??

2018-10-03 Thread Marc Schwartz via R-help
", "MW-10", ] > > Thoughts?? > > Thank you for your time > David Hi, See ?"%in%" Then: SampledWells <- MyData[ !MyData$Location %in% c("MW-09", "MW-10"), ] Note the '!' operator that precedes the expression to negate the logica

Re: [R] Bitbucket code

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

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

2018-08-22 Thread Marc Schwartz via R-help
Hi, It might even be worthwhile to review this recent thread on R-Devel: https://stat.ethz.ch/pipermail/r-devel/2018-July/076377.html which touches upon a subtly related topic vis-a-vis NaN handling. Regards, Marc Schwartz > On Aug 22, 2018, at 10:55 AM, Bert Gunter wr

Re: [R] Finding and changing .Rprofile

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

Re: [R] Problem with loaded R packages

2018-08-15 Thread Marc Schwartz via R-help
gt; > I see. Thank you for the correction! Is there any other line which I could > input to load the two packages in question? > > Many thanks, > > Spencer Brackett > > On Wed, Aug 15, 2018 at 2:33 PM Marc Schwartz wrote: > Hi, > > The ?source function is inte

Re: [R] Problem with loaded R packages

2018-08-15 Thread Marc Schwartz via R-help
/vignettes/cgdsr.pdf Regards, Marc Schwartz > On Aug 15, 2018, at 2:07 PM, Spencer Brackett > wrote: > > Good afternoon, > > I am trying to load the two R packages CGSDR and GAIA which I have > successfully installed onto my R program. Following installation of the two > pa

Re: [R] Questions for Licensing

2018-08-03 Thread Marc Schwartz via R-help
e impacted by the so-called "viral" implications of the GPL. Given the liability risks (legal and financial) that your company faces if you "get it wrong", you need to seek out local legal expertise, specifically with IP related issues, and get a formal legal opinion and guid

Re: [R] ESS issue: lines moved right 40 spaces

2018-07-26 Thread Marc Schwartz via R-help
Rich, See inline below. Marc > On Jul 26, 2018, at 1:55 PM, Rich Shepard wrote: > > On Thu, 26 Jul 2018, Marc Schwartz wrote: > >> The full list of e-mail lists is here: >> https://stat.ethz.ch/mailman/listinfo/ >> and the ESS-Help list is here: >> https

Re: [R] ESS issue: lines moved right 40 spaces

2018-07-26 Thread Marc Schwartz via R-help
Hi Rich, The full list of e-mail lists is here: https://stat.ethz.ch/mailman/listinfo/ and the ESS-Help list is here: https://stat.ethz.ch/mailman/listinfo/ess-help which is also referenced on the ESS web site: http://ess.r-project.org/index.php?Section=getting%20help More than

Re: [R] xtable does not print out units of a variable

2018-07-19 Thread Marc Schwartz via R-help
based, so you can create any formatted character string you need, then generate the LaTeX output. Regards, Marc Schwartz > On Jul 19, 2018, at 7:52 AM, Shawn Way wrote: > > Thank you for the example you posted. I'll try to make a go of it from there. > > I understand a

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] Names of variables needed in newdata for predict.glm

2018-03-08 Thread Marc Schwartz
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" Regards, Marc Schwartz >

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

2018-01-19 Thread Marc Schwartz
l pointer, on the main R Project page 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 lis

Re: [R] IBM Power vs Markdown

2018-01-19 Thread Marc Schwartz
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 King

Re: [R] request for code

2018-01-18 Thread Marc Schwartz
an tell on various online 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

Re: [R] application of R

2018-01-11 Thread Marc Schwartz
ime in with other thoughts and perhaps 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 htt

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] warnings about factor levels dropped from predict.glm

2017-12-05 Thread Marc Schwartz
a conflict, 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 <bgunter.4...@gmail.com> wrote: > > A guess (treat accordingly): > > Different BLAS versions are in use on the two different machines/version

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] 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 <pda...@gmail.com> wrote: > > This isn't all that likely to be homework, Bert > > However, Alexander, you may find that not m

Re: [R] R and LINGO?

2017-11-10 Thread Marc Schwartz
://www.lindo.com/index.php/ls-downloads?catid=82=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 Nov

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

2017-11-10 Thread Marc Schwartz
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 <boris.ste...@utoronto.ca> wrote: > > |> x &l

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

2017-11-06 Thread Marc Schwartz
s in an Excel file using the WriteXLS package, 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 _

Re: [R] Converting SAS Code

2017-09-29 Thread Marc Schwartz
://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 Sep 29, 2017, at

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

2017-08-24 Thread Marc Schwartz
ge, 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 <jrkrid...@yahoo.ca> > wrote: > > > > > On Thursday, Augus

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

Re: [R] Extracting numeric part from a string

2017-08-02 Thread Marc Schwartz
> On Aug 2, 2017, at 7:42 PM, Marc Schwartz <marc_schwa...@me.com> wrote: > > >> On Aug 2, 2017, at 6:59 PM, Christofer Bogaso <bogaso.christo...@gmail.com> >> wrote: >> >> Hi again, >> >> I am struggling to extract the nu

Re: [R] Extracting numeric part from a string

2017-08-02 Thread Marc Schwartz
> [1] "563" > >> > > 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.]", ""

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

2017-07-31 Thread Marc Schwartz
approach. I have not used any 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 ar

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

2017-07-30 Thread Marc Schwartz
sing 'alpha' rather than '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

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

2017-07-27 Thread Marc Schwartz
to 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. > &g

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

2017-07-27 Thread Marc Schwartz
(..., 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 <jp...@mail.usf.edu> wrote: > > Michael, > > Thank you for the suggestion. I will take y

Re: [R] Installing rpy2 on Red Hat 6

2017-07-20 Thread Marc Schwartz
of the rpy2 page, it would seem that 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

Re: [R] Efficient Binning

2017-07-14 Thread Marc Schwartz
> Dan See ?findInterval > 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 m

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

2017-07-13 Thread Marc Schwartz
uot;coefs")[[1]]$alpha > [1] 0.5477073 0.4154115 > > attr(,"coefs")[[1]]$norm2 > [1] 1. 20. 1.55009761 0.08065872 > > Cheers, > Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep com

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

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

2017-07-07 Thread Marc Schwartz
' 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 > <marc_schwa...@me.com> wrote: > > > > > On Jul 7, 2017, at 6:03 AM, John Ka

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

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

Re: [R] Jagged ROC curves?

2017-06-26 Thread Marc Schwartz
ttle jaggedness, but not as much as in plot #1 > above. > > thanks! > > Pankaj > > On Mon, Jun 26, 2017 at 12:59 PM, Marc Schwartz <marc_schwa...@me.com > <mailto:marc_schwa...@me.com>> wrote: > > > On Jun 26, 2017, at 11:40 AM, Brian Sm

Re: [R] Jagged ROC curves?

2017-06-26 Thread Marc Schwartz
y 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 provide the URL

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

2017-06-26 Thread Marc Schwartz
collapsing zero or low sample size categories 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

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.org/doc/manuals/r-release

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

2017-05-23 Thread Marc Schwartz
> error. > > 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 <marc_schwa...@me.com> > wrote: > >> >>> On May 23, 2017, at 11:07 AM, David Chin <davi

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

2017-05-23 Thread Marc Schwartz
devel/2017-April/074157.html Martyn 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/

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

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

2017-05-11 Thread Marc Schwartz
end() is exactly 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 = c("Label 1&quo

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

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

2017-04-05 Thread Marc Schwartz
spend some time with one or 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.&quo

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

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

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

2017-04-05 Thread Marc Schwartz
istinfo/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 version deleted]] ___

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

2017-04-04 Thread Marc Schwartz
719529 [1] 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

Re: [R] fisher.test function error

2017-03-31 Thread Marc Schwartz
uot;V6", "V7", "V8"), 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

Re: [R] replace

2017-03-13 Thread Marc Schwartz
Cory 5 Bob 2002 Bob 6 Bob 2003 Bob 7 Alex 2002 Alex-2002 8 Alex 2003 Alex-2003 9 Alex 2004 Alex-2004 Note the coercion of the second returned value to character, otherwise you get the numeric code associated with the factor levels of DF1$firs

Re: [R] Novice users in need of urgent help with boxplots

2017-02-28 Thread Marc Schwartz
ort manual here: https://cran.r-project.org/manuals.html along with other basic R manuals listed there (notably An Introduction to R), that you should avail yourself of, along with any materials that the course itself provided. Regards, Marc Schwartz __ R-

Re: [R] Replace Text but not from within a word

2017-02-28 Thread Marc Schwartz
"SAGINAW COUNTY INC" Using 'as.is' becomes more a personal preference issue beyond this. Regards, Marc > -- > Sent from my phone. Please excuse my brevity. > > On February 28, 2017 5:19:40 AM PST, Marc Schwartz <marc_schwa...@me.com> > wrote: >> &

Re: [R] Replace Text but not from within a word

2017-02-28 Thread Marc Schwartz
Hi, See ?regex and ?grep for some details and examples on how to construct the expression used for matching, as well as some of the references therein. In this case, you want to use something along the lines of: > gsub(" CO$", "", text) [1] "BOEING&quo

Re: [R] Yates correction

2017-02-21 Thread Marc Schwartz
sis tests would you reject the null. Further consultation with a local statistical expert would seem prudent. Regards, Marc Schwartz > On Feb 21, 2017, at 7:40 AM, David L Carlson <dcarl...@tamu.edu> wrote: > > Use fisher.test(). Yates' correction compensates for a tendency for

Re: [R] [FORGED] Export Forecasted output to a table (excel)

2017-02-01 Thread Marc Schwartz
compatible format (e.g. data frame). The R Data Import/Export Manual is helpful here: https://cran.r-project.org/doc/manuals/r-release/R-data.html The use of the ?str function can help provide insights into the structure of the returned object and how you might access selected components of the

Re: [R] Help Installing RODBC with custom header locations

2017-02-01 Thread Marc Schwartz
igure.args' argument has the FULL path to the header files. There is detailed installation information in the vignette for the package on CRAN: https://cran.r-project.org/web/packages/RODBC/vignettes/RODBC.pdf Regards, Marc Schwartz __ R-help@r-pro

Re: [R] R studio server vs R server and Small computer to run R

2017-01-18 Thread Marc Schwartz
hn, I missed your first post on this, but I suspect that the lack of replies here is due to R Studio having their own support venue: https://support.rstudio.com/hc/en-us and that your query is likely best posted directly to them, since this is not strictly an R question, per s

Re: [R] output

2017-01-17 Thread Marc Schwartz
age of the same name, if you >>> specify '.xlsx' for the file name extension, the function will create an >>> Excel 2007 compatible file, which can handle worksheets of up to 1,048,576 >>> rows by 16,384 columns. >>> >>> Thus: >>> >>>

Re: [R] extract minimal variables from model

2017-01-06 Thread Marc Schwartz
0.047817737 >> minimalvariablesfrommodel20161120(z1, ChickWeight) > [1] "weight" >> > > Is there a more elegant, and hence more reliable, approach? > > Thanks > > Jacob A. Wegelin Jacob, In general, if you have a model object 'm', you can use the

Re: [R] output

2016-12-12 Thread Marc Schwartz
.xlsx", row.names = FALSE) That is all described in the help file for the function. Regards, Marc Schwartz > On Dec 12, 2016, at 6:51 PM, Val <valkr...@gmail.com> wrote: > > Hi all, > > I have a data frame with more than 100,000 rows. > > datx <- function(n,mean,sd) {

Re: [R] are R packages safe?

2016-12-08 Thread Marc Schwartz
Inline below... > On Dec 8, 2016, at 12:27 PM, Spencer Graves > <spencer.gra...@effectivedefense.org> wrote: > > > > On 12/8/2016 12:24 PM, Marc Schwartz wrote: >> Dimitri, >> >> Even if you narrowly define "safe" as being virus/ma

Re: [R] are R packages safe?

2016-12-08 Thread Marc Schwartz
liakhovit...@gmail.com> wrote: > > Thank you, Marc. > That's helpful! > I think, in this case it's mostly: > > That they are virus/malware free. > And that they don't send out some info that they are not supposed to. > > Thank you! > Dimitri > > > On

Re: [R] are R packages safe?

2016-12-08 Thread Marc Schwartz
tandardized framework for CRAN submissions. Does "safe" mean that they are virus/malware free? Does "safe" mean that they are extensively tested/validated, bug free and yield documented evidence of consistent and correct results, possibly having also been tested for "edge cases"

Re: [R] transpose rows and columns for large data

2016-11-29 Thread Marc Schwartz
etc.), but at the expense of some operations. A matrix, which is in reality a vector with dimensions, can only contain a single data type and in this example, the numeric column is coerced to character. Note also that the "Letters" column in "DF" is changed from being a factor

Re: [R] Frequency of a character in a string

2016-11-14 Thread Marc Schwartz
gsub("[^a]", "", Vec)) [1] 38664 ## Check performance > system.time(table(strsplit(Vec, split = "")[[1]])["a"]) user system elapsed 0.100 0.007 0.107 > system.time(nchar(gsub("[^a]", "", Vec))) user system elapsed 0.270

Re: [R] Help with decrypting

2016-11-09 Thread Marc Schwartz
gt; -- > Don MacQueen > Lawrence Livermore National Laboratory > 7000 East Ave., L-627 > Livermore, CA 94550 > 925-423-1062 > > > From: Marc Schwartz <marc_schwa...@me.com <mailto:marc_schwa...@me.com>> > Date: Monday, November 7, 2016 at 3:30 PM > To: dh m <ma

Re: [R] creating lists of random matrices

2016-11-09 Thread Marc Schwartz
> On Nov 9, 2016, at 12:41 PM, Marc Schwartz <marc_schwa...@me.com> wrote: > > >> On Nov 9, 2016, at 12:32 PM, Evan Cooch <evan.co...@gmail.com> wrote: >> >> So, its easy enough to create a random matrix, using something like (say) >> >>

Re: [R] creating lists of random matrices

2016-11-09 Thread Marc Schwartz
[1,] 0.5702972 0.7165806 [2,] -0.9731331 0.8332827 , , 4 [,1] [,2] [1,] -0.8089588 0.09195256 [2,] -0.2026994 0.67545827 , , 5 [,1] [,2] [1,] 0.5093008 -0.3097362 [2,] 0.6467358 0.3536414 Regards, Marc Schwartz [[alternative HTML version d

Re: [R] problem installing R 2.5

2016-11-08 Thread Marc Schwartz
ailman/listinfo/r-sig-debian <https://stat.ethz.ch/mailman/listinfo/r-sig-debian> You will avail yourself of a more focused audience there as well. Regards, Marc Schwartz [[alternative HTML version deleted]] __ R-help@r-project.org ma

Re: [R] Help with decrypting

2016-11-07 Thread Marc Schwartz
thod for you. That all being said, as per Bruce's recommendation, there are "better" encryption/decryption algorithms these days (some in the 'digest' package by Dirk), depending upon who you are trying to protect the data from... :-) Regards, Marc Schwartz [[alternative HTML

Re: [R] read.table() question

2016-10-19 Thread Marc Schwartz
suffix, presumably for a directional designation (East versus West), as seen below in Rich's str() output. > str(type.convert("0.3E")) num 0.3 > str(type.convert("0.3W")) Factor w/ 1 level "0.3W": 1 > str(type.convert(c("0.3E", "

Re: [R] Error installing packages

2016-10-19 Thread Marc Schwartz
resolves the issue, albeit, I just tried to directly download a couple of the zip files on my Mac from the same mirror and did not have any issues, so it may be a transient server problem. It is also possible that if the local package installation on their computer is corrupted in some man

Re: [R] rstudio mailing list

2016-10-19 Thread Marc Schwartz
er Resources -> Support: https://support.rstudio.com/hc/en-us 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://

Re: [R] Having trouble with running ldBands in Hmisc package. Posted in StackExchange

2016-10-10 Thread Marc Schwartz
Task View: https://cran.r-project.org/web/views/ClinicalTrials.html <https://cran.r-project.org/web/views/ClinicalTrials.html> provides names of other packages that provide for group sequential boundary calculations, although it looks like the entry for Hmisc needs to be edited there. I

Re: [R] NA treatment when comparing two vectors

2016-10-04 Thread Marc Schwartz
Bill, I had initially thought of using all.equal() along with isTrue(), however Fabien's desire for a pairwise element based approach, along with the specific NA handling steered me away from it and towards code along the lines of what Bert had offered, which builds on the basic notion of

Re: [R] NA treatment when comparing two vectors

2016-10-04 Thread Marc Schwartz
ctions and the now thousands of packages on CRAN generally follow that same paradigm for specific applications. Regards, Marc Schwartz > On Oct 4, 2016, at 12:33 PM, Bert Gunter <bgunter.4...@gmail.com> wrote: > > Fabien: > > In general, R's philosophy as a programming l

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

2016-09-14 Thread Marc Schwartz
typical operations, including regression 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-

Re: [R] Drill down reports in R

2016-09-13 Thread Marc Schwartz
of functionality, either stand alone 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

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 9:48

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

2016-09-13 Thread Marc Schwartz
repositories. The R-SIG-Debian subscribers 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,

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

Re: [R] R-Studio+Commander

2016-09-01 Thread Marc Schwartz
be options via third party technologies to run 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 Sc

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

2016-08-10 Thread Marc Schwartz
generic version of a drug 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":

Re: [R] Freq in dataframe

2016-08-05 Thread Marc Schwartz
k 32 Dose 2 B6 10 Week 52 Dose 2 B9 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 Sc

Re: [R] Anderson Darling Goodness of fit test

2016-08-02 Thread Marc Schwartz
ng that you are using the 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... Rega

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

2016-08-02 Thread Marc Schwartz
ng space 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, POS

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

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

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 <marc_schwa...@me.com> wrote: > > >> On Jul 26, 2016, at 4:28 PM, Dimitri Liakhovitski >> <dimitri.liakhovit...@gmail.com> wrote: >> >> Hello! >> >> I have a string x: >> x <-

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

2016-07-26 Thread Marc Schwartz
from it. The following works: > gsub("[^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] Date Time in R

2016-07-26 Thread Marc Schwartz
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 <shivipm...@gmail.com> wrote: > > Hello Again, > >

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

2016-07-25 Thread Marc Schwartz
abels are almost at the right 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, > >

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

<    1   2   3   4   5   6   7   8   9   10   >