[R] Wordcloud errors

2020-05-23 Thread Bryan Mac
s there a way to fix this script so that there are no warnings?? Thanks, Bryan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

[R] Wordcloud warnings

2020-05-22 Thread Bryan Mac
ewer.pal(9,"Reds")[0:-3]) } Best, Bryan __ 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

[R] Hierarchical Cluster Analysis

2018-09-11 Thread Bryan Mac
Bryan Mac Data Scientist Research Analytics Ipsos Insight LLC [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] Export R output in Excel

2016-12-29 Thread Bryan Mac
a .CSV file with the good formatting ? I am looking to export the whole output if possible. I found this code, but it doesn’t cover the whole output of the console. write.csv(coef(summary(test)), file=“test.csv”) My whole output consists of descriptives and regressions. Best, Bryan Mac

Re: [R] [FORGED] Export R output in Excel

2016-12-28 Thread Bryan Mac
not find most of the hints “useful”. if anything, it got me more confused. Thanks. Bryan Mac bryanmac...@gmail.com > On Dec 28, 2016, at 3:15 PM, Rolf Turner wrote: > > On 29/12/16 10:45, Bryan Mac wrote: >> Hi, >> >> How do I export results from R to Excel in

[R] Export R output in Excel

2016-12-28 Thread Bryan Mac
Hi, How do I export results from R to Excel in a format-friendly way? For example, when I copy and paste my results into excel, the formatting is messed up. Thanks. Bryan Mac bryanmac...@gmail.com __ R-help@r-project.org mailing list -- To

[R] Filtering out rows

2016-11-02 Thread Bryan Mac
Hi, I am looking to filter out rows in my data set, run my analysis and then removing the filter. Here is my regression. I would like to filter out a row. For example, I would like to filter out a row, "Case"=1511. npi=lm(npi_mvmt~cnavgpi,data=df) summary(npi) resid.vs.fitt.LS%https://stat.ethz.c

Re: [R] Bootstrapping in R

2016-10-19 Thread Bryan Mac
Hi, After running the bootstrapping, I would like to the output of the bootstrapped samples. How can I view the bootstrapped samples of each variable? Bryan Mac bryanmac...@gmail.com > On Oct 18, 2016, at 3:57 AM, Rui Barradas wrote: > > It means that the sd of the bootstrap s

Re: [R] Least Median Square Regression

2016-10-08 Thread Bryan Mac
I am confused reading the document. I have installed and added the package (MASS). What is the function for LMS Regression? Bryan Mac bryanmac...@gmail.com > On Oct 8, 2016, at 6:17 AM, Enrico Schumann wrote: > > On Sat, 08 Oct 2016, Bryan Mac writes: > >> Hi R-help,

[R] Least Median Square Regression

2016-10-08 Thread Bryan Mac
squared_lms_sqrtnar_sqrtnic) return(out) } Also, which value should be looked at decide whether this is best regression model to use? Bryan Mac bryanmac...@gmail.com [[alternative HTML version deleted]] __ R-help@r-project.org mailing l

Re: [R] Bootstrapping in R

2016-10-03 Thread Bryan Mac
orm(100) > y <- x + rnorm(100) > dat <- data.frame(x, y) > stat2 <- function(DF, f){ > model <- lm(y ~ x, data = DF[f,]) > coef(model) > } > > boot(dat, stat1, R = 100) > boot(dat, stat2, R = 100) Bryan Mac bryanmac...@gmail.com > On Oct 2, 20

Re: [R] Bootstrapping in R

2016-09-30 Thread Bryan Mac
each time the code is run, correct? result <- boot(n_data, statistic = DataSummary, R = 100). Best, Bryan Mac bryanmac...@gmail.com > On Sep 29, 2016, at 12:16 PM, ruipbarra...@sapo.pt wrote: > > Hello, > > Read the help page ?boot::boot. > For instance, try the follo

[R] printing a data.frame that contains a list-column of S4 objects

2016-01-12 Thread Jenny Bryan
Is there a general problem with printing a data.frame when it has a list-column of S4 objects? Or am I just unlucky in my life choices? I ran across this with objects from the git2r package but maintainer Stefan Widgren points out this example below from Matrix as well. I note that the offending o

Re: [R] QCQP Optimization

2014-10-07 Thread Weiner, Bryan J
I am trying to minimize a quadratic program with quadratic constraints but I am having trouble choosing the package to use. I have been reading the documentation and it seems like all the examples use equations instead of vector manipulation. All of my parameters are vectors and matrices and they c

