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 Pijush You might do better t

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 technolog

[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 https://mirror

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, aes(

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 tr

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 plot(

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] 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 only

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 al

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] 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 nomination.

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 wrote: > > >> Hi, > >> > >> You can do it b

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 wor

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 b

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 library(

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 usi

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 support for R on her

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 t

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 deleti

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

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", lib.loc="/Library/

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 ex

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 t

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] 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 does

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 > 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 >> recommendations and

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] 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", "BAA2113"

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] 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. Example

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 > R

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 0

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 mec

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 object

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 wrote:

Re: [R] Dividing by 0

2008-07-24 Thread Robert Baer
I'm trying to calculate the percent change for a time-series variable. Basically the first several observations often look like this, x <- c(100, 0, 0, 150, 130, 0, 0, 200, 0) and then later in the life of the variable they're are generally no more 0's. So when I try to calculate the percent c

Re: [R] How to learn R language?

2008-08-27 Thread Robert Baer
On 27-Aug-08 14:24:31, Charles Annis, P.E. wrote: There are many books, but if I had to choose one that teaches R and teaches statistics at the same time (Yes, you already know stats, so it will be that much easier) I'd choose Peter Dalgaard's book, Introductory Statistics with R. It's excepti

Re: [R] ggplot: colours to geom_segments

2009-08-22 Thread Robert Baer
Do you want something like: p <- ggplot(xx, aes(x = 0, xend = Expense, y = Food, yend = Food)) pa <- p + geom_point(aes(Expense, Food)) + geom_segment(colour=c("red","blue","purple","darkgreen")) + xlab("Food") + geom_vline(xintercept=40, colour='red') pa - Original Message ---

Re: [R] upgraging R from 2.9.0 to 2.9.1

2009-08-23 Thread Robert Baer
FWIW, the R homepage says, "R 2.9.2 Release Candidates will appear August 17-24. Final release is scheduled for 2009-08-24." (Tomorrow?) Maybe a short upgrade delay is in order? ;-) On Windows, I routinely install new versions without removing the previous version. They always seem to coexist ha

Re: [R] SRS Required sample size for simulated data

2009-09-09 Thread Robert Baer
My guess is that by "table" you are really looking for a 'dataframe'. Further, I guess that an indexed format is most useful to you. Try: # Create the requested dataframe dat=data.frame(type=c(rep("Hypermarket",10),rep("Supermarket",15),rep("Minimarket",20),rep("Cornershop",20),rep("Spazashop",3

Re: [R] Help on percentage of random numbers for different classes

2009-09-10 Thread Robert Baer
I am sorry for asking this stupid question, but i have been running in circles. I want to randomly generate a scaling point of between 1 and 10, for say hundred entries, where the first 10% percent is has rates between 2 and 7, the next 15% 3 and 7, 20% between 3 and 9, 20% between 3 and 10, 3

[R] R Journal

2009-09-15 Thread Robert Baer
Is there a good search tool, either in R itself or in a public place, to search for R Journal (R News) articles on a given package or topic? I found the Table of Contents and the BibTex file, but I was looking for something a little more flexible. These lists are getting impressively long afte

Re: [R] two questions for R beginners

2010-02-26 Thread Robert Baer
Honestly what I remember as the most difficult thing when I 'first' started using R was figuring out how to read in my own datasets. I eventually discovered the R import/export manual, but somehow this alluded me initially. All the R "tutorials" I was working from simply "generated" data or used

[R] Rcmdr plugins produce error

2010-03-18 Thread Robert Baer
I recently updated all my plugins, and for the fun of it, I added ALL the Rcmdr Plugins to my collection to see what functionality might exist. I started Rcmdr and loaded ALL the available Plugins from to the Rcdmdr Tools menu. To my suprise Rcmdr produced a number of warnings and finally an er

Re: [R] use read.table for a partial reading

2010-04-10 Thread Robert Baer
- Original Message - From: "Covelli Paolo" To: Sent: Thursday, April 08, 2010 9:05 AM Subject: [R] use read.table for a partial reading Hi everyone, I've got a matrix data with 20 variables (V1, V2, V3, ...) and 215 rows (observations). I'm interested to read only the first and se

Re: [R] user input in R

2009-10-10 Thread Robert Baer
I'm just learning R (I don't know any other programming languages), and I have a question. I am trying to figure out how to ask for user input (say, a set of 3 numbers) then put those numbers into an array. I've looked around, but I haven't been able to find any answers that I understand.

Re: [R] SPSS long variable names

2009-10-13 Thread Robert Baer
- Original Message - From: "Robert Baer" To: "Orvalho Augusto" Sent: Tuesday, October 13, 2009 9:52 AM Subject: Re: [R] SPSS long variable names I am wondering if there is a patch for the SPSS reading code on the foreign package, in order to be able to read

