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

2016-07-20 Thread Marc Schwartz
too large for 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 UNSU

Re: [R] barplot colour problem

2016-07-18 Thread Marc Schwartz
- 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 d

Re: [R] source code of a function

2016-07-08 Thread Marc Schwartz
function call. However, 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 t

Re: [R] R-3.3.1 RPM release

2016-07-05 Thread Marc Schwartz
present, there is no indication that 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

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

Re: [R] Not able to install RODBC package

2016-06-28 Thread Marc Schwartz
ight try to select a 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 S

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

2016-06-27 Thread Marc Schwartz
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:54 AM,

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

2016-06-24 Thread Marc Schwartz
splay 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

Re: [R] R help needed

2016-06-23 Thread Marc Schwartz
ccordingly. 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

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

2016-06-21 Thread Marc Schwartz
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 <ashimkap...@gmail.com> wrote: > > I am reading the book An R and S plus companion to Applied Regression and I > f

Re: [R] inverse table

2016-06-15 Thread Marc Schwartz
l/r-help/2009-January/378521.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

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 <t...@maladmin.com> wrote: > > Assuming you are on a mac this link may be of assistance: > http://tips.tutorialhorizon.com/2015/10/01/xcrun-error-invali

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

2016-06-08 Thread Marc Schwartz
s 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: > > -- cut -- >

Re: [R] Something weird

2016-06-03 Thread Marc Schwartz
1, 20) [1] 2.9995559 > (3/10) / 0.1 == 3 [1] FALSE 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-p

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

2016-06-02 Thread Marc Schwartz
ther 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] Antwort: Re: Unable to update R software to 3.3.0

2016-06-01 Thread Marc Schwartz
b). 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, Marc

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

2016-06-01 Thread Marc Schwartz
EL-2016-6fc2c863b0 So for now, it would 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 __

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

2016-05-23 Thread Marc Schwartz
n, 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/r-help PLEASE do read the posting g

Re: [R] R for RedHat Linux upgrade?

2016-05-17 Thread Marc Schwartz
ject.org/koji/packageinfo?packageID=1230 It would appear that Tom is in the process of preparing a 3.3.0 release, but I would defer to him on the time frame for release, which generally requires that testers provide the requisite feedback to increase the "ka

Re: [R] changing factor to numbers without getting NAs

2016-05-13 Thread Marc Schwartz
be coerced to numeric due to the commas: > as.numeric("100,2") [1] NA Warning message: NAs introduced by coercion > as.numeric("100.2") [1] 100.2 Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNS

Re: [R] how to donate software to R community

2016-04-28 Thread Marc Schwartz
ect to not pursue the CRAN path formally, would be via your own servers, R-Forge, github or similar vehicles. 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] Interquartile Range

2016-04-19 Thread Marc Schwartz
still the possibility of a multi-modal distribution and the nuances of which kernel is used, etc., etc. Food for thought. Regards, Marc Schwartz > On Apr 19, 2016, at 7:07 PM, Bert Gunter <bgunter.4...@gmail.com> wrote: > > Well, instead of your functions try: > > Mode

Re: [R] Coxph model treating all the values of 1 variable as separate variables PLEASE HELP!!

2016-03-26 Thread Marc Schwartz
ep. See ?str. Somewhere along the way, it becomes a factor instead of numeric. If you imported it via something like read.table() from an external data file, check to see what the result of that operation is, as non-numeric values in that column can result in the entire column being coerced to a fa

Re: [R] possible to use the program for commercial reasons?

2016-03-21 Thread Marc Schwartz
> On Mar 21, 2016, at 6:44 AM, Felix Töpfer wrote: > > Dear R-Team, > > I am a scientist actually working in parallel as data analyst for an > advertisment auditing company. Therefore i would use your software for > commercial reasons right now. Is this allowed, o rare

Re: [R] Namespace problem with pre-R 3.0.0 package

2016-03-03 Thread Marc Schwartz
nal details so that folks can provide better assistance, subscribe to and post to R-package-devel for further discussion. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinf

Re: [R] Specify order of groups negative binomial (glm.nb)

2016-02-25 Thread Marc Schwartz
-inflated models with non zero-inflated models. Regards, Marc Schwartz > On Feb 25, 2016, at 2:48 PM, Bert Gunter <bgunter.4...@gmail.com> wrote: > > You can re-set the contrasts for the factor, though whether this is > "easier" is a matter of personal preferenc