Re: [R] Shortest connected path in a matrix

2014-03-05 Thread McCloskey, Bryan
x27;m afraid I'm going to have to write some sort of recursive path-tracing algorithm, but I'm hoping there's a package already in existence that accomplishes this already... -bryan On Tue, Mar 4, 2014 at 1:13 PM, McCloskey, Bryan wrote: > I have a binary rectangular T/F matri

[R] Shortest connected path in a matrix

2014-03-04 Thread McCloskey, Bryan
(linear distance, not number of steps) for a king to get from a specified black space on the first row, to _any_ black space in a specified further row, traveling only on black spaces. Any idea? Thanks, -bryan [[alternative HTML version deleted

Re: [R] R and Interactive Visualizations

2013-11-22 Thread Bryan Hanson
s.org/ And there are other flavors. It mostly depends upon whether you want to write the java or let a package do it for you. Others may have better ideas. Bryan On Nov 22, 2013, at 10:08 AM, "Lorenzo Isella" wrote: > Dear All, > I use several R libraries (ggplot2, igraph

Re: [R] R packages for CAT scans

2013-09-18 Thread Bryan Hanson
Check here: http://cran.r-project.org/web/views/MedicalImaging.html Bryan On Sep 18, 2013, at 7:56 AM, wwreith wrote: > Does anyone know of a package that would allow data from a CT scan to be > loaded into R? > > Thanks! > > > > -- > View this message in con

Re: [R] (no subject)

2013-07-15 Thread Bryan Hanson
Look at the package chemometrics, it can certainly handle your number of variables (p > n is what that's called and it requires special considerations). I don't recall about missing values. The authors of that package also have a very helpful text. Good Luck. Bryan On Jul 14, 2

Re: [R] Issue with Imports in NAMESPACE

2013-06-25 Thread Bryan Hanson
happened to me and the symptoms are exactly as Soren originally reported them on this thread (try to do the 'right' thing but be thwarted). Bryan On Jun 25, 2013, at 1:03 PM, Duncan Murdoch wrote: > On 25/06/2013 7:14 AM, Søren Højsgaard wrote: >> Dear Duncan, >> &g

Re: [R] Proper way to implement package internal functions

2013-06-12 Thread Bryan Hanson
hide, that the warning goes away. Since it is less work to change the export statement compared to even a minimal Rd, that's the way I went. It's interesting that there is not more info about these options available. Thanks, Bryan On Jun 12, 2013, at 6:46 PM, Rolf Turner wrote: >

Re: [R] grDevices::convertColor XYZ space is it really xyY?

2013-06-12 Thread Bryan Hanson
y are tristimulus values - is that correct? Thanks again. This solves several problems in a package I am developing. Bryan On Jun 12, 2013, at 4:36 PM, Ken Knoblauch wrote: > You seem to treating the input values as xyY when they should be XYZ > (case matters). > So, I would do somet

Re: [R] grDevices::convertColor XYZ space is it really xyY?

2013-06-12 Thread Bryan Hanson
, from = "XYZ", to = "sRGB") # none of these are 1,1,1, namely white (they are ~ 0.6, 0.6, 0.6) So it looks like D65, a white standard, does not come back to something near white in the sRGB space. What am I doing wrong here, or what do I misunderstand? Please don't s

[R] grDevices::convertColor XYZ space is it really xyY?

2013-06-12 Thread Bryan Hanson
e CIE tristimulus values? It looks to me like the first case is true, but I would appreciate hearing from one of the people in the know. Thanks, Bryan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Proper way to implement package internal functions

2013-06-12 Thread Bryan Hanson
hould have documentation entries. if I understand correctly. I guess the reason I didn't find any documentation is the wide lattitude which is possible. Thank you. Bryan On Jun 12, 2013, at 10:57 AM, Duncan Murdoch wrote: > On 12/06/2013 10:44 AM, Bryan Hanson wrote: >> [p

[R] Proper way to implement package internal functions

2013-06-12 Thread Bryan Hanson
e seen this somewhere, but I can't find any resources just now. Perhaps a suggestion of a package that does things this way which I could study would be sufficient. Thanks, Bryan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/li

Re: [R] rgl crashes after one successful draw

2013-05-29 Thread Bryan Hanson
Thank you Brian. Yes, problem is on R.app I will send to R-sig-mac. Thanks, Bryan On May 29, 2013, at 11:07 AM, Prof Brian Ripley wrote: > This is most relevant to R-sig-mac. There are two different rgl devices on > OS X, depending how you are running this. One based on X11 and

[R] rgl crashes after one successful draw

2013-05-29 Thread Bryan Hanson
cessfully. And the same thing happens if I just do the commands inside the function individually. SessionInfo() below. Perhaps something is corrupt with my X11 window system? Thanks, Bryan R version 3.0.1 (2013-05-16) Platform: x86_64-apple-darwin10.8.0 (64-bit) locale: [1] en_US.UTF-8

Re: [R] Linebreaks in cat() functions that call other variables?

2013-05-22 Thread Bryan Hanson
The only permutation you likely didn't try: >> cat("df(between) is", a[1,1], "\ndf(within) is", a[2,1]) \n has to be inside the quotes. HTH. Bryan On May 22, 2013, at 4:34 PM, jordanbrace wrote: > Hi everyone, > > I'm having some difficul

Re: [R] Image segmentation

2013-04-06 Thread Bryan Hanson
I've recently had a reason to work a little with image segmentation too, and in addition to EBImage, you should look at biOps. You can learn a lot by studying these packages. Bryan On Apr 6, 2013, at 10:04 AM, Eder Paulo wrote: > Hello, > > Thanks for replying me! > >

Re: [R] OrgMassSpecR peak area issue

2013-03-18 Thread Bryan Hanson
sity[k] - peakTime[k] * peakIntensity[j] } peakArea[i] <- abs(sum(x)/2) which looks pretty standard to me, though I'm not clear right off the top of my head why they are dividing by 2. You can always contact the maintainer. Bryan On Mar 18, 2013, at 1:34 P

Re: [R] plotting CIE chromaticity diagram?

2013-03-18 Thread Bryan Hanson
. Bryan On Mar 18, 2013, at 7:08 AM, Ken Knoblauch wrote: > ishi soichi gmail.com> writes: > >> Has anyone plotted or is it possible to plot >> >> CIE *xy* chromaticity diagram >> >> http://en.wikipedia.org/wiki/File:CIE1931xy_blank.svg >> >> I

Re: [R] plotting CIE chromaticity diagram?

2013-03-18 Thread Bryan Hanson
I can send you my not quite perfect attempt a little later today. Bryan **** Prof. Bryan Hanson Dept of Chemistry & Biochemistry DePauw University Greencastle IN 46135 USA academic.depauw.edu/~hanson/deadpezsociety.html github.com/bryanhanson academic.depauw.edu/~hanson/UMP/In

Re: [R] Fitting this data with a gaussian would be great

2013-02-23 Thread Bryan Hanson
Fortune candidate? I hear the landlord is hell, but the company good. Bryan > I've > already got an apartment reserved for me in one of Pat Burns's "R > Inferno" levels, and I don't want to descend even further. > > Best, > Bert

Re: [R] Breaking out of multiple loops

2012-12-19 Thread McCloskey, Bryan
head, or if functions are innately faster somehow. Still seems like there should be a way to break out of nested loops, though... -b On Tue, Dec 18, 2012 at 4:50 PM, Duncan Murdoch wrote: > On 12-12-18 1:02 PM, McCloskey, Bryan wrote: >> >> Hey all, >> >> I'm curren

[R] Breaking out of multiple loops

2012-12-18 Thread McCloskey, Bryan
tatement in the outer loop, but again that's inefficient, as it's checking that conditional hundreds of times.) So is there a way to "cleanly" break out of multiple loops? Thanks, -bryan __ R-help@r-project.org mailing list https:

Re: [R] error of installing/building an R package (PortfolioAnalytics) on Win 7

2012-12-02 Thread Jack Bryan
e") > > at the command line to install it. This is necessary on Linux, but > depending on the package, there may be available binaries for Windows > and Mac, in which case you can install those instead of having to > build it from source and you can remove the last argumen

[R] error of installing/building an R package (PortfolioAnalytics) on Win 7

2012-12-02 Thread Jack Bryan
Hi, I am trying to install a package (PortfolioAnalytics) of R 2.15.2 on Win 7. I have tried the following instructions on : http://stackoverflow.com/questions/11105131/cannot-install-r-forge-package-using-install-packages I used svn checkout svn://svn.r-forge.r-project.org/svnroot/returnana

Re: [R] error, R commends cannot show the expected output

2012-11-28 Thread Jack Bryan
show the expected output > > Hello, > > And what do you get? > > Regards, > Pascal > > Le 28/11/2012 12:25, Jack Bryan a écrit : > > > > Hi, > > > > I am working on R 2.15.2 on Win. 7. > > > > I am trying to run some simple commends. > &g

Re: [R] error, R commends cannot show the expected output

2012-11-28 Thread Jack Bryan
gt; To: dtustud...@hotmail.com > > > > On Nov 28, 2012, at 4:13 AM, Jack Bryan wrote: > > > > > Thanks ! > > > > I solved it. > > Don't you mean David did? > > > > > I run sink() to get the output on command line. > >

Re: [R] error, R commends cannot show the expected output

2012-11-27 Thread Jack Bryan
> > And what do you get? > > Regards, > Pascal > > Le 28/11/2012 12:25, Jack Bryan a écrit : > > > > Hi, > > > > I am working on R 2.15.2 on Win. 7. > > > > I am trying to run some simple commends. > > > >> class(SWX.RET)

[R] error, R commends cannot show the expected output

2012-11-27 Thread Jack Bryan
Hi, I am working on R 2.15.2 on Win. 7. I am trying to run some simple commends. >class(SWX.RET) # SWX.RET is a data file that has been loaded. But, I cannot see the expected output. I have deselected "buffered output". Still it does not work. Any help will be appreciated. Thanks

Re: [R] Error: R could not find "listDescription"

2012-11-27 Thread Jack Bryan
o tell you to load particular packages? > > www.rseek.org turns up a listDescription() function in the fBasics > package, but that isn't necessarily the one you need for whatever > application you're pursuing. > > Sarah > > On Tue, Nov 27, 2012 at 2:37 PM, Jack Bry

[R] Error: R could not find "listDescription"

2012-11-27 Thread Jack Bryan
Hi, I am running R on Win 7. I got error for > listDescription(fPortfolio) Error: could not find function "listDescription" What do I need to install for solving this ? Any help will be appreciated. Thanks [[alternative HTML version delet

[R] error of installing a R package on Win 7

2012-11-27 Thread Jack Bryan
Hi, I am trying to run R 2.15.2 on Win 7. I am trying to run some example R code of the book :Portfolio Optimization with R/Rmetrics I was told that : To install all packages required for the examples of this ebook we recommendthat you install the bundle package ebookPortfolio. This can be do

[R] error of runing R in R 2.15.2 w/o graphes generated

2012-11-26 Thread Jack Bryan
Hi, I have installed R 2.15.2 on windows 7. http://cran.cnr.berkeley.edu/ I tried to run some simple graph code: http://www.harding.edu/fmccown/r/ But, no graphs are presented or poped up. Any help will be appreciated. Thanks [[altern

Re: [R] Using paste to create and evaluate a variable expression

2012-09-17 Thread Bryan Keller
This is perfect, thanks! On Mon, Sep 17, 2012 at 7:16 AM, arun wrote: > Hi, > Try this: > expr1<-parse(text=paste(paste0("X",1:2),collapse="+")) > eval(expr1) > #[1] 7 7 7 7 7 7 > A.K. > > > > > - Original Message - > From: Br

[R] Using paste to create and evaluate a variable expression

2012-09-16 Thread Bryan Keller
p = ""), paste("X", 2, sep = ""), sep = "+")) Is there a way to tell R that I want to evaluate the text, not just print it out as a character? Bryan [[alternative HTML version deleted]] __ R-help@r-project.org m

