Re: [R] ggplot2: Get the regression line with 95% confidence bands

2023-12-12 Thread Robert Baer
coord_cartesian also seems to work for y, and including the breaks = .  How about: df=data.frame(year= c(2012,2015,2018,2022),   score=c(495,493, 495, 474)) ggplot(df, aes(x = year, y = score)) +   geom_point() +   geom_smooth(method = "lm", formula = y ~ x) +   labs(title =

Re: [R] back tick names with predict function

2023-12-03 Thread Robert Baer
On 12/1/2023 11:47 AM, peter dalgaard wrote: Also, and possibly more constructively, when you get an error like CI.c = predict(mod2, data.frame( `plant-density` = x), interval = 'c') # fail Error in eval(predvars, data, env) : object 'plant-density' not found you should check your

Re: [R] back tick names with predict function

2023-11-30 Thread Robert Baer
Barradas escreveu: Às 17:38 de 30/11/2023, Robert Baer escreveu: I am having trouble using back ticks with the R extractor function 'predict' and an lm() model. I'm trying too construct some nice vectors that can be used for plotting the two types of regression intervals.  I think it works

[R] back tick names with predict function

2023-11-30 Thread Robert Baer
I am having trouble using back ticks with the R extractor function 'predict' and an lm() model.  I'm trying too construct some nice vectors that can be used for plotting the two types of regression intervals.  I think it works with normal column heading names but it fails when I have "special"

Re: [R] Print hypothesis warning- Car package

2023-09-17 Thread Robert Baer
Thanks John. Appreciate the insights. On 9/17/2023 9:43 AM, John Fox wrote: Dear Robert, Anova() calls linearHypothesis(), also in the car package, to compute sums of squares and df, supplying appropriate hypothesis matrices. linearHypothesis() usually tries to express the hypothesis matrix

[R] Print hypothesis warning- Car package

2023-09-16 Thread Robert Baer
When doing Anova using the car package,  I get a print warning that is unexpected.  It seemingly involves have my flow cytometry factor levels named CD271+ and CD171-.  But I am not sure this warning should be intended behavior.  Any explanation about whether I'm doing something wrong? Why

Re: [R] Book Recommendation

2023-09-04 Thread Robert Baer
This is a great find for those of us lurking on this thread. Thanks for sharing Greg (and of course Paul). On 8/30/2023 3:52 PM, Greg Snow wrote: Stephen, I see lots of answers with packages and resources, but not book recommendations. I have used Introduction to Data Technologies by Paul

Re: [R] Technical Help Request for "Version Differences" (i.e., CYTOFKIT package)

2023-08-10 Thread Robert Baer
GIven that Cytofkit is removed from Bioconductor, and you seem new to everything, I would suggest like others already have that you install the most recent version of R for Windows https://cran.r-project.org/bin/windows/base/ and seek a more up-to-date package. For flow cytometry, I would

Re: [R] Format printing with R

2022-12-11 Thread Robert Baer
And you will probably want to read the details of the  ?round help, so you understand how it handles 5 rounding.  It is a little more complicated than some of us learned in school. On 11/22/2022 4:24 AM, Steven T. Yen wrote: Thanks to all. And yes, Ivan, round() did it: > dput(head(Mean))

Re: [R] Why R >= 4.1 warns about installing Rtools on Windows?

2022-09-28 Thread Robert Baer
I don't know for sure, but I imagine this warning is for"old users" that have been using RTools for some of their packages and need to know that the old RTools no longer works with the latest builds.  It certainly was helpful to me.  I understand how frightening it could be to new users, but

Re: [R] viewing, editing and saving an RDATA file

2020-07-22 Thread Robert Baer
You may misunderstand how RData files work.  Note that RData files are not necessarily JUST a single variable unless they were explicitly written to store a single variable only. If you save a single variable (a dataframe, for example) named 'mydata' with save(mydata, file =

Re: [R] saving an R script

2019-05-10 Thread Robert Baer
I agree that an editor or a development environment like RStudio is the best answer, but perhaps savehistory() function is what you are looking for. On 5/10/2019 8:32 AM, Doran, Harold wrote: David Most of us use an editor of some kind to write our code. I use Notepad++ but there are many

Re: [R] Finding unique terms

2018-10-15 Thread Robert Baer
On 10/11/2018 5:12 PM, roslinazairimah zakaria wrote: Dear r-users, I have this data: structure(list(STUDENT_ID = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L), .Label = c("AA15285", "AA15286"), class = "factor"), COURSE_CODE = structure(c(1L, 2L, 5L, 6L, 7L, 8L, 2L, 3L,

Re: [R] Finding unique terms

2018-10-15 Thread Robert Baer
Dear r-users, I have this data: structure(list(STUDENT_ID = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L), .Label = c("AA15285", "AA15286"), class = "factor"), COURSE_CODE = structure(c(1L, 2L, 5L, 6L, 7L, 8L, 2L, 3L, 4L, 5L, 6L), .Label = c("BAA1113", "BAA1322",

Re: [R] Fortune candidate

2018-01-29 Thread Robert Baer
On 1/27/2018 12:16 PM, David Winsemius wrote: John (to a serial querulant): ...but with such a sweeping lack of information from you, don't congratulate yourself if you get a helpful answer. It wasn't your fault. David Winsemius Alameda, CA, USA Second that nomination! 'Any

Re: [R] Facing problem in installing the package named "methyAnalysis"

2017-12-29 Thread Robert Baer
Bioconductor help is here: https://www.bioconductor.org/help/ On 12/29/2017 6:00 AM, Pijush Das wrote: Thank you Michael Dewey. Can you please send me the email id for Bioconductor. regards Pijush On Fri, Dec 29, 2017 at 5:20 PM, Michael Dewey wrote: Dear

Re: [R] Converting SAS Code

2017-09-30 Thread Robert Baer
On 9/29/2017 3:37 PM, Rolf Turner wrote: > On 30/09/17 07:45, jlu...@ria.buffalo.edu wrote: > > > >> >> The conceptual paradigm for R is only marginally commensurate with >> that of >> standard statistical software. >> You must immerse yourself in R to become proficient. > > Fortune

Re: [R] PROC MIXED RANDOM equivalence in R nlme

2017-08-11 Thread Robert Baer
On 8/10/2017 8:34 AM, Dennis F. Kahlbaum wrote: -- snip -- I don't have real help, but I'll remind you that R is case sensitive, and it looks like that will be at least one problem in the solution your are working on below: lme not LME data not DATA random = RANDOM

Re: [R] How can I make the legend in ggplot2 the same height as my plot?

2017-07-06 Thread Robert Baer
Don't know what your data looks like, but you might try: p <- Scenario1+guides(fill = guide_colorbar(bar width = 1.5, barheight = unit(10, "mm"))) print(p) On 7/5/2017 5:13 PM, Kristi Glover wrote: Hi R Users, I tried to increase the legend height in ggplot2, but it did not respond at

Re: [R] MODISTools Help

2017-06-23 Thread Robert Baer
On 6/22/2017 7:05 PM, Caroline wrote: ##MODISTools example library(MODISTools) library(lubridate) setwd('~/Documents/Modis data') #MODISTools with buffalo data ###Read in data rename for easier coding tbdata <- read.csv('~/Desktop/All TB data for EVI, NDVI.csv') Since this dataset is

Re: [R] creat contingency tables with fixed row and column margins

2017-05-29 Thread Robert Baer
getAnywhere(fisher.test) probably has some clues On 5/27/2017 2:49 PM, li li wrote: Hi all, Is there an R function that can be used to enumerate all the contingency tables with fixed row and column margins. For example, can we list all 3 by 3 tables with row margins 3,6,6 and column margins

Re: [R] Need help for Netbeans R plugin development

2017-05-29 Thread Robert Baer
rJava and Rserve might be architectures of interest. On 5/28/2017 1:12 PM, Peter Cheung wrote: Hi My name is Peter, developing R plugin for netbeans, it is entirely in Java. What is the best way to interact Java with R and how can I hook some R functions such as plot()? so everytime

Re: [R] Fwd: Cannot generate a *.docx file

2017-05-14 Thread Robert Baer
I don't know what the error is, but your code snippet worked fine for me on Windows 10, R 3.4.0-patched. I noticed that rJava is a dependency. Don't know that the patch or Java updates I installed today could be a difference, but you might update packages, patched version, Java, etc and

Re: [R] display double dot over character in plotmath?

2017-05-14 Thread Robert Baer
I got this but the spacing is all wrong and plotmath() seems to have no way to do kernning or overprinting. I'm surprised Paul didn't generalize the hat()-type functionality. ggplot(data, aes(x=X)) + geom_line(aes(y = Z), size=0.43) + xlab(expression(atop("\U0308",Omega))) ggplot(data,

[R] update.packages() error R 3.4.0

2017-04-28 Thread Robert Baer
Is there an easy work-around for the update.packages error I'm getting on Windows 10 with R 3.4.0? > update.packages() --- Please select a CRAN mirror for use in this session --- foreign : Version 0.8-67 installed in C:/Program Files/R/R-3.4.0/library Version 0.8-68 available at

Re: [R] Presentation Quality Tables, e.g., Ten rows, Five columns, with nice headers

2017-03-26 Thread Robert Baer
Quite nice Jim. A little par() magic, some well thought plot window dimensions, and good to go. I wasn't looking, but now that I've seen it, I can imagine uses. Bruce - see also https://cran.r-project.org/web/packages/xtable/vignettes/xtableGallery.pdf On 3/26/2017 4:28 PM, Jim Lemon

Re: [R] List raster files

2017-03-05 Thread Robert Baer
On 3/4/2017 7:54 AM, Tomás Pérez C. wrote: I am working with raster images of modis of the satellites aqua and terra and I need to combine the images by its day and year (originally in Julian day). However, for the earth I have 6031 images and for aqua 5277. I want to know how to create an

Re: [R] Run a Python code from R

2016-11-19 Thread Robert Baer
From https://www.r-bloggers.com/rpithon-vs-rpython/ "Similar to rPython, the rPithon package (http://rpithon.r-forge.r-project.org) allows users to execute Python code from R and exchange the data between Python and R. However, the underlying

Re: [R] convert matrix

2016-10-30 Thread Robert Baer
On 10/29/2016 11:19 AM, Elham - via R-help wrote: Dear Madam / Sir,I saw this function for "Convert to matrix as it is that you wanted" > test2<-as.matrix(test1) colnames(test2)<-NULL genelist<-c("Fkh2","Swi5","Sic1") rownames(test2)<-genelist test2 # [,1] [,2] [,3] #Fkh2 0.141 0.242

Re: [R] remove a "corrupted file" after using download.file() with R on Windows 7

2016-09-29 Thread Robert Baer
On 9/28/2016 11:32 PM, Fabien Tarrade wrote: Hi there, Sometime download.file() failed to download the file and I would like to remove the correspond file. No answers, but a couple of additional questions: 1) Does the issue persist if you close R or does the file remain locked against

Re: [R] Return the indices of rows of a data frame

2016-09-20 Thread Robert Baer
On 9/19/2016 10:37 PM, John wrote: Hi, I have the following dataframe: temp<-data.frame(a=c(1,1,2), b=2:4, c=1:3) row.names(temp)<-c("D", "E", "F") temp a b c D 1 2 1 E 1 3 2 F 2 4 3 I would like R to tell me which rows has value "a" equal to 1. The answer is the first row and

Re: [R] Same code on Mac?

2016-09-01 Thread Robert Baer
On 9/1/2016 9:44 AM, Sarah Goslee wrote: On Wed, Aug 31, 2016 at 4:25 PM, Tom Mosca wrote: Using a PC I have written the R code for my elementary statistics students. One of the students has a Mac. Should the same lines of code work on a Mac? Where can the student find

Re: [R] loading .rda file

2016-08-30 Thread Robert Baer
I think that the .rda extension is the old extension convention for what now gets the .RData extension name by convention. These are basically workspaces. These .RData files can contain multiple data objects, and all objects seem to read back in with the same name that they were saved with

Re: [R] Importint stata file and using value labels

2016-08-27 Thread Robert Baer
There has been some good advice not to lose the labels, but perhaps this gets you where you seem determined to go? ?read.dta read.dta(file, convert.dates = TRUE, convert.factors = TRUE, missing.type = FALSE, convert.underscore = FALSE, warn.missing.labels = TRUE) or

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

2016-07-26 Thread Robert Baer
Runs fine on Windows 10 for me. On 7/25/2016 7:18 AM, Ramar, Rohini wrote: Hello Team, We are, Citi Application Readiness Team, need your assistance in order to gather info about below application compatibility and support for Win 10 as part of Window 10 Readiness initiative. CITI Bank has

Re: [R] Documenting data

2016-06-30 Thread Robert Baer
You might look at: http://stackoverflow.com/questions/7979609/automatic-documentation-of-datasets You might also, try the FIle | Compile Notebook from within R-Studio (https://www.rstudio.com/) on your well-documented R-scripts to get a nice reproducible recording/report of data analysis

Re: [R] x-axis tick marks on log scale plot

2016-05-20 Thread Robert Baer
Very, very nice. Thanks for sharing. On 5/20/2016 4:21 AM, Martin Maechler wrote: >> Brian Smith >> on Thu, 19 May 2016 11:04:55 -0400 writes: > > Thanks all !! On Thu, May 19, 2016 at 9:55 AM, Ivan > > Calandra

Re: [R] Use of "file.choose()" or "change working directory" tab causing stall on Mac

2015-12-20 Thread Robert Baer
On 12/19/2015 10:39 PM, Vinny Mo wrote: > Hello, > > > I used to use the "file.choose()" command quite a lot, as well as the "change > working directory" drop down tab as part of my workflow with R, but for over > 1 year both of these actions have caused the spinning-wheel to crash R (just >

Re: [R] testing whether two character vectors contain (the same) items in the same order

2015-08-08 Thread Robert Baer
On 8/6/2015 5:25 AM, Federico Calboli wrote: Hi All, let’s assume I have a vector of letters drawn only once from the alphabet: x = sample(letters, 15, replace = F) x [1] z t g l u d w x a q k j f n “v y = x[c(1:7,9:8, 10:12, 14, 15, 13)] I would now like to test how good a match y is

Re: [R] testing whether two character vectors contain (the same) items in the same order

2015-08-08 Thread Robert Baer
And I probably should have included this link: http://journal.r-project.org/archive/2014-1/loo.pdf On 8/8/2015 12:50 PM, Robert Baer wrote: On 8/6/2015 5:25 AM, Federico Calboli wrote: Hi All, let’s assume I have a vector of letters drawn only once from the alphabet: x = sample(letters

Re: [R] R GUI plot by color

2015-07-26 Thread Robert Baer
On 7/24/2015 6:23 AM, Jim Lemon wrote: Hi jpara3, Your example, when I got it to go: one-c(3,2,2) two-c(a,b,b) data-dataframe(one,two) plot(data$one,col=data$two) Wow Jim. Psychic indeed! Not only did you answer with NO reproducible example, but on round 2 you fixed a non-working example

Re: [R] Downloading file.Rdata from internet

2015-05-04 Thread Robert Baer
On 5/3/2015 7:58 PM, Rafael Costa wrote: Dear R users, To load the file into http://www.datafilehost.com/d/c7f0d342;, I first uncheck the Use our download manager and get recommended downloads option and I click the DOWNLOAD button. How do I load and save the file directly from R? Any

Re: [R] gdata library 2.16.1

2015-05-04 Thread Robert Baer
On 5/4/2015 9:01 AM, Marc Girondot wrote: Dear list-members, Since I update gdata library to 2.16.1 version this morning, I have an error on the two macs I use (details on system and R versions at the end). When I load the package, I have this error: library(gdata,

Re: [R] Obfuscate AES password

2015-04-14 Thread Robert Baer
I'm not sure I completely understand your authentication needs, but perhaps the RCurl package could be of some use to you. Rob On 4/13/2015 1:26 AM, Luca Cerone wrote: Thanks Jeff, and OK I'll move next questions on the topic to the devel list :) I was hoping there were packages that already

Re: [R] API request from R

2015-02-19 Thread Robert Baer
On 2/19/2015 8:06 AM, Barry Rowlingson wrote: On Wed, Feb 18, 2015 at 11:44 AM, Mittal Ashra via R-help r-help@r-project.org wrote: Dear All, Apologies for mailing it to the whole crowd. This is Mittal, presently working in a Project where we have build a platform for displaying

Re: [R] Installing RStudio

2015-02-12 Thread Robert Baer
On 2/12/2015 10:22 AM, John Sorkin wrote: Windows 7, 64-bit. I am trying to install RStudio. Before installing RStudio, I installed R 3.1.2. During the installation or R, I installled (as per the default) 32- and 64-bit packages. When I tried to install RStudio, I received the message R

Re: [R] Question about range of letters

2014-10-04 Thread Robert Baer
On 10/4/2014 8:21 AM, Nia Gupta wrote: Hello, I have a column with a bunch of letters. I would like to keep some of these letters (A,C,D,L) and turn the rest into 'X'. I have tried using ifelse with '|' in between the argument but it didn't work nor did 4 separate ifelse statements.

Re: [R] very basic series correlation question

2014-01-05 Thread Robert Baer
On 1/4/2014 7:42 PM, Peter Turner wrote: Hi, I hope the following question is appropriate for the list; reflects that I've yet to use R and have limited statistical sensibility. I've two metal ion concentration data sets, one each for two nearby watercourses recorded over the same period (2008

Re: [R] rJava problems

2013-12-08 Thread Robert Baer
You don't really provide enough information like R.Version() but my guess is that you are running 64-bit R either directly or through R Studio but that you have only 32-bit Java installed. I am doing fine on Windows with Java 7 update 45 but had some 64-bit run issues with only Java 7

Re: [R] why change days of the week from a factor to an ordered factor?

2013-12-02 Thread Robert Baer
On 12/2/2013 9:35 AM, Bert Gunter wrote: Not true, Rich. The point about alphabetical ordering explains why the author likely explicitly set the levels for the factor, though. As to why ordered factors, we may never know, but one possible explanation is that at some point he was going to use

Re: [R] how to install R 3.0.1

2013-05-31 Thread Robert Baer
On 5/31/2013 11:59 AM, Ranjan Maitra wrote: Hi John, I suspect you may be missing a c()? On Fri, 31 May 2013 06:05:45 -0800 John Kane jrkrid...@inbox.com wrote: paks - install.packages( Hmisc, plyr) paks - install.packages( c(Hmisc, plyr)) install.packages(paks) You can use the

Re: [R] Rank Amateur Question

2013-05-29 Thread Robert Baer
You probably want from windows GUI: source(test.R) To read help to learn about this command type: ?source at the command prompt. (Similar pattern get help on other commands too - its an important R skill/habit). If your are going to do a lot of script development, I would highly recommend

Re: [R] Very basic statistics in R

2013-05-08 Thread Robert Baer
On 5/6/2013 7:02 AM, arun wrote: stErr- sd(vec1)/sqrt(length(vec1)) Or possibly, stErr- sd(vec1)/sqrt(!is.na(vec1)) -- Robert W. Baer, Ph.D. Professor of Physiology Kirksille College of Osteopathic Medicine A. T. Still University of Health Sciences Kirksville, MO 63501 USA

Re: [R] Scatterplot and Causality

2013-04-22 Thread Robert Baer
On 4/22/2013 9:48 AM, Lorenzo Isella wrote: Dear All, I hope this is not too off topic. I am given a set of scatteplots (nothing too fancy; think about a normal x-y 2D plot). I do not deal with two time series (indeed I have no info about time). If I call A=(A1,A2,...) and B=(B1, B2, ...) the 2

Re: [R] scanning data in R

2013-04-03 Thread Robert Baer
On 4/3/2013 4:33 AM, Naser Jamil wrote: Dear R-user, May I seek your suggestion. I have a data file 'stop' to be scanned in R. But I want to ignore one specific number '21' there. Putting differently, I want to get all numbers in the file except 21. Is there any command to achieve it?

Re: [R] Console display buffer size

2013-04-01 Thread Robert Baer
On 4/1/2013 4:08 PM, Peter Ehlers wrote: On 2013-04-01 13:37, Ted Harding wrote: Greetings All. This is a somewhat generic query (I'm really asking on behalf of a friend who uses R on Windows, whereas I'm on Linux, but the same phenomenon appears on both). Say one has a largish dataframe --

Re: [R] How do you graph data when you have lots of small values but few extremely large values?

2013-03-29 Thread Robert Baer
On 3/29/2013 10:52 AM, Shane Carey wrote: I was thinking of splitting the y-axis into two? Is this possible? Thanks Look at the plotrix package and see: https://stat.ethz.ch/pipermail/r-help/2011-September/290685.html -- Robert W. Baer, Ph.D. Professor of Physiology Kirksille College of

Re: [R] R-help Digest, Vol 121, Issue 5

2013-03-26 Thread Robert Baer
On 3/26/2013 7:21 AM, Kerry wrote: Thank you Jason! actually, there have been two solutions and one is yours setting row.names=F works great, additionally what Ive been having problems with is the European version of Word 2010. Apparently it sets delimiters of ; instead of , as in the

Re: [R] Automatic script for updating packages in R

2013-03-25 Thread Robert Baer
try, update.packages(ask='graphics', checkBuilt=TRUE) ?update.packages ?download.file ?url # file:// URLs On 3/25/2013 6:09 AM, PIKAL Petr wrote: Hi Strange, I thought that only Windows users are sending Html mail and providing sparse info describing their problems. I presume, you use

Re: [R] Creating a boxplot from a data summary

2013-03-24 Thread Robert Baer
On 3/24/2013 11:39 AM, Josh Hall wrote: Hi, I'm trying to create a boxplot from the summary of a large data set and I'm having trouble finding any way to do this. I'm familiar with, but by no means good at, using R, so the only two websites I've found pertaining to this issue have been way over

Re: [R] boxplot

2013-03-22 Thread Robert Baer
On the subject of boxplots, I have multiple data sets of unequal sample sizes and was wondering what would be the most efficient way to read in the data and plot side-by-side boxplots, with options for controlling the orientation of the plots (i.e. vertical or horizontal) and the spacing? Your

Re: [R] how to skip part of the code

2013-03-20 Thread Robert Baer
On 3/20/2013 8:21 AM, PIKAL Petr wrote: Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Andras Farkas Sent: Wednesday, March 20, 2013 2:11 PM To: r-help@r-project.org Subject: [R] how to skip part of the code Dear All,

Re: [R] Export R generated tables and figures to MS Word

2013-03-13 Thread Robert Baer
R2wd (http://cran.r-project.org/web/packages/R2wd/R2wd.pdf http://cran.r-project.org/web/packages/R2wd/R2wd.pdf) might do what you want. Rob On 3/12/2013 7:02 PM, Santosh wrote: Dear Rxperts, I am aware of Sweave that generates reports into a pdf, but do know of any tools to generate to

Re: [R] image color analysis

2013-03-13 Thread Robert Baer
On 3/13/2013 12:05 AM, ishi soichi wrote: I am not sure if I should ask this question in this list. But I'll try. Currently I am trying to analyze images using EBImage and biOps. One of the features that I need to extract from various images is the color spectrum, namely, which colors each

Re: [R] Generating 1-bit and 8-bit BMP files using R

2013-03-05 Thread Robert Baer
On 3/5/2013 12:51 AM, Ingo Reinhold wrote: Hi, I'm trying to use the data which I generate within R to make images in .bmp format to be lateron printed by a printer. My first thought was the RImageJ package, but this seems to be discontinued. What I am currently doing is generating a matrix

Re: [R] rJava works with 32-bit but not 64

2013-02-06 Thread Robert Baer
For what it is worth Spencer, I can start rJava in both 32-bit R and 64-bit R for Windows 7. [And could even before Simon fixed the error message). And yes, I have both 32-bit Java and 64-bit Java 1.7.0_13 installed. They should be separate entries under your control panel. Rob --

Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Robert Baer
Is it feasible to have both installed in a way that allows the each version of R to select its own version of Java? A comment on stackoverflow suggests that may not be easy (http://stackoverflow.com/questions/5272216/is-it-possible-to-install-both-32bit-and-64bit-java-on-windows-7).

Re: [R] Calculation of extremely low p-values (in lm)

2012-12-03 Thread Robert Baer
On 12/3/2012 6:20 AM, Sindri wrote: Dear R-users Please excuse me if this topic has been covered before, but I was unable to find anything relevant by searching I am currently doing a comparison of two biological variables that have a highly significant linear relationship. I know that the

Re: [R] r function definition

2012-12-03 Thread Robert Baer
On 12/3/2012 2:30 PM, qq wrote: I am a very new R user. I am trying to write functons and debug functions. One problem for me is that I need to alwasy copy the whole function body and resubmit to R console every time I changed even one line of the function. Because I have long algorithm

Re: [R] screen if a value is within range

2012-12-01 Thread Robert Baer
On 12/1/2012 10:50 AM, Andras Farkas wrote: Dear all, could you please give me some pointers on how I could make R screen for a value if it falls within a certain range? I looked at the subset function, but is not doing it, perhaps because I only have 1 value to screen? aptreciate the

Re: [R] lines density

2012-11-17 Thread Robert Baer
On 11/17/2012 4:38 AM, bgnumis wrote: Hi all, I attach a picture, with my output plot. I put this command to obtain it: hist(MCT[,2],probability=TRUE,xlab= ,ylab=Max,main=M distribution) lines(density(MCT[,2]), lwd = 2) The problem is that when I extract the bell is too high? And the

Re: [R] rgl package and animation

2012-11-05 Thread Robert Baer
-- snip -- On 11/4/2012 7:45 AM, Duncan Murdoch wrote: First, draw the new sphere at the first point and save the object id: sphereid - sphere3d(dat[1,c(X, Y, Z)], col=red, radius=1) # Also save the spinner that you like: spin - spin3d( ) #maybe with different parms # Now, the animation

Re: [R] exporting 3D dynamic graph

2012-11-05 Thread Robert Baer
On 11/5/2012 8:23 AM, Christophe Genolini wrote: Hi the list, Using misc3d, we can export 3d dynamic graph in pdf format. Is it also possible to export these graph into a format that we can publish on the web? Christophe You don't provide enough information to know exactly what your needs

Re: [R] Saving R Graph to a file

2012-11-04 Thread Robert Baer
Some hints: For pdf(), height and width are in inches, not pixels. dev.off() is necessary after drawing the image for pdf(). The name for the file argument (file=c:/figure.xxx) is file not filename hist(CO2[,5]) is more interesting And yes, ?pdf ?postscript ?ping On 11/3/2012 11:16 PM,

Re: [R] Saving R Graph to a file

2012-11-04 Thread Robert Baer
On 11/4/2012 4:32 AM, Robert Baer wrote: Some hints: For pdf(), height and width are in inches, not pixels. dev.off() is necessary after drawing the image for pdf(). The name for the file argument (file=c:/figure.xxx) is file not filename hist(CO2[,5]) is more interesting And yes, ?pdf

Re: [R] rgl package and animation

2012-11-03 Thread Robert Baer
On 11/3/2012 6:47 AM, Duncan Murdoch wrote: On 12-11-02 7:47 PM, Robert Baer wrote: I am trying to figure out how to use rgl package for animation. It appears that this is done using the play3d() function. Below I have some sample code that plots a 3D path and puts a sphere at the point

[R] rgl package and animation

2012-11-02 Thread Robert Baer
I am trying to figure out how to use rgl package for animation. It appears that this is done using the play3d() function. Below I have some sample code that plots a 3D path and puts a sphere at the point farthest from the origin (which in this case also appears to be at the end of the path).

[R] Java, rJava, and Windows x64

2012-10-29 Thread Robert Baer
When running [1] R version 2.15.1 (2012-06-22) x86_64-pc-mingw32, rJava fails. I have installed both the 32-bit and 64-bit versions of Java 7 update 9. library(rJava) Error : .onLoad failed in loadNamespace() for 'rJava', details: call: stop(No CurrentVersion entry in ', key, '! Try

Re: [R] RMySQL install on windows

2012-10-12 Thread Robert Baer
On 10/10/2012 12:58 PM, Greg Snow wrote: I finally was able to compile/load it under windows 7. I had similar problems to what you show below. I set the MYSQL_HOME environmental variable through windows (start button control panel System and Security system Advanced System Settings

[R] RMySQL install on windows

2012-10-09 Thread Robert Baer
I have been trying to install RMySQL on Windows 7 following the procedure at: http://biostat.mc.vanderbilt.edu/wiki/Main/RMySQL I think I have properly installed RTools and created a proper Renviron.site file saying: MYSQL_HOME=C:/Program Files/MySQL/MySQL Server 5.5 When I try to install

Re: [R] Loading Chess Data

2012-09-11 Thread Robert Baer
On 9/2/2012 11:41 AM, David Arnold wrote: All, What would be the most efficient way to load the data at the following address into a dataframe? http://ratings.fide.com/top.phtml?list=men It depends. The most efficient for me was to highlight it, copy it to the windows clipboard and execute

Re: [R] return first index for each unique value in a vector

2012-08-28 Thread Robert Baer
On 8/28/2012 5:52 PM, Bert Gunter wrote: Sheesh! I would have thought that someone would have noticed that on the ?unique Help page there is a link to ?duplicated, which gives a _logical_ vector of the duplicates. From this, everything else can be quickly derived -- and packaged in a simple

Re: [R] ANOVA repeated measures and post-hoc

2012-08-16 Thread Robert Baer
Check out: http://rtutorialseries.blogspot.com/2011/02/r-tutorial-series-two-way-repeated.html On 8/15/2012 11:32 AM, Diego Bucci wrote: Hi, I performed an ANOVA repeated measures but I still can't find any good news regarding the possibility to perform multiple comparisons. Can anyone help

Re: [R] Turning off continuation prompt?

2012-07-30 Thread Robert Baer
On Mon, 30 Jul 2012 09:58:09 +0100 (BST) (Ted Harding) ted.hard...@wlandres.net wrote: Greetings All. My apologies for a question whose answer is probably readily available somewhere (for some interpetation of somewhere) ... Say I have just typed (from a sheet of paper) several lines into the R

Re: [R] Workspace Question.

2012-07-23 Thread Robert Baer
The objects from an R session are saved in the RWorking directory of the session. The answer to your question will depend on whether you started the different versions of R using shortcuts located in different folders or the same folder. The objects should not be automatically deleted so I

Re: [R] R2wd package wdGet() error

2012-07-23 Thread Robert Baer
On 7/23/2012 4:25 PM, Jean V Adams wrote: I am having trouble using the R2wd package. The last time I used it successfully, I was running an earlier version of R and an earlier version of Word with an earlier Windows OS. I'm not sure which if any of these changes might be contributing to the

Re: [R] binary tree

2012-07-02 Thread Robert Baer
On 6/27/2012 3:20 AM, Peppino wrote: Hi I am new with R I Have to build a binary tree with R. I'm very confused was wondering if anyone had any R sample code they would share. Any bady can help me? You might want to look at the R Task view for phylogenetics:

Re: [R] How to plot linear, cubic and quadratic fitting curve in a figure?

2012-06-13 Thread Robert Baer
dput(test) structure(list(sp = c(4L, 5L, 9L, 12L, 14L), env = c(12L, 18L, 20L, 17L, 15L)), .Names = c(sp, env), class = data.frame, row.names = c(NA, -5L)) plot(test$sp~test$env, main = S vs. temp, xlim=c(0,20), ylim=c(0,14), ylab=S,xlab=env) linear-lm(test$sp~test$env)

Re: [R] R2wd error in wdGet

2012-06-10 Thread Robert Baer
wdGet() Error in if (wdapp[[Documents]][[Count]] == 0) wdapp[[Documents]]$Add() : argument is of length zero Not sure what your error means without more context, you should see: Loading required package: rcom Loading required package: rscproxy Do you have RDCOMClient installed and working

[R] ggplot2, grid graphics, x11(), windows(), and device fonts

2012-06-05 Thread Robert Baer
I am trying to use ggplot() to produce a graph and am getting warnings that I don't understand. This is happening from within RStudio, but also happens if I start Windows R GUI. Can anyone help me understand the warning and how to make sure the right fonts are designated? The relevant code

Re: [R] how to check given number seq. is time series or not?

2012-05-29 Thread Robert Baer
Perhaps ?str is the command you seek? -Original Message- From: sagarnikam123 Sent: Saturday, May 26, 2012 10:24 PM To: r-help@r-project.org Subject: Re: [R] how to check given number seq. is time series or not? Yes,sir index of above/below numbers is time (both dataset are same)

Re: [R] Names of Greek letters stored as character strings; plotmath.

2012-05-20 Thread Robert Baer
-Original Message- From: William Dunlap Sent: Saturday, May 19, 2012 11:07 AM To: Rolf Turner Cc: r-help Subject: Re: [R] Names of Greek letters stored as character strings;plotmath. parse(text=paste(...)) works in simple cases but not in others. The fortune about it is there because

Re: [R] How to create axis y axis for horizontal bar plot?

2012-05-18 Thread Robert Baer
-Original Message- From: Manish Gupta Sent: Friday, May 18, 2012 2:52 AM To: r-help@r-project.org Subject: [R] How to create axis y axis for horizontal bar plot? Hi, i am working on bar plot but i need to generate y axis for horizontal bar plot. In the attached diagram x-axis is there

Re: [R] how to find outliers from the list of values

2012-05-17 Thread Robert Baer
Petr and Bert offer sound advice. At the risk of getting completely ostracized, here's how you could find outliers using the definition of 'outlier' used by R's boxplot function and at the same time see your data. dat = c(11489, 11008, 11873, 8000, 9558, 8645, 8024, 8371) a =

Re: [R] How to read ANOVA output

2012-05-07 Thread Robert Baer
Hey all who have responded to this post. I am a newbie to ANOVA analysis in R, and let me tell you- resources for us learners are scant, horrible, unclear, imprecise.. in other words.. the worst ever. So advice like go look it up in your classical textbook or on google is not helpful at all. I am

Re: [R] r-package RDCOMClient

2012-04-29 Thread Robert Baer
These sorts of issues are often machine dependent and not R package or R software dependent, especially when it comes to processes like com. I a,m not a RDCOMClient user, but it's been on my list to look at. You don't provide much info on your various component versions (see posting guide) so

Re: [R] Histogram from a table in R

2012-04-03 Thread Robert Baer
intv = c('0-19','10-19','20-29','30-39') cnts = c(0, 3117, 4500, 2330) barplot(cnts, space=0, names = intv, xlab='Age Range', ylab = 'Counts', main='My Histogram') -Original Message- From: gina_alessa Sent: Tuesday, April 03, 2012 4:08 PM To: r-help@r-project.org Subject: [R]

Re: [R] Problem loading package 'JGR' using R-2.15.0 (Win32).

2012-04-02 Thread Robert Baer
On a 32-bit windows 7 machine running R 2.15.0 standard binary install, JGR loaded fine as seen below: library(JGR) Loading required package: rJava Loading required package: JavaGD Loading required package: iplots Please type JGR() to download/launch console. Launchers can also be obtained at

Re: [R] How to get the input of a function right?

2012-03-25 Thread Robert Baer
Your definition of x1, x2 and x3 requires the c() function. Try leaving some space around operators for increased readability. Remember that the that the result of operations on sets containing NA is often set to NA as well. My guess is that if you print out x it contains NA and that your

Re: [R] Identifying a change in events between bins

2012-03-19 Thread Robert Baer
Your description was too general for me to know exactly what you want but perhaps this will help you solve your own problem set.seed(123) evtlist = sample(c('fwd','rev'),100,replace=TRUE) evtlist [1] fwd rev fwd rev rev fwd rev rev rev fwd rev fwd rev [14] rev fwd rev fwd fwd fwd rev rev rev

  1   2   >