Re: [R] R packages for Mac Users

2016-02-23 Thread Marc Schwartz
ve to look at each, to get a sense for any issues there. There are also two Mac specific resources that you should be aware of, if not already: R for Mac OS X FAQ: https://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html R-SIG-Mac: https://stat.ethz.ch/ma

Re: [R] confirm family==binomial and link==logistic

2016-02-12 Thread Marc Schwartz
, data=mydata) > family(someobject) Family: gaussian Link function: identity someobject<- glm(admit~gre+gpa, data=mydata, family="binomial") > family(someobject) Family: binomial Link function: logit So, you could feasibly use: family(someobject)$family family(someo

Re: [R] Dates and missing values

2016-02-08 Thread Marc Schwartz
2-04 Median :19059230 Median :1920-09-10 Mean :18988523 Mean :1923-04-12 3rd Qu.:19255701 3rd Qu.:1941-01-17 Max. :19691228 Max. :1969-12-28 NA's :1 NA's :3 So summary does support the reporting of NA's for Dates, using summary.Date(). Regards, Marc S

Re: [R] Dates and missing values

2016-02-08 Thread Marc Schwartz
> On Feb 8, 2016, at 12:45 PM, Göran Broström <goran.brost...@umu.se> wrote: > > Thanks Marc, but see below! > > On 2016-02-08 19:26, Marc Schwartz wrote: >> >>> On Feb 8, 2016, at 11:26 AM, Göran Broström <goran.brost...@umu.se> wrote: >>&

Re: [R] R project and the TPP

2016-02-04 Thread Marc Schwartz
Ted and José, The FSF has a blog post here that might provide some insights: http://www.fsf.org/blogs/licensing/time-to-act-on-tpp-is-now-rallies-against-tpp-in-washington-d-c-november-14-18 That is from last November, but the relevant passage, perhaps in a temporal vacuum, seems to be the

Re: [R] R Licensing Question

2016-01-26 Thread Marc Schwartz
is where you will want an IP lawyer to get involved as the nature of such bundling (e.g are you actually interfacing with the package via compiled code that is linked to a binary?) will be relevant to determining if your code would need to be licensed with a compatible open source license. Regards,

Re: [R] Simple syntax question (I think)

2016-01-20 Thread Marc Schwartz
> On Jan 20, 2016, at 12:26 PM, Bert Gunter wrote: > > Could someone please explain to me my mal-understanding of the > following, which I expected to give the same results without errors. > > TIA. > > -- Bert > >> z <- list(x=1) >> z[[2]] <- 3 >> z > $x > [1] 1 > >

Re: [R] write.xlsx- writing in a single sheet

2016-01-15 Thread Marc Schwartz
>cannot append data to an existing worksheet. The 'append = TRUE' argument enables you to add a new worksheet to an existing Excel file, as opposed to creating a new Excel file or overwriting an existing Excel file. It appears that the addDataFrame() function might support the approach o

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

2016-01-13 Thread Marc Schwartz
is really what you want to do and whether or not there is a solution to your problem that does not involve using Excel as the end result. Regards, Marc Schwartz > On Jan 13, 2016, at 12:16 PM, Jeff Newmiller <jdnew...@dcn.davis.ca.us> wrote: > > There is no such thing as a "

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

2016-01-13 Thread Marc Schwartz
h to look at ?list.files to fetch a listing of file names by pattern into the CSVFiles vector rather than creating it manually as above. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/list

Re: [R] R package built using newer version of R

2016-01-05 Thread Marc Schwartz
Hi, You appear to have downloaded and attempted to install the '.zip' version of the package, which is the pre-built Windows **binary** version of the package. As Harrie noted below, you want to download the '.tar.gz' version of the package, which is the "source" version. Rega

Re: [R] Expanding matrix into dummies

2015-12-22 Thread Marc Schwartz
0 0 0 0 0 0 1 [4,] 0 0 0 1 0 1 0 0 [5,] 0 1 0 0 1 1 0 0 [6,] 0 0 1 0 0 0 1 0 See ?row Regards, Marc Schwartz __ R-help@r-proj

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Marc Schwartz
> On Dec 15, 2015, at 9:55 AM, Martin Maechler > wrote: > > > > [] > >> You are missing the closing bracket on the boxplot() >> command. Just finish with a ')' > > Hmm... I once learned > > '()' =: parenthesis/es > '[]' =: bracket(s) >

Re: [R] plotmath not available on R 3.2.2

2015-12-12 Thread Marc Schwartz
> On Dec 12, 2015, at 11:32 AM, Ranjan Maitra <maitra.mbox.igno...@inbox.com> > wrote: > > On Sat, 12 Dec 2015 10:51:16 -0600 Marc Schwartz <marc_schwa...@me.com> wrote: > >> >>> On Dec 12, 2015, at 10:47 AM, Ranjan Maitra <maitra.mbox.igno...@i

Re: [R] plotmath not available on R 3.2.2

2015-12-12 Thread Marc Schwartz
to download the tarball and > install locally? > > Best wishes, > Ranjan plotmath is not a package, it is a function: ?plotmath Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.

Re: [R] plotmath not available on R 3.2.2

2015-12-12 Thread Marc Schwartz
> On Dec 12, 2015, at 12:33 PM, Ranjan Maitra > wrote: > >> A couple of things: >> >> First, there is a SIG list specifically for R on Fedora and RHEL >> distributions and their derivatives: >> >> https://stat.ethz.ch/mailman/listinfo/r-sig-fedora >> >>

Re: [R] regexp inside and outside brackets

2015-12-11 Thread Marc Schwartz
("\\{[[:alnum:]]+\\}", x)) [[1]] [1] "{0}" "{1}" "{a2}" "{12}" The gsub() replaces the returned braces. You could invert the result of regmatches() to get: > regmatches(x, gregexpr("\\{[[:alnum:]]+\\}", x), invert = TRUE)[[1]

Re: [R] regexp inside and outside brackets

2015-12-11 Thread Marc Schwartz
Hi, Needless to say, Jeff's solution is easier than my second one. I was wrestling in dealing with the greedy nature of regex's and so shifted to thinking about the use of the functions that I proposed in the second scenario. Also, I was a bit hypo-caffeinated ... ;-) Regards, Marc > On