Re: [R] SPSS long variable names

2009-10-14 Thread Robert Baer
replace the short R names with the long LABELS to form long R names. If for for some reason you are unwilling to give up some existing LABELS that are not, you could create some dummy variables for just this mapping purpose. - Original Message - From: "Orvalho Augusto" To: &q

Re: [R] SPSS long variable names

2009-10-15 Thread Robert Baer
The problem is the limit of 8 characters long on variable names.[in read.spss??] I just created a file in SPSS 17 and saved it in standard format (.sav) The file had four unique variable NAMES which were much longer than 8 characters (although not 64). I entered two rows of data and saved t

[R] Rjava, RImageJ, and/or S4 question.

2009-10-27 Thread Robert Baer
I am out of my league with this question. The following code starts the java imaging program ImageJ from within R, and displays an image (assuming ImageJ is installed on your computer). library(RImageJ) img <- IJ$openImage( file.choose() ) #pick an available .tif file img$show()# make

[R] strsplit() and Windows file paths

2009-10-29 Thread Robert Baer
There are two ways to express file paths with the Windows environment: > a=file.choose() > a [1] "C:\\Documents and Settings\\rbaer\\Desktop\\_VNT_Test\\coordFocused 20k F5 0ng Ki8751 t20.txt" and >b= paste(getwd(),"/",dir()[1],sep="") >b [1] "C:/Documents and Settings/rbaer/Desktop/_VNT_Test/co

Re: [R] new help pages in R 2.10.0

2009-11-05 Thread Robert Baer
I think the html based one works fine (even if I definitely preferred the old chtml). Only another comment: I chose html in my installation with Windows Vista, but still the help pages are opened in text files in the newly installed version. The nice thing about the chtml that is missing from

Re: [R] Display of results

2010-01-25 Thread Robert Baer
I don't know this test, but as written, LM <- Lo.Mac(y,kvec), will just make an assignment. To display the result you could write: (LM <- Lo.Mac(y,kvec)) - Original Message - From: "Hichem Ben Khedhiri" To: Sent: Sunday, January 24, 2010 9:47 AM Subject: [R] Display of results D

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 ev

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)) c(

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 opt

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 lik

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 Mur

[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 can'

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 i

[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] back tick names with predict function

2023-11-30 Thread Robert Baer
wrote: Às 17:57 de 30/11/2023, Rui 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 type

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 assump

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 = "Standa

[R] devtools - bad credentials R4.4.1

2024-06-20 Thread Robert Baer
I am trying to install a package from github which has worked fine in the past, but now seems to be stuck on some new authentication issues.  Does anyone know how I can straighten myself out?  In theory, this is a public repository so I'm not sure why I even need authenticating for installation

Re: [R] devtools - bad credentials R4.4.1

2024-06-20 Thread Robert Baer
2024 5:41 PM, Jeff Newmiller wrote: My guess is that this is related to you saving an expired Personal Access Token in your global git options or credentials store? Git is perfectly capable of using per-repo credentials... don't configure a credential in your global configuration and it w

Re: [R] devtools - bad credentials R4.4.1

2024-06-21 Thread Robert Baer
al-manager-for-windows> > > On June 20, 2024 4:26:34 PM PDT, Robert Baer wrote: >> Not being a developer, I have limited uderstanding of PATs and global git >> options, but here is what I was able to cobble together to start looking at >> my situation: >> >

Re: [R] OFF TOPIC: Nature article on File Drawer Problem in Reserach

2024-07-25 Thread Robert Baer
Chapter 9 might be of interest: https://bookdown.org/MathiasHarrer/Doing_Meta_Analysis_in_R/ And specifically, for funnel plots in R: https://wviechtb.github.io/metafor/reference/funnel.html Best, Rob On 7/25/2024 6:40 AM, Richard O'Keefe wrote: I know you didn't want to stimulate discussion,

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 = "saveddata.RData")

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). On

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 -- Robert

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 o

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 ) 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 image

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

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] 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] 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 2.15.

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

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 Ost

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 -- cal

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] 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 v

Re: [R] Tiff plot Resolution issues

2013-05-01 Thread Robert Baer
On 5/1/2013 2:49 PM, Frank Harrell wrote: > Why do you need TIFF? I've never seen a science journal that claims they > want TIFF figure submissions who are really serious about that. This is a > very wasteful format. Most journals want PDF. > Frank > There are likely many, but a quick Google is

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] 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 y

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 wrote: paks <- install.packages( "Hmisc", "plyr") paks <- install.packages( c("Hmisc", "plyr")) install.packages(paks) You can use the command l

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 th

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

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 > En

[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] 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).

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

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

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

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 ani

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 you

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

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 inp

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 p-

  1   2   >