Re: [R] Converting decimal to binary in R

2013-12-16 Thread Earl F Glynn
] intToBin(65536) [1] 1 Earl F Glynn Principal Programmer/Analyst Center for Health Insights • University of Missouri – Kansas City __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] How can I find nonstandard or control characters in a large file?

2013-12-10 Thread Earl F Glynn
and use sub/gsub or other tools to remove or alter problem characters. efg Earl F Glynn UMKC School of Medicine Center for Health Insights __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] Fortran and long integers

2011-02-06 Thread Earl F Glynn
Fortran compiler: http://gcc.gnu.org/onlinedocs/gfortran/Old_002dstyle-kind-specifications.html#Old_002dstyle-kind-specifications efg Earl F Glynn Overland Park, KS __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Colours for 3-way probabilities

2010-12-18 Thread Earl F Glynn
the hue map of an RGB image: http://www.efg2.com/Lab/Graphics/Colors/ShowImage.htm See the Color Chart page above for a brief example of using R's rgb2hsv function to convert from RGB to HSV. efg Earl F Glynn Overland Park, KS __ R-help@r-project.org

Re: [R] Replacing a period in a string

2010-12-02 Thread Earl F Glynn
What about this? Remove the periods and change the , to a .: s - 12.084.547,17 x - as.numeric(gsub(',','\\.', gsub('\\.','',s))) options(digits=10) x Escaping periods is not-so-obvious. efg Earl F Glynn Overland Park, KS Luis Felipe Parra wrote: Hello I have a sting of the form

[R] Help troubleshooting silent failure reading huge file with read.delim

2010-10-06 Thread Earl F. Glynn
-related parameter that I should adjust that might explain the observed details above? Shouldn't read.delim catch this failure instead of being silent about dropping data? Thanks for any help with this. Earl F Glynn Overland Park, KS __ R-help@r

Re: [R] Globbing Files in R

2008-12-22 Thread Earl F Glynn
(ProcessList)) { filename - ProcessList[i] . . . } efg Earl F Glynn Overland Park, KS __ 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

[R] Anyone using R to study Twitter social networks?

2008-12-01 Thread Earl F Glynn
. Earl F. Glynn Overland Park, KS __ 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, self-contained, reproducible

Re: [R] Convert Binary to Decimal

2008-10-06 Thread Earl F. Glynn
in the way of elegant solutions. Since you all were such a help last time, I figured I'd ask you again. Try a Google search for: Marc Schwartz bin2dec efg Earl F Glynn Stowers Institute for Medical Research __ R-help@r-project.org mailing list https

Re: [R] Double integration - Gauss Quadrature

2008-09-29 Thread Earl F. Glynn
evaluations, too. efg Earl F Glynn Scientific Programmer Stowers Institute for Medical Research begin 666 clip_image002.gif M1TE.#EA% $K`'`,2'^E-O9G1W87)E.B!-:6-R;[EMAIL PROTECTED]:6-E`'Y M! $`+ (`!0`/`2(`@ +_A(^IR^V/[EMAIL PROTECTED]@PUEE MB(JCX3EKL?;-I[R;0/E\%\5_O=2$'69XA,BD*YG)*6)(8+Z

Re: [R] Double integration - Gauss Quadrature

2008-09-29 Thread Earl F. Glynn
, 0.0, 2*pi, nodes, weights) efg Earl F Glynn __ 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, self-contained

Re: [R] continuous coloring of a polygon

2008-08-15 Thread Earl F. Glynn
) polygon(c(x.outer, rev(x.inner), x.outer[1] ), c(y.outer, rev(y.inner), y.outer[1] ) ) efg Earl F Glynn Stowers Institute for Medical Reseach __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Colours in R

2008-07-17 Thread Earl F. Glynn
an R color chart and how to make one: http://research.stowers-institute.org/efg/R/Color/Chart/index.htm In particular, pp. 2-8 of this PDF shows the color name, hex value, and separate decimal RGB components: http://research.stowers-institute.org/efg/R/Color/Chart/ColorChart.pdf efg Earl F Glynn

Re: [R] Function to verify existence of an R object