Re: [R] Updating Package Fails: Help on How to Fix Needed

2015-12-11 Thread Marc Schwartz
may, in some fashion, be related to the dependency of pbkrtest on lme4. The ?sigma for lme4 shows the following in Examples: methods(sigma)# from R 3.3.0 on, shows methods from pkgs 'stats' *and* 'lme4' So there may be a package namespace/export issue at play here... Regards, Marc Schwartz

Re: [R] Errors when compile RInside using intel c++ compiler on windows

2015-12-10 Thread Marc Schwartz
Hi, For clarification, the rcpp support list is the recommended location for RInside support: http://lists.r-forge.r-project.org/mailman/listinfo/rcpp-devel Regards, Marc > On Dec 10, 2015, at 11:30 AM, Bert Gunter wrote: > > Wrong list!. This is about

[R] [R-pkgs] WriteXLS Version 4.0.0 Released

2015-12-07 Thread Marc Schwartz
ncountered in the source data frame. This is a parallel to the same argument in ?write.table. Regards, Marc Schwartz ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __

Re: [R] SWEAVE - a gentle introduction

2015-11-17 Thread Marc Schwartz
with Sweave itself, there are a variety of supporting packages on CRAN that have related functionality (e.g. formatted LaTeX output) that are worth knowing about and are included in the Reproducible Research task view: https://cran.r-project.org/web/views/Reproducibl

Re: [R] Using regex to truncate repeating characters

2015-11-11 Thread Marc Schwartz
repeated characters in the prior alphanumeric character group of at least 3 repeats and return just the unique character. The returned expression: \\1\\1\\1 says repeat the unique character 3 times. See ?gsub and ?regex for some additional information. Regards, Marc Schwartz __

Re: [R] What happened to Canada?

2015-11-02 Thread Marc Schwartz
Hi Rolf, See below. > On Nov 2, 2015, at 5:40 PM, Rolf Turner <r.tur...@auckland.ac.nz> wrote: > > > Thanks for the reply, Marc. > > On 03/11/15 12:09, Marc Schwartz wrote: > > > >> >> Rolf, >> >> What do: >>

Re: [R] What happened to Canada?