Re: [R] R calculates small numbers, where the result should be zero

2012-09-11 Thread Bryan Hanson
This is the result of how any computer program stores numbers, it's not unique to R. A slightly different question is discussed in R FAQ 7.31 but it applies to your situation. You may also enjoy the R Inferno at www.burns-stat.com/pages/Tutor/R_inferno.pdf Bryan *** Bryan H

Re: [R] How can I "declutter"/make a biplot less messy in R

2012-06-18 Thread Bryan Hanson
Don't do the biplot. Darn hard to make sense of anyway. Plot the scores and the loadings separately. You can see how to do that in this thread: http://r.789695.n4.nabble.com/How-to-plot-PCA-output-td4614732.html Good Luck. Bryan *** Bryan Hanson Professor of Chemistry & Bio

Re: [R] Reading a bunch of csv files into R

2012-05-28 Thread Bryan Hanson
frame in myList (so myList is a list of data frames). Now you can loop over myList and work on the data itself (and edit the file names as you go). Sounds like you would have to grep for phrases in the list element names (names(myList) to figure out which ones you want. You could grep and su

Re: [R] Reading a bunch of csv files into R

2012-05-28 Thread Bryan Hanson
3. Regardless of your goal, I think you are "over thinking" the solution. Let us know what you want to accomplish and we can shorten it up I'm sure. Bryan On May 28, 2012, at 11:20 AM, HJ YAN wrote: > Dear Rui, Kevin, Bryan and Nutter > > > Thank you so much for

Re: [R] Reading a bunch of csv files into R

2012-05-25 Thread Bryan Hanson
HJ, try something like this: files <- list.files(pattern = "\\.(csv|CSV)$") for (i in 1:length(files)) { temp <- read.csv(files[i], header = FALSE) ... do whatever you want with the contents of temp... } Bryan *** Bryan Hanson Profes

Re: [R] How to interpret an ANOVA result?

2012-05-15 Thread Bryan Hanson
at comes to my mind. Here it is. It might be pretty much self-explanatory, if not, try ?aov and ?TukeyHSD for details. Maybe it answers your questions about why things are significant or not. Hopefully I didn't misunderstand your questions. Good Luck. Bryan *** Bryan Hanson Pr

Re: [R] How to plot PCA output?

2012-05-08 Thread Bryan Hanson
doubt knows these things well already) but I'm also always on the lookout for good displays. Share 'em if you got 'em. Bryan i.pca <- prcomp(iris[,1:4]) library("ggplot2") # plot scores scores <- as.data.frame(i.pca$x) qplot(x = PC1, y = PC2, data = s