2008-07-16 Thread Earl F. Glynn
Judith Flores [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there a function to check if an object exists? ?exists efg Earl F Glynn Stowers Institute for Medical Research __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Drawing a colour wheel - bug in hcl?

2008-07-07 Thread Earl F. Glynn
in the same code example using the hcl function is not recommended and is confusing. efg Earl F Glynn Bioinformatics Stowers Institute for Medical Research __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Drawing a colour wheel - bug in hcl?

2008-07-07 Thread Earl F. Glynn
hadley wickham [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, Jul 7, 2008 at 1:05 PM, Earl F. Glynn [EMAIL PROTECTED] wrote: hadley wickham [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well, I do have fixup = FALSE, which the documentation indicates should

Re: [R] Comparison between R and MATLAB

2008-06-20 Thread Earl F. Glynn
scientific research institute and the Mathworks sells us the same license as for-profit businesses. Only degree-granting universities are eligible for academic pricing apparently. efg Earl F Glynn Bioinformatics Stowers Institute for Medical Research

Re: [R] hashmap in R

2008-05-08 Thread Earl F. Glynn
c d -1.4122868 1.3588267 -0.5499391 -0.3581889 x[d] d -0.3581889 efg Earl F Glynn Bioinformatics Stowers Institute for Medical Research __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Two datasets on one histogram

2008-04-02 Thread Earl F. Glynn
can add jitter() to rug() but with 1000 obs not much difference rug(x1, col=1, ticksize=0.01, line=2.5) rug(x2, col=2, ticksize=0.01, line=3.0) rug(x3, col=3, ticksize=0.01, line=3.5) efg Earl F. Glynn Bioinformatics Stowers Institute for Medical Research

Re: [R] Nonlinear equation

2008-04-02 Thread Earl F. Glynn
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear R Users, I'm trying to find function that allow me to solve one nonlinear equation. Functions that I found are good for optimization problems. Perhaps try nlm or optim functions. Earl F. Glynn Bioinformatics Stowers Institute

Re: [R] reading Excel file

2008-03-25 Thread Earl F. Glynn
-04 3.14 NA NA 2 class(d$Date) [1] POSIXt POSIXct efg Earl F. Glynn Bioinformatics Stowers Institute for Medical Research __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] History of R

2008-02-19 Thread Earl F. Glynn
casually looked at Octave a few times, but there was no strong attraction to use it. Some early tests showed no problems with computations using Octave, but showed some annoying issues with graphics that we didn't want to deal with. efg Earl F. Glynn Scientific Programmer Stowers Institute

Re: [R] R programming style

2008-02-11 Thread Earl F. Glynn
in this E-mail list the last time I suggested such mnemonics instead of magic numbers. efg Earl F. Glynn Bioinformatics Stowers Institute for Medical Research __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] heatmap and legend

2008-01-29 Thread Earl F. Glynn
Bioconductor package efg Earl F. Glynn Bioinformatics Stowers Institute for Medical Research __ 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] Great looking plot - but what does it mean?

2008-01-07 Thread Earl F. Glynn
points. efg Earl F. Glynn Stowers Institute for Medical Research __ 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] about col in heatmap.2

2007-12-03 Thread Earl F. Glynn
/Bioinformatics.FunctionalGenomics.html This looks like the MatLab palette that's in tim.colors: library(fields) # tim.colors: Matlab-like color palette N - 100 par(lend=square) plot(rep(1,N), type=h, col=tim.colors(N), lwd=6, ylim=c(0,1)) efg Earl F. Glynn Scientific Programmer Stowers Institute for Medical

Re: [R] Discrimination of almost-random time series

2007-11-13 Thread Earl F. Glynn
a package out of my Lomb-Scargle code, but perhaps the R code here will get you started: http://research.stowers-institute.org/efg/2005/LombScargle/R/index.htm Based on this paper: http://bioinformatics.oxfordjournals.org/cgi/content/abstract/bti789?ijkey=fD5aAeldrkzz765keytype=ref efg Earl F

Re: [R] question about running out of memory on R -- memory.limit change in R 2.6.0?

2007-11-06 Thread Earl F. Glynn
of 3145728000 wasn't strictly correct? efg Earl F. Glynn Scientific Programmer Stowers Institute __ 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] Don't understand write.csv default: Why is column name forcolumn of row names blank?

2007-11-01 Thread Earl F. Glynn
Gabor Grothendieck [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Would this be good enough: # example using builtin BOD data frame write.csv(cbind(Z = row.names(BOD), BOD), row.names = FALSE) Thanks, Gabor, I like your solution better than mine. But, I still don't understand

Re: [R] Import from excel 2007

2007-10-17 Thread Earl F. Glynn
Marc Schwartz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This might be a question along the lines of is it plugged in?, but do you have the Office 2007 version of the ODBC drivers installed? If not, then your results would not be a surprise. If you do, then we should get