2015-11-02 Thread Marc Schwartz
> On Nov 2, 2015, at 4:36 PM, Rolf Turner <r.tur...@auckland.ac.nz> wrote: > > > On 03/11/15 01:41, Marc Schwartz wrote: > >> >>> On Nov 2, 2015, at 6:00 AM, John Kane <jrkrid...@inbox.com> wrote: >>> >>> A rather silly q

Re: [R] What happened to Canada?

2015-11-02 Thread Marc Schwartz
t will include mirrors that support HTTPS. The last entry on the list should be (HTTP mirrors). Click that and it will bring up a list of additional mirrors, including Canadian locations, that support HTTP. Regards, Marc Schwartz __ R-help@r-project.org ma

Re: [R] Pasting a large chunk of R code in terminals

2015-10-29 Thread Marc Schwartz
nality in R. > > Thanks, > > -- > *Xu Tian* Rather than pasting a large amount of code into the terminal, put the code into a text file (e.g. MyCode.R) and use ?source i your terminal session, to read in the file to then be parsed and run. Regards, Marc Schwartz ___

Re: [R] Pasting a large chunk of R code in terminals

2015-10-29 Thread Marc Schwartz
> On Oct 29, 2015, at 10:43 AM, Marc Schwartz <marc_schwa...@me.com> wrote: > > >> On Oct 29, 2015, at 10:16 AM, Victor Tian <tianx...@gmail.com> wrote: >> >> Hi there, >> >> Often times, I would run R in the terminal when the task is computa

Re: [R] How to get variable name while doing series of regressions in an automated manner?

2015-10-27 Thread Marc Schwartz
' vector for the source response variables, or consider: > as.character(formula(MODS[[1]])) [1] "~" "log(Sepal.Length)" [3] "Petal.Width + Species" > sapply(MODS, function(x) formula(x)[[2]]) [[1]] log(Sepal.Length) [[2]] log(Sepal.W

Re: [R] Number of digits to display?

2015-10-26 Thread Marc Schwartz
ch it *displays* numeric values. If you want to affect the display of values in routine output, see ?options and note 'digits' and 'scipen'. Also see ?print.default. Those approaches do not affect the precision of calculations on the *stored* values. For fractions, see: requir

Re: [R] string split problem

2015-10-23 Thread Marc Schwartz
bove takes the two components, before and after the first '.', adds the "|" as a character in between, to then be used in strsplit(): > strsplit(gsub("^([[:alpha:]]+)\\.(.*)$", "\\1|\\2", test), split = "\\|") [[1]] [1] "aaa" "bb.cc"

Re: [R] additive proportional odds model in R

2015-10-08 Thread Marc Schwartz
https://stat.ethz.ch/pipermail/r-help/2015-October/432752.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-pro

Re: [R] regex sub with specified number of characters

2015-10-06 Thread Marc Schwartz
t; "384723" "4395843" "398374" or > sub("^3([0-9]{6})$", "\\1", a) [1] "593857" "384723" "4395843" "398374" If the source begins with a 3 followed by 6 digits only from 0 to 9, it will return the 6 digits

Re: [R] cut - strange NA as output

2015-10-06 Thread Marc Schwartz
t (x, seq(0, ceiling(max(x)), by = 1), label=FALSE) [1] 1322 1175 1155 1149 1295 1173 1289 1197 1356 1129 Both of the above approaches will increment the sequence 0:max(x) to 1356: > range(seq(0, max(x) + 1, by = 1)) [1]0 1356 > range(seq(0, ceiling(max(x)), by = 1)) [1]0 1356 R

[R] Announcement - The Use Of Nabble For Posting To R-Help Will No Longer Be Supported Effective October 15, 2015

2015-10-01 Thread Marc Schwartz
our recommended vehicles for focused community support for R. Thank you, Marc Schwartz On Behalf of the R Foundation for Statistical Computing __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Accessing defunct package

2015-09-25 Thread Marc Schwartz
e a number of them to *read* xport files. Thus, one commercial (not free) conversion application that is independent of SAS is StatTransfer, which may be worth your investment if you are doing this quite a bit: http://www.stattransfer.com Regards, Marc Schwartz ___

Re: [R] Error: pandoc version 1.12.3 or higher is required and was not found

2015-09-23 Thread Marc Schwartz
rd Czerminski > 508-358-6328 > rysz...@czerminski.net > LinkedIn.com/in/Ryszard.Czerminski Did you actually install pandoc? As per the page that you link to above: "Please follow the instructions on the Pandoc website to install it." The link in the above sentence is: http:/

