[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-23 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

Re: [R] Export R output in Excel

2016-12-29 Thread Bryan Mac
to 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 <r.tur...@auckland.ac.nz> wrote: > > On 29/12/16 10:45, Bryan Mac wrote: >> Hi, >> >> How do

[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

[R] Filtering out rows

2016-11-02 Thread Bryan Mac
%{plot(cnavgpi,npi_mvmt); abline(lm(npi_mvmt~cnavgpi,data=df),lwd=2,col=2,lty=1); abline(lmsreg(npi_mvmt~cnavgpi,data=df),lwd=2, col=3,lty=1); legend('topright',c('OLS','LMS'),lty=c(1,1),lwd=c(2.5,2.5), col=c(2,3)); title (npi_mvmt~cnavgpi) } plot_cnavgpi_npi_mvmt Best, Bryan Mac

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 <ruipbarra...@sapo.pt> wrote: > > It me

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 <e...@enricoschumann.net> wrote: > > On Sat, 08 Oct 2016, Brya

[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
; 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, 2016, at 5:37 AM, ruipbarra...@sapo.pt wro

Re: [R] Bootstrapping in R

2016-10-01 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
(list) #> 1 <S4:dgCMatrix, CsparseMatrix, dsparseMatrix, generalMatrix, dCsparseMatrix, #> 2 <S4:dgCMatrix, CsparseMatrix, dsparseMatrix, generalMatrix, dCsparseMatrix, Thanks, Jenny Jennifer Bryan Associate Professor Department of Statistics and the Mich

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

Re: [R] Shortest connected path in a matrix

2014-03-05 Thread McCloskey, Bryan
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 bmcclos...@usgs.govwrote: I have a binary rectangular T/F matrix; I need to be able to calculate

[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
/ 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 lorenzo.ise...@gmail.com wrote: Dear All, I use several R libraries (ggplot2, igraph etc

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 reith_will...@bah.com 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 context: http://r

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, 2013, at 10:50

Re: [R] Issue with Imports in NAMESPACE

2013-06-25 Thread Bryan Hanson
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 murdoch.dun...@gmail.com wrote: On 25/06/2013 7:14 AM, Søren Højsgaard wrote: Dear Duncan, Excellent, thanks! Maybe this is worth

[R] Proper way to implement package internal functions

2013-06-12 Thread Bryan Hanson
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/listinfo/r-help PLEASE do read the posting

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

2013-06-12 Thread Bryan Hanson
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 murdoch.dun...@gmail.com wrote: On 12/06/2013 10:44 AM, Bryan Hanson wrote

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

2013-06-12 Thread Bryan Hanson
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 the posting guide http://www.R-project.org/posting

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

2013-06-12 Thread Bryan Hanson
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 say everything! Thanks, Bryan On Jun 12, 2013, at 2:57 PM, Ken Knonlauch ken.knobla...@inserm.fr wrote: Bryan Hanson hanson

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

2013-06-12 Thread Bryan Hanson
they 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 ken.knobla...@inserm.fr wrote: You seem to treating the input values as xyY when they should be XYZ (case matters). So, I would do

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

2013-06-12 Thread Bryan Hanson
, 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 rolf.tur...@xtra.co.nz wrote

[R] rgl crashes after one successful draw

2013-05-29 Thread Bryan Hanson
. 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/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices

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 rip...@stats.ox.ac.uk 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

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 r24...@mun.ca wrote: Hi everyone, I'm having some difficulty getting the linebreaks I want with the cat

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 eder...@hotmail.com wrote: Hello, Thanks for replying me! I

Re: [R] plotting CIE chromaticity diagram?

2013-03-18 Thread Bryan Hanson
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/Index.html On Mar 18

Re: [R] plotting CIE chromaticity diagram?

2013-03-18 Thread Bryan Hanson
. Bryan On Mar 18, 2013, at 7:08 AM, Ken Knoblauch ken.knobla...@inserm.fr wrote: ishi soichi soichi777 at 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 need this plot in color

Re: [R] OrgMassSpecR peak area issue

2013-03-18 Thread Bryan Hanson
] - 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 PM, Christopher

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 __ R-help@r-project.org

Re: [R] Breaking out of multiple loops

2012-12-19 Thread McCloskey, Bryan
, 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 murdoch.dun...@gmail.com wrote: On 12-12-18 1:02 PM, McCloskey, Bryan wrote: Hey all, I'm currently working through the problems

[R] Breaking out of multiple loops

2012-12-18 Thread McCloskey, Bryan
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://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[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

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

2012-12-02 Thread Jack Bryan
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 argument above from the install.packages() call. Dennis On Sun, Dec 2, 2012 at 4:00 PM, Jack Bryan dtustud...@hotmail.com wrote: Hi, I am trying to install

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

2012-11-28 Thread Jack Bryan
...@hotmail.com On Nov 28, 2012, at 4:13 AM, Jack Bryan dtustud...@hotmail.com wrote: Thanks ! I solved it. Don't you mean David did? I run sink() to get the output on command line. No, not really -- you run sink to 'turn off' an earlier call to sink which

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

2012-11-28 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) # SWX.RET is a data file that has been loaded. But, I cannot see the expected output. I have

[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

[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

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

2012-11-27 Thread Jack Bryan
, 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 Bryan dtustud...@hotmail.com wrote: Hi, I am running R on Win 7. I got error for listDescription(fPortfolio) Error: could not find function

[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 commends cannot show the expected output

2012-11-27 Thread Jack Bryan
? 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) # SWX.RET is a data file that has been loaded. But, I cannot see the expected output. I have deselected buffered

[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

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

2012-09-17 Thread Bryan Keller
= +)) 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 mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

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 smartpink...@yahoo.com 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: Bryan Keller bsbkel...@gmail.com To: r-help@r

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 Hanson

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 Biochemistry

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

2012-05-28 Thread Bryan Hanson
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 your very helpful hints! Now I have

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

2012-05-28 Thread Bryan Hanson
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 subset myList and basically turn it into related chunks of the original. HTH. Bryan On May 28, 2012, at 12:27 PM, HJ YAN wrote: Dear Bryan

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 Professor of Chemistry Biochemistry

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

2012-05-15 Thread Bryan Hanson
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 Professor of Chemistry

Re: [R] How to plot PCA output?

2012-05-08 Thread Bryan Hanson
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 = scores, geom = point, col = iris[,5]) # Loadings on PC1 (few variables) loadings - as.data.frame(i.pca

Re: [R] How to plot PCA output?

2012-05-07 Thread Bryan Hanson
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. Good luck. Bryan

Re: [R] How to plot PCA output?

2012-05-07 Thread Bryan Hanson
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. I see that I can plot PC1

[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,

Re: [R] Not getting correct graphs

2012-03-31 Thread Bryan Hanson
)) 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 Rayalu library(ggplot2) setwd(D:\\General Check

Re: [R] Singleton pattern

2012-03-16 Thread Bryan Hanson
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 Cassany wrote: Hi all, I know it may not have much sense

[R] mgcv stopped working mid-session

2012-02-25 Thread Bryan Althouse
!   -- 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 and provide commented, minimal

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

2012-02-06 Thread Bryan McCloskey
])) 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 for the tip! -bryan -- Bryan McCloskey, Ph.D. IT Specialist (Data

[R] Reading table data from PDF files

2012-02-03 Thread Bryan McCloskey
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/Internet) U.S

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