Re: [R] How to plot PCA output?

2012-05-07 Thread Bryan Hanson
ssion data, have you looked in Bioconductor for something that will help you? Maybe runPCA in package EMA? Bryan On May 7, 2012, at 9:57 AM, Christian Cole wrote: > Hi Bryan, > > > Many thanks for the replies. > > The data is gene expression data for 36 samples over 11k genes

Re: [R] How to plot PCA output?

2012-05-07 Thread Bryan Hanson
oadings of the 1st PC Depending upon what kind of data this is, the 1:11000 could be replaced by something more sensible. If it is spectroscopic data, then replace it with your frequency values. By the way, plot(answer) will give you the scree plot to determine how many PCs are worthy.

[R] Problem with fa.poly in "psych" package

2012-04-02 Thread Bryan J. Maloney
I am attempting to use the psych package to do EFA on a set of data that mixes dichotomous and 5-value "ordinal" variables. I tried using fa.poly with disappointing results. When I use a data subset that consists solely of dichotomous or solely of 5-value variables, fa.poly works. However, w

Re: [R] Not getting correct graphs

2012-03-31 Thread Bryan Hanson
for (i in 1:length(refid)) HTH. Bryan On Mar 31, 2012, at 6:16 AM, Sri krishna Devarayalu Balanagu wrote: > Hi all, > Can anybody debug the following programme, as I am getting some Junk graphs > in the pdf. > Please find the attached raw data file. > Thank you > Regards &g