Re: [R] 'R' Software Output Plagiarism

2015-09-22 Thread Marc Schwartz
if there is any guidance provided for students regarding the crediting of software used in this manner, especially if that guidance is at no cost to you. Regards, Marc Schwartz > On Sep 22, 2015, at 11:01 AM, Bert Gunter <bgunter.4...@gmail.com> wrote: > > 1. It is highly u

Re: [R] 'R' Software Output Plagiarism

2015-09-22 Thread Marc Schwartz
cessary to know exactly what sources > the text is claimed to be plagiarized from and/or what parts of the text that > are being matched by Urkund. If it turns out that Urkund is generating false > positives, then this needs to be pointed out to them and to the people basing > decisio

Re: [R] generate ordered categorical variable in R

2015-09-16 Thread Marc Schwartz
> On Sep 16, 2015, at 1:06 PM, Bert Gunter wrote: > > Yikes! The uniform distribution is a **continuous** distribution over > an interval. You seem to want to sample over a discrete distribution. > See ?sample for that, as in: > > sample(1:4,100,rep=TRUE) > > ## or for

Re: [R] generate ordered categorical variable in R

2015-09-16 Thread Marc Schwartz
ter >> >> "Data is not information. Information is not knowledge. And knowledge >> is certainly not wisdom." >> -- Clifford Stoll >> >> >> On Wed, Sep 16, 2015 at 1:28 PM, Marc Schwartz <marc_schwa...@me.com> wrote: >>> >>

Re: [R] generate ordered categorical variable in R

2015-09-16 Thread Marc Schwartz
A C D D D B B D [100] C C B B D C A A B D C D C B B A A C A B C D B B A D B C A A C C A [133] A C D C C C D C C C A B C B A C A D C C B B C A C A B A B D B D D [166] B A B C B C D D B B D C C C D B A D C D A D C D C C B A D B C A D [199] B D Levels: A B C D Here, the result is

Re: [R] names in R list's

2015-09-08 Thread Marc Schwartz
’ e-mails to be completely intercepted (without notice to the sender).” 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] factor interaction boxplot ordering by median

2015-09-05 Thread Marc Schwartz
quot;, "67", "68", "69", "70", "71", "72")) # Modify the ?boxplot example bymedian <- with(DF, reorder(interaction(spray, op), count, median)) > bymedian [1] A.op1 A.op1 A.op1 A.op1 A.op1 A.op1 A.op2 A.op2 A.op2 A.op2 A.op2 [12] A.op2

Re: [R] ggplot2 will not install after system upgrade

2015-09-03 Thread Marc Schwartz
ersion incompatibility issue, where you are running a version of R built for F20 on F22. 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

Re: [R] Choosing columns by number

2015-08-25 Thread Marc Schwartz
] and use combinations of the two approaches as well. You can also negate the selection by using: select = -c(…) That avoids having to worry about using integer indices. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

Re: [R] Output In R

2015-08-22 Thread Marc Schwartz
! :-) Regards, Marc Schwartz If you have not seen it, you may find Bob Muenchen's pdf and/or the expanded book R FOR SAS AND SPSS USERS ( https://science.nature.nps.gov/im/datamgmt/statistics/R/documents/R_for_SAS_SPSS_users.pdf ) useful. It is very easy to create the data set you

Re: [R] difference between write.csv(...) and write.table(..., sep=, )

2015-08-16 Thread Marc Schwartz
in advance. Best, Jinsong write.csv(x) ,A,B,C a,1,3,5 b”,2,4,6 write.table(x, sep = ,, qmethod = double, col.names = NA) ,A,B,C a,1,3,5 b”,2,4,6 Read the section on CSV files in ?write.table Regards, Marc Schwartz __ R-help@r-project.org

Re: [R] Crosstabulation with a frequency variable

2015-08-13 Thread Marc Schwartz
Hi, As Sarah noted, there are a variety of ways in R to accomplish this, such as: DF - data.frame(var1 = c(0, 0, 1, 1), var2 = c(0, 1, 0, 1), freq = c(11, 12, 13, 14)) xtabs(freq ~ var1 + var2, data = DF) var2 var1 0 1 0 11 12 1 13 14 See ?xtabs Regards, Marc Schwartz