2012-01-31 Thread Bryan McCloskey
0.2065765* 0.1623669* 1.3598283 0.3742821 But I would _not_ like to select any of the values in x[,z], 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

[R] Rejection metho..d...

2011-12-17 Thread Bryan
Generate random variables which flow f(x)=20*x*(1-x)^3 , 0x1 using rejection method with .g(x)=1, 0x1 how??? -- View this message in context: http://r.789695.n4.nabble.com/Rejection-metho-d-tp4208138p4208138.html Sent from the R help mailing list archive at Nabble.com.

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/Shortcut-to-run-script

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

2011-12-01 Thread Bryan Hanson
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, at 6:51 AM, zz dd

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 Prof. Bryan Hanson

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

2011-11-21 Thread Bryan Hanson
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.com/bryanhanson

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:25 AM

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.loc = c(0, 0

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

2011-11-09 Thread Bryan Hanson
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 might have caused it. Session info further down. Any help appreciated. Bryan *** Bryan Hanson Professor

[R] plotmath: unexpected SPECIAL

2011-06-22 Thread Bryan Hanson
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 - expression(paste(treatment: low stress, high stress, sep = %-%)) xlab3

Re: [R] plotmath: unexpected SPECIAL

2011-06-22 Thread Bryan Hanson
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 shown in the plot label

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 = /Users/PersonA

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

2011-05-20 Thread Bryan Hanson
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 do read the posting guide http

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

2011-05-20 Thread Bryan Hanson
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 trying to get a file (csv) from Dropbox using their shareable link concept

Re: [R] (no subject)

2011-04-17 Thread Bryan Hanson
is 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 'package:plyr

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

2011-03-30 Thread Bryan Hanson
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 foodweb to create the call list

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

2011-03-30 Thread Bryan Hanson
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 version deleted

[R] removing data randomly based on previous observations

2011-03-23 Thread Bryan Danson
Bryan - Bryan Danson, M.Sc. Biological Scientist I FWC - Marathon, FL [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

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 Biochemistry DePauw University 602 S

Re: [R] The L Word

2011-02-24 Thread Bryan Hanson
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: Thank you all

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 DePauw University 602 S. College

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

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 may lie

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

2011-02-02 Thread Bryan Hanson
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 Hanson Professor

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.org ] On Behalf

[R] Function to

2011-02-01 Thread Bryan Hanson
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 Hanson Dept of Chemistry

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

2011-02-01 Thread Bryan Hanson
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 ask. Thanks, Bryan

[R] Parsing a Simple Chemical Formula

2010-12-26 Thread Bryan Hanson
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 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Parsing a Simple Chemical Formula

2010-12-26 Thread Bryan Hanson
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 han...@depauw.edu 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

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 has 3 vignettes

Re: [R] Parsing a Simple Chemical Formula

2010-12-26 Thread Bryan Hanson
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 at it before, but didn't catch

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, Soyeon

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 fonnesb...@gmail.com 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 numbers

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

2010-12-05 Thread Bryan Hanson
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 * Bryan Hanson Professor of Chemistry

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

2010-12-04 Thread Bryan Hanson
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.59807621135332

[R] Replacing several rows of a matrix at once

2010-11-28 Thread Bryan Hanson
. 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 Hanson Professor of Chemistry

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/10 11:03 PM

  1   2   3   >