Re: [R] Singleton pattern

2012-03-16 Thread Bryan Hanson
ers from copying it, which would be more along the lines of a singleton. You can google the archives for some great discussions of S3 vs S4 if that sounds interesting. Bryan *** Bryan Hanson Professor of Chemistry & Biochemistry DePauw University On Mar 16, 2012, at 7:47 AM, David

[R] mgcv stopped working mid-session

2012-02-25 Thread Bryan Althouse
e greatly appreciated. Thanks!   -- Bryan Althouse Graduate Student UW-Madison Center for Limnology __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] Selecting contiguous, irregularly-shaped sets of values from arrays

2012-02-06 Thread Bryan McCloskey
[i])) y_co<-which.min(abs(y-coords$NORTHING[i])) pond[i]<-depth_con[x_co,y_co] #pond of cell of interest area[i]<-length(which(depth_con==pond[i]))*400*400 #area of the pond (400m grid) depth[i]<-depth[x_co,y_co] #depth at cell of interest } Thanks

[R] Reading table data from PDF files

2012-02-03 Thread Bryan McCloskey
something more integrated that could be incorporated into R functions and scripts to handle large batches of PDFs in a more automated fashion. Has anyone used R to extract large amounts of tabular data from PDF documents? -bryan -- Bryan McCloskey, Ph.D. IT Specialist (Data Management/Int

[R] Selecting contiguous, irregularly-shaped sets of values from arrays

2012-01-31 Thread Bryan McCloskey
], because, even though they may be <0.6, they are not contiguous with the pond that x["A","v"] is in. Is there an easy way to do this for many points of interest in a large matrix? Thanks, -bryan -- Bryan McCloskey, Ph.D. U.S. Geological Survey St. Petersburg Coastal