Re: [R] Question about survival::survfit

2015-08-05 Thread Marc Schwartz
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 UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help

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 mtmor...@fredhutch.org wrote: On 08/05/2015 10:08 AM, Jeff

Re: [R] Simulate skewed data if 2.5, 25th 50th and 75 centile are known

2015-08-05 Thread Marc Schwartz
, due to my own curiosity, led me to: https://cran.r-project.org/web/packages/rriskDistributions/index.html which you may find of value. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch

Re: [R] question about implementation of the R

2015-07-31 Thread Marc Schwartz
://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-guide.html

Re: [R] trojan with R download

2015-07-31 Thread Marc Schwartz
, 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-project.org/posting-guide.html

Re: [R] x11() hangs in 3.2.1

2015-07-31 Thread Marc Schwartz
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 UNSUBSCRIBE and more, see https

Re: [R] Exclude 2014 data from mean

2015-07-31 Thread Marc Schwartz
]]) 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, so the [[1]] only returns a vector, which is passed to mean(). Regards, Marc Schwartz

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 Jul

Re: [R] matching strings in a list

2015-07-16 Thread Marc Schwartz
] I like google [[2]] [1] Hi Google google [[3]] [1] what's up” sapply(Tweets, function(x) grepl(google, x, ignore.case = TRUE)) [1] TRUE TRUE FALSE sum(sapply(Tweets, function(x) grepl(google, x, ignore.case = TRUE))) [1] 2 Regards, Marc Schwartz

Re: [R] Invalid URL for R documentation

2015-07-06 Thread Marc Schwartz
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. Regards, Marc Schwartz

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

2015-07-03 Thread Marc Schwartz
(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 str(mat[-nrow(mat), , drop = FALSE]) int [1:11, 1] 1 2 3 4 5 6 7 8 9 10 … Regards, Marc Schwartz P.S. are you restricted

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

2015-06-18 Thread Marc Schwartz
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 bgunter.4...@gmail.com wrote: Your **is** the coolest and most efficient way to do this. It's vectorized -- apply() stuff is not. Cheers

Re: [R] Installing R 2.15.2 on Mac

2015-06-12 Thread Marc Schwartz
-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 __ R-help@r-project.org mailing

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 marc_schwa...@me.com wrote: On Jun 10, 2015, at 7:39 AM, Liz Hare dogg...@earthlink.net wrote: Hi R-Experts, I have a data.frame like this: head(map) chr snp poscm posbpdist 1 1 M1 2.99043 3249189 NA 2 1 M2 3.06457

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

2015-06-10 Thread Marc Schwartz
, 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 provide commented, minimal, self-contained

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

2015-06-04 Thread Marc Schwartz
can remove the white spaces, but that may be somewhat inconvenient. Thanks for any help. Wade See ?shQuote shQuote(string2) [1] “\This doesn’t\ Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Unwanted unicode

2015-06-04 Thread Marc Schwartz
, 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/mailman/listinfo/r-help PLEASE do read the posting guide

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

Re: [R] cbind question, please

2015-04-24 Thread Marc Schwartz
it is in namespace:base. See ?get 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 provide

Re: [R] Question on funcion and npar

2015-04-21 Thread Marc Schwartz
=, center, \n, MAD=, spread, \n) } result - list(center=center,spread=spread) return(result) } Presumably ‘nonparametric’, since median()/mad() is used in lieu of mean()/sd(), if npar = TRUE. Regards, Marc Schwartz __ R-help@r-project.org mailing

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

2015-04-21 Thread Marc Schwartz
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/listinfo/r-help PLEASE do read the posting guide http

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

2015-04-20 Thread Marc Schwartz
! - Story of happiness: Part 2. [2] What a nice day today: Story of happiness (Part 2)” Also, possibly: http://cran.r-project.org/web/packages/stringdist Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

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

2015-04-20 Thread Marc Schwartz
of barplot() for your own use and/or consider that there might be a logical CRAN package for graphics extensions where it could be included as an add-on function. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

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

2015-04-17 Thread Marc Schwartz
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 Schwartz __ R-help@r

Re: [R] basic help with as.Date()

2015-03-26 Thread Marc Schwartz
requires a full date, with a month, day and year. You might look at the 'zoo' package on CRAN, which has a yearmon() function. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo

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