[R] Rejection metho..d...

2011-12-17 Thread Bryan
Generate random variables which flow f(x)=20*x*(1-x)^3 , 0http://r.789695.n4.nabble.com/Rejection-metho-d-tp4208138p4208138.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailm

Re: [R] Mac shortcut for running a script

2011-12-13 Thread Bryan Hanson
For just running a single line? apple-return Bryan On Dec 13, 2011, at 10:19 AM, asafw wrote: > Hi, > > I wonder if there is a mac equivalent to ctrl+r shortcut for running a > script line.. > (I am using MAC OS X 10.7.2). I saw this post > http://r.789695.n4.nabble.com/Shor

Re: [R] Writing a function, want a string argument to define the name of the excel sheet to be called

2011-12-01 Thread Bryan Hanson
Sure, change your example as follows and then you can pass the name properly: foo <- function(x,y,NAME = "filename.csv"){ #make a matrix with x rows and y cols M <- matrix(nrow=x,ncol=y) #write the matrix write.table(M, file = NAME,append=TRUE, sep = ",") } Bryan **

Re: [R] nipals in the chemometrics package in R

2011-12-01 Thread Bryan Hanson
ve us more details about what you are doing. Bryan **** Prof. Bryan Hanson Dept of Chemistry & Biochemistry DePauw University Greencastle IN 46135 USA academic.depauw.edu/~hanson/deadpezsociety.html github.com/bryanhanson academic.depauw.edu/~hanson/UMP/Index.html On Dec 1, 2011,

[R] [R-pkgs] Package HiveR 0.1-4 Released

2011-11-21 Thread Bryan Hanson
vements in speed for 3D plots. Please do let me know if you have questions, feature requests or find problems. Thanks, Bryan **** Prof. Bryan Hanson Dept of Chemistry & Biochemistry DePauw University Greencastle IN 46135 USA academic.depauw.edu/~hanson/deadpezsociety.html github.c

Re: [R] 2^k experiment generator

2011-11-13 Thread Bryan Hanson
Check out the Task View on Experimental Design: http://cran.at.r-project.org/web/views/ExperimentalDesign.html but perhaps packages rsm or qualityTools have what you want. Bryan *** Bryan Hanson Professor of Chemistry & Biochemistry DePauw University On Nov 13, 2011, at 9:2

Re: [R] ggplot2 - regression statistics how to display on plot

2011-11-10 Thread Bryan Hanson
Jim, you can use the function appended below, which is part of package HandyStuff. If you want an example, see ?lmEqn after installing HandyStuff, available at github.com/bryanhanson/HandyStuff. Bryan lmEqn <- function(df = NULL, y = NULL, x = NULL, method = "lm", leg

[R] Package build/check OK, install looking for irrelevant function

2011-11-09 Thread Bryan Hanson
king for what I asked (is.a vs is.not.a). Perhaps unrelated. And a google search of the error message doesn't produce anything recent. I've restarted my computer and upgraded to the latest patched R. Problem remains. This was not occurring last weekend, but I'm not sure how I migh

Re: [R] plotmath: unexpected SPECIAL

2011-06-22 Thread Bryan Hanson
ten enough to become decent at it. Thanks again. Bryan On Jun 22, 2011, at 8:49 PM, David Winsemius wrote: On Jun 22, 2011, at 8:10 PM, Bryan Hanson wrote: Hello R Masters and the Rest of Us: The first of these works fine, the 2nd is accepted but too literal (the "%->%" is

[R] plotmath: unexpected SPECIAL

2011-06-22 Thread Bryan Hanson
t this? I want the two phrases connected by a right arrow. TIA, these things always elude me. Bryan *** Bryan Hanson Professor of Chemistry & Biochemistry DePauw University xlab1 <-expression(paste("Phase Angle ", phi, " Neat-O")) xlab2 <- express

Re: [R] Downloading a csv from Dropbox using the shareable link

2011-05-23 Thread Bryan Hanson
Thanks Ian, not too late at all. I need to do some testing but your idea seems like it should work. Thanks, Bryan On May 23, 2011, at 12:44 PM, Ian Gow wrote: This might be a little late, but one option for this issue might be to add a line like Sys.setenv("DROPBOX_PATH"

Re: [R] Downloading a csv from Dropbox using the shareable link

2011-05-20 Thread Bryan Hanson
hat ever hits the "PersonX" level I suppose it will work. I'll try it out. Further suggestions welcome. Thanks, Bryan On May 20, 2011, at 8:24 PM, Patrick Connolly wrote: On Fri, 20-May-2011 at 02:05PM -0400, Bryan Hanson wrote: Hello Kindred R Spirits... I'm try

[R] Downloading a csv from Dropbox using the shareable link

2011-05-20 Thread Bryan Hanson
oing this. Thanks for any suggestions. Bryan **** Prof. Bryan Hanson Dept of Chemistry & Biochemistry DePauw University Greencastle IN 46135 USA __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

Re: [R] (no subject)

2011-04-17 Thread Bryan Hanson
loaded properly, and I can manually do everything in my .Rprofile and my configuration is as originally intended. Thanks, Bryan Console Output: Loading required package: reshape Loading required package: plyr Attaching package: 'reshape' The following object(s) are masked from &#x

[R] [R-pkgs] Package ChemoSpec 1.46 Now Available on CRAN

2011-03-30 Thread Bryan Hanson
round in R. A vignette illustrating typical operations is available. Naturally, I'd be glad to hear from users with suggestions and bug reports. Bryan ** Bryan Hanson Prof. of Chemistry & Biochemistry DePauw University Greencastle Indiana USA [[alternative HTML v

[R] [R-pkgs] Package FuncMap Now Available on CRAN

2011-03-30 Thread Bryan Hanson
ferences between the structure of the two popular plotting packages lattice and ggplot2. Bryan ** Bryan Hanson Prof. of Chemistry & Biochemistry DePauw University Greencastle Indiana USA require(mvbutils) require(lattice) require(ggplot2) require(FuncMap) # Use Mark Bravington's fo

[R] removing data randomly based on previous observations

2011-03-23 Thread Bryan Danson
20 12/1/2010 1 short 1 legalWhite grunt 140 1 0 NA Number 1 should have a s_bait quantity of 4, and number 2 should have a s_bait of 1 and a l_bait of 1. Any answers or ideas or places to look for answers are greatly appreciated. Thank you Bryan

Re: [R] robust estimation

2011-03-11 Thread Bryan Hanson
Willi, try this: install.packages("sos") library("sos") findFn("L1 norm regression") I find 34 hits but you'd have to look them over to see if any of them are the sort of thing you want. HTH, Bryan Prof. Bryan Hanson Dept of Chemistry &am

Re: [R] The L Word

2011-02-24 Thread Bryan Hanson
he concept mentioned. Of course, it could be somewhere else. But, the concept is pretty straightfoward. Bryan **** Prof. Bryan Hanson Dept of Chemistry & Biochemistry DePauw University 602 S. College Ave Greencastle IN 46135 USA On Feb 24, 2011, at 3:13 AM, Tal Galili wrote:

Re: [R] question regarding basic stat question

2011-02-22 Thread Bryan Hanson
Daniel, how is the data stored? The answer to your question may be as simple as > df <- read.csv("filename.csv") > summary(df) See ?read.csv for info on reading various file formats. HTH, Bryan **** Prof. Bryan Hanson Dept of Chemistry & Biochemistry

Re: [R] predict and arima

2011-02-09 Thread bryan
Indeed, there was a bug ... my current play code looks like this ... get.best.arima <- function(x.ts, maxord=c(3,3,3,3)) { # function based on 'Introductory Time Series with R' # ... try and fit the best ARIMA(p,d,q,P,D,Q) model # using all permutations from 0 to max

Re: [R] Function to locate points in 3d octants or points on twoaxes

2011-02-02 Thread Bryan Hanson
programs/languages, I think I may have to "grow my own" and I'll need the suggestions offered by you and Petr. Thanks, Bryan On Feb 2, 2011, at 11:55 AM, Daniel Nordlund wrote: -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.or

[R] General Solution to Drawing a Spline Curve in 3d?

2011-02-02 Thread Bryan Hanson
curve or xspline. What I'm trying to do is related to the idea of great circles, as implemented in package geosphere, but the curves I'd like to draw are not on the surface of a sphere nor are they parts of a circle. Thanks for any suggestions! Bryan *** Bryan Hans

Re: [R] Function to locate points in 3d octants or points on two axes

2011-02-02 Thread Bryan Hanson
Thanks Petr, the sign function will be of help. I was not aware of it. Bryan On Feb 2, 2011, at 3:21 AM, Petr Savicky wrote: On Tue, Feb 01, 2011 at 08:30:22PM -0500, Bryan Hanson wrote: [Sorry, resending with a proper subject line!] Hi Guru's... I have a set of points that ma

[R] Function to locate points in 3d octants or points on two axes

2011-02-01 Thread Bryan Hanson
octants a point lies in. Seems like the cross product might be part of this, but I'm a little rusty on how to apply it. I hope this is clear enough, and someone has a suggestion to point me in the right direction. Before writing my own klunky version, I thought I'd

[R] Function to

2011-02-01 Thread Bryan Hanson
ss product might be part of this, but I'm a little rusty on how to apply it. I hope this is clear enough, and someone has a suggestion to point me in the right direction. Before writing my own klunky version, I thought I'd ask. Thanks, Bryan **** Prof. Bryan Hans

Re: [R] Parsing a Simple Chemical Formula

2010-12-26 Thread Bryan Hanson
hings to read through from the various recommendations. Thanks again, Bryan On Dec 26, 2010, at 10:21 PM, David Winsemius wrote: On Dec 26, 2010, at 8:28 PM, Bryan Hanson wrote: Thanks Spencer, I'll definitely have a look at this package and it's vignettes. I believe I have looked a

Re: [R] Parsing a Simple Chemical Formula

2010-12-26 Thread Bryan Hanson
Thanks Spencer, I'll definitely have a look at this package and it's vignettes. I believe I have looked at it before, but didn't catch it on this particular search. Bryan On Dec 26, 2010, at 8:16 PM, Spencer Graves wrote: p.s. help(pac=CHNOSZ) reveals that this package

Re: [R] Parsing a Simple Chemical Formula

2010-12-26 Thread Bryan Hanson
R! A big thanks to each of you! Bryan On Dec 26, 2010, at 7:26 PM, Gabor Grothendieck wrote: On Sun, Dec 26, 2010 at 6:29 PM, Bryan Hanson wrote: Hello R Folks... I've been looking around the 'net and I see many complex solutions in various languages to this question, but I have

[R] Parsing a Simple Chemical Formula

2010-12-26 Thread Bryan Hanson
t a way to convert "form" into a list or data frame which I can then do the math on. Here's hoping this is a simple issue for more experienced R users! TIA, Bryan *** Bryan Hanson Professor of Chemistry & Biochemistry _

Re: [R] Forcing standard notation in Sweave tables

2010-12-13 Thread Bryan Hanson
Take a look at package xtable. Bryan On 12/13/10 7:31 PM, "Chris Fonnesbeck" wrote: > I'm hoping someone with some experience generating tables in Sweave will be > able to solve this problem for me. I'm experiencing some inconsistency with > the way floating point

Re: [R] How to change leaf color by group in hclust plot or how to install A2R package in windows?

2010-12-13 Thread Bryan Hanson
An example is described here that you can adapt: http://r.789695.n4.nabble.com/coloring-leaves-in-a-hclust-or-dendrogram-plot -tt795496.html#a795497 HTH. Bryan * Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA On 12/13/10 12:54 PM, &qu

Re: [R] Error in calcCurveGrob(x, x$debug) : End points must not be identical

2010-12-05 Thread Bryan Hanson
ck now. The problem with the viewport being wrong was limited to the toy example I made. I'll send you a graphic directly so you can see what I'm working on. Thanks again for the correct "test" for identical endpoints. Should have been able to see that one myself! Bryan

[R] Error in calcCurveGrob(x, x$debug) : End points must not be identical

2010-12-04 Thread Bryan Hanson
sed to the function are definitely not identical. Any assistance appreciated! Bryan tst <- structure(list(x.st = c(-1, -2, -3, -1, -1.5, -3, -1.5, -1.5, -8, -1, -1.5, -1, -1.5, -2, -1.5, -2, -1, -1.5, -2), y.st = c(1.73205080756888, 3.46410161513776, 5.19615242270663, 1.73205080756888, 2.5

Re: [R] Replacing several rows of a matrix at once

2010-11-28 Thread Bryan Hanson
Thanks to Michael, Josh and Jorge - Problem fixed. Michael's suggestion was what I needed, but I wouldn't have ever conceptualized it that way, and Jorge showed me how simple the function could be (at this hour, I was imagining it would be more work). Thanks guys. Bryan On 11/28/1

[R] Replacing several rows of a matrix at once

2010-11-28 Thread Bryan Hanson
mn and recycles vec. What I want to do is replace multiple rows simultaneously at once. I suppose I can write a function, but this seems pretty fundamental so I feel I must be missing some obvious alternative. I'm feeling like I'm in the Inferno! TIA. Bryan * Bryan Hans

  1   2   3   >