Re: [R] Creating a script in Rstudio

2024-12-06 Thread Robert Baer via R-help
list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- --- Robert W. Baer, Ph.D. Professor of Physiology Kirksville Colle

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

2024-07-19 Thread Robert Knight
I would split dat$string into it's own vector, break it apart at the spaces into an array, and then place dat$year and dat$sex in positions 1 and 2 of that newly created array. On Fri, Jul 19, 2024, 12:52 PM Val wrote: > Hi All, > > I want to extract new variables from a string and add it to

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

[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] What is the HEX code for "transparent" color?

2024-06-06 Thread Robert Knight via R-help
ailing 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-guide.html >and provide commented, minimal, self-contained, reproducible code. -- Robert Knight tel 270-306-1658 fax (270) 288-0474

Re: [R] What is the HEX code for "transparent" color?

2024-06-06 Thread Robert Knight
You would give an existing color a new name and modify the new name's alpha. Then refer to the color by the new name instead of using HEX. On Thu, Jun 6, 2024, 11:07 AM Yosu Yurramendi wrote: > What is the HEX code for "transparent" color? > I've tried "" "FF00" "", but they

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

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

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

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

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

2023-08-10 Thread Robert Baer
ror in pkg_install("tibble") : could not find function "pkg_install" install.packages("D:/Programlar/ggplot2/ggplot2_3.4.2.zip", repos = NULL, type = "win.binary") Installing package into ‘C:/Users/murat/Documents/R/win-library/3.5’ (as ‘lib’ is unspecifie

[R] Huge differences in Ram Consumption with different versions of R on the same scripts

2023-05-07 Thread Robert Knight
ncern? Robert Knight [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.htm

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

2022-11-25 Thread Robert Knight
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-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Robert Knight Developer

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

2022-09-28 Thread Robert Baer
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- ______ Robert W. Baer, Ph.D. Professor of Physiolgy Kirksville College of Osteopathic Medicine A.T. Still University of Heallth Sciences

Re: [R] Date read correctly from CSV, then reformatted incorrectly by R

2021-11-22 Thread Robert Knight
Richard, This response was awe-inspiring. Thank you. -Original Message- From: R-help On Behalf Of Richard O'Keefe Sent: Sunday, November 21, 2021 8:55 PM To: Philip Monk Cc: R Project Help Subject: Re: [R] Date read correctly from CSV, then reformatted incorrectly by R CSV data is v

Re: [R] Fwd: Merging multiple csv files to new file

2021-11-03 Thread Robert Knight
It might be easier to settle on the desired final csv layout and use Python to copy the rows via line reads. Python doesn't care about the data type in a given "cell", numeric or char, whereas the type errors R would encounter would make the task very difficult. On Wed, Nov 3, 2021, 10:36 AM gabr

Re: [R] problem for strsplit function

2021-07-10 Thread Robert Knight
My method would be to use parse and deparse and substitute. It would iterate over each file name and build a new list of file names with the last four characters removed to have only the left side, and only the last four remaining to have only the right side. Then a new dataframe would be crea

Re: [R] Wayland backend for R

2021-06-23 Thread Robert Knight
Perhaps software rendering would work. Export RSTUDIO_CHROMIUM_ARGUMENTS="--disable-gpu" /usr/lib/rstudio/bin/rstudio On Wed, Jun 23, 2021, 10:01 AM Phillips Rogfield wrote: > Hello Paul, > > thank you for your kind advice. > > RStudio doesn't start at all this way. It gives me the following

Re: [R] CentOS 8: installing R

2021-05-25 Thread Robert Knight
Openblas-threads is in the appstream repository rather than power tools. https://centos.pkgs.org/8/centos-appstream-x86_64/openblas-threads-0.3.3-5.el8.x86_64.rpm.html On Mon, May 24, 2021, 2:56 PM Marc Schwartz via R-help wrote: > Hi Roger, > > I can't speak to the details here, albeit, there

Re: [R] Variable labels

2021-05-15 Thread Robert Knight
"log(inv)","log(pop)","log(price)","time trend: t=1,...,42","per capita inv: inv/pop", "log(invpc)","lprice[_n-1]","linvpc[_n-1]","lprice - lprice_1","linvpc - linvpc_1") desc <- cbind(variable, des

Re: [R] Variable labels

2021-05-15 Thread Robert Knight
(mydata$invpc) And that will provide you the associated description in text form. Robert D. Knight, MBA Developer of Meal Plan and Grocery List maker for Android and iOS. https://play.google.com/store/apps/details?id=io.robertknight.MPGL On Wed, May 12, 2021 at 9:49 PM Steven Yen wrote: &

Re: [R] ISO recommendations for plot output format from R to MS Word

2021-02-18 Thread Robert Dodier
pasted into a Word document. It's not clear that doing that automatically is going to work better or differently than doing it by hand. Anyway I think I have a working solution at this point so I leave it to others to investigate further possibilities. b

Re: [R] ISO recommendations for plot output format from R to MS Word

2021-02-18 Thread Robert Dodier
ience is useful in some way to others. best, Robert Dodier __ 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-guide.htm

[R] ISO recommendations for plot output format from R to MS Word

2021-02-12 Thread Robert Dodier
to date information. Thank you very much for any light you can shed on this problem. Robert Dodier __ 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

Re: [R] Is there anyone who uses both R and Python here? How do you debug? Perhaps in RStudio?

2021-01-27 Thread Robert Knight
An iterative process works well. Python to get the data desired and then Rscript script.r from a command line. My process involves building a script in R using, using Rstudio, Pycharm, VS Code, Kate, or some other editor. Then using data input built with Python as input to Rscript. The R scripts

[R] Need recommendation for hash table which accepts integer keys

2020-12-15 Thread Robert Dodier
tations on values I wonder if anyone can suggest a hash table implementation. Perhaps one way to get to an answer is to ask, what did you use last time you needed a hash table which was going beyond what env provides? Thanks for your time, I appreciate your

Re: [R] How to pass a character string with a hyphen

2020-11-17 Thread Robert Knight
Strip the left characters and strip the right characters into their own variables using one of the methods that can do that. Then pass it using something like paste(left, "-", right). On Tue, Nov 17, 2020, 2:43 PM Jeff Reichman wrote: > R-Help > > > > How does one pass a character string contai

[R] sp:gIntersection warning message about projection

2020-10-20 Thread Robert Lovejoy
Hi, I am using in my workflow gIntersection from sp package. Part of my relevant sessionInfo is: R version 4.0.3 (2020-10-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 17763) attached base packages: [1] stats graphics grDevices utils datasets methods

Re: [R] Can anyone advise me on running R and Rstudio on an AWS virtual machine

2020-10-14 Thread Robert Knight
server gets hacked in some fashion. You could restrict access to your own IP address in the AWS security group settings which would drastically minimize the risk of that. Robert Knight > On Oct 14, 2020, at 12:00 PM, Chris Evans wrote: > > This is a funny one and if it's off to

[R] Some R code works on Linux, but not Linux via Windows Subsystem Linux

2020-09-08 Thread Robert Knight
indows Subsytem for Linux, but not Linux itself? Any insight into the basic mechanism of how that could vary between systems? Haven't yet checked to see if the data is even getting imported via WSL. The script runs using Rscript as opposed to running interactively via the R console. Rober

Re: [R] Would Like Some Advice

2020-08-29 Thread Robert D. Bowers M.A.
Besides monitization, Windows has a few other things that infuriate me... (1) VERY hard to control updates, (2) "sneaker" updates - things installed that people don't want (like trying to force Windows computer owners to update - and sometimes wrecking the computer when it does), (3) bad update

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] Options for zooming plots other than zm()

2020-04-26 Thread Robert Dodier
Many thanks to everyone who contributed to this discussion. It looks like plotly and dygraphs both work well for zooming plots with thousands of points (and many other things). Thanks again, I appreciate your help. best, Robert Dodier On Fri, Apr 24, 2020 at 11:11 AM Robert Dodier wrote

[R] Options for zooming plots other than zm()

2020-04-24 Thread Robert Dodier
e? I have searched the mailing list archive and web pages in general but I haven't found anything other than zm(). Thank you in advance for your help, I appreciate it very much. best, Robert Dodier __ R-help@r-project.org mailing list -- To UNSUB

Re: [R] saving an R script

2019-05-10 Thread Robert Baer
h/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 code. -- -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A T Still University of Health

[R] approx with NAs

2019-05-03 Thread Robert Almgren
that approx() also be given an na.rm argument, indicating whether we wish to delete NA values, or treat them as actual values on the corresponding interval. That option makes even more sense for approx() than for mean(), since the NA values apply only on small regions of the data range.

Re: [R] Error trapping in R

2019-02-28 Thread Robert Knight
going. I like handling errors with if statements inside of try blocks. Robert > On Feb 27, 2019, at 2:55 PM, Bernard Comcast > wrote: > > What is the recommended way to trap errors in R? My main need is to be able > to trap an error and then skip a section of code if an err

[R] Dotchart and its arguments

2019-02-20 Thread Robert Zimbardo
Hi all I was recently trying to customise a dotchart of a matrix dats <- matrix(1:6, nrow=2, dimnames=list(R=letters[1:2], C=letters[14:16])) dotchart(dats) with pch and pt.cex and noticed some irregularities, namely that R doesn't use the values in the positions it uses for plotting also for th

[R] help with line graphs - rather lengthy to explain need

2018-11-29 Thread Robert D. Bowers M.A.
I am trying to figure out the best way to organize and plot data generated by a Excel spreadsheet (one driving a sample turntable and collecting optical spectra). The output of the equipment and software is an excel spreadsheet with sample numbers in the first row, and in the first column ther

Re: [R] subset English language using textcat package

2018-11-19 Thread Robert David Burbidge via R-help
Look at the help docs and examples for textcat and sapply: print(as.character(data$x[sapply(data$x, textcat)=="english"])) Although textcat defaults classify "This book is amazing" as dutch, so you may want to read the help for textcat and change the profile db ("p") or "method". On 19/11/20

Re: [R] Help with Centroids

2018-11-14 Thread Robert David Burbidge via R-help
ether-finding-the-center-of-geographic-points-in-r/ Rgds, Robert On 14/11/2018 11:13, sasa kosanic wrote: >  Dear Robert, > Thank  you for your very much for your reply. Please see attached pdf  > fille. > I hope now it is more clear what I am trying to do: > calculate new latitude

Re: [R] POS tagging generating a string

2018-11-13 Thread Robert David Burbidge via R-help
On 13/11/2018 12:31, Elahe chalabi wrote: Hi Robert, Thanks for your reply but your code returns the number of verbs in each massage. What I want is a string showing verbs in each massage. The output of my code (below) is: # A tibble: 4 x 2   DocumentID verbs    1 478920 has|been

Re: [R] Help with Centroids

2018-11-13 Thread Robert David Burbidge via R-help
;>>>>>>>>>>>> lat <- c(9161,9162,9163,9164,10152,10154) floor(lat/10)*10 <<<<<<<<<<<<<<<< Please provide further details on what you are trying to do. Rgds, Robert On 13/11/2018 09:51, sasa kosanic wrote: Dear All,

Re: [R] saveRDS() and readRDS() Why? [solved, kind of]

2018-11-08 Thread Robert David Burbidge via R-help
an machines. On 08/11/18 07:27, Patrick Connolly wrote: Many thanks to Berwin, Eric, Robert, and Jan for their input. I had hoped it was as simple as because I typed saveRDS("rawData", file = "rawData.rds") on the Windows side. but that wasn't the case. Robert Burbridg

Re: [R] saveRDS() and readRDS() Why?

2018-11-07 Thread Robert David Burbidge via R-help
ing a VirtualBox shared folder to transfer from Windows to Linux. Could you provide details of your machines? Rgds, Robert On 07/11/18 07:56, Patrick Connolly wrote: From a Windows R session, I do object.size(rawData) 31736 bytes # from scraping a non-reproducible web address. sa

Re: [R] saveRDS() and readRDS() Why?

2018-11-07 Thread Robert David Burbidge via R-help
) # linux rawData <- unserialize(file = "rawData.rds") HTH On 07/11/18 08:45, Patrick Connolly wrote: On Wed, 07-Nov-2018 at 08:27AM +, Robert David Burbidge wrote: |> Hi Patrick, |> |> From the help: "save writes a single line header (typically |> "RDXs

Re: [R] saveRDS() and readRDS() Why?

2018-11-07 Thread Robert David Burbidge via R-help
ze for low-level control of saving/reading objects. Rgds, Robert On 07/11/18 08:13, Eric Berger wrote: What do you see at the OS level? i.e. on windows DIR rawData.rds on linux ls -l rawData.rds compare the file sizes on both. On Wed, Nov 7, 2018 at 9:56 AM Patrick Connolly wrote: From

Re: [R] POS tagging generating a string

2018-11-06 Thread Robert David Burbidge via R-help
ract a column of verbs from the result and rbind it to the original data.frame. Btw, I don't this solution is efficient, I would guess that the processing that scan does in the verbs function is duplicating work already done in the tagPOS function by annotate, so you may want to return a list

Re: [R] POS counting number of verbs

2018-11-05 Thread Robert David Burbidge Ltd via R-help
t;]   POStags <- unlist(lapply(a3w$features, `[[`, "POS"))   POStagged <- paste(sprintf("%s/%s", s[a3w], POStags), collapse = " ")   list(POStagged = POStagged, POStags = POStags) } count_verbs <-function(x) {   pos_tags <- tagPOS(x)$POStags   sum(grepl(&quo

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

[R] Formatting multi-way ANOVA output for spectra analysis

2018-07-25 Thread Robert D. Bowers M.A.
I've studied R a little bit, although I haven't used it in some time (except via RCommander).  I'm working on my dissertation project and have spectrometer data that I need to evaluate.  I need to find a way to simplify the output from multi-way ANOVA so I can reduce the areas of the spectrum t

Re: [R] Fortune candidate

2018-01-29 Thread Robert Baer
do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A T Still University of Health Sciences 800 W. Jefferson St Kir

[R] Clinical Trial data sets in public domain?

2018-01-13 Thread Robert Wilkins
vents" and "Patient Info" are two datasets with a many-to-one relationship, the "Patient Info" dataset has precisely one row for each patient who received a dose of study drug.] Robert Wilkins [[alternative HTML version deleted]] _

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] Data cleaning & Data preparation, what do R users want?

2017-12-11 Thread Robert Wilkins
you have to hack it by web scraping or > otherwise- http://enpiar.com/2017/08/11/one-hour-package/ > > On Thu, Nov 30, 2017 at 1:00 AM, Jim Lemon wrote: > >> Hi again, >> Typo in the last email. Should read "about 40 standard deviations". >> >> Jim >&g

Re: [R] Data cleaning & Data preparation, what do R users want?

2017-11-29 Thread Robert Wilkins
a data file, save it somewhere, and then > open R and read it in. I'd like to be able to do it all in R. Would make > the generation of recurring reports easier. > > --Chris Ryan > > Robert Wilkins wrote: > > R has a very wide audience, clinical research, astronomy, psychol

[R] Data cleaning & Data preparation, what do R users want?

2017-11-29 Thread Robert Wilkins
ly before you? [BTW, I posed the same question last week to the r-devel list, and was advised that r-help might be a more suitable audience by one of the moderators.] Robert Wilkins [[alternative HTML version deleted]] __ R-help@r-project.org

[R] Best way to study internals of R ( mix of C, C++, Fortran, and R itself)?

2017-11-21 Thread Robert Wilkins
SPSS, maybe, but R skills, year after year, did not imply job offers). How much has that changed, both for R and for NumPy/Pandas/SciPy ? thanks in advance Robert [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

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] PROC MIXED RANDOM equivalence in R nlme

2017-08-11 Thread Robert Baer
ct.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A T Still University of Health Sciences 800 W. Jefferson St Kirksville, MO 63501 66

Re: [R] Extracting sentences with combinations of target words/terms from cancer patient text medical records

2017-07-13 Thread Robert McGehee
use the PCRE regex library anyway. However, as this is basically what you did, I'm not sure why you're not happy with your existing approach. -Original Message- From: Paul Miller [mailto:pjmiller...@yahoo.com] Sent: Thursday, July 13, 2017 3:01 PM To: Robert McGehee Cc

Re: [R] Extracting sentences with combinations of target words/terms from cancer patient text medical records

2017-07-12 Thread Robert McGehee
UE))[[1]] [1] "Patient had stage IV breast cancer." [2] " Metastatic and breast match this sentence." Cheers, Robert -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Paul Miller via R-help Sent: Wednesday, July 12, 2017 8:49 AM To

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

[R] unable to collate and parse R files for package ‘colorspace’

2017-07-05 Thread Kabacoff, Robert
When attempting to install the �colorspace� package on RedHat Linux I get the following error. Any help would be appreciated. Rob Rob Kabacoff, Ph.D. Professor, Quantitative Analysis Center Wesleyan University > install.packages("colorspace") Installing package into �/home/rkabacoff/R/x86_64-r

[R] R memory limits on table(x, y) (and bigtabulate)

2017-07-03 Thread Robert Zimbardo
I have two character vectors x and y that have the following characteristics: length(x) # same as length(y) # 872099 length(unique(x)) # 47740 length(unique(y)) # 52478 I need to crosstabulate them, which would lead to a table with 47740*52478 # 2505299720 cells, which is more than 2^31 # 2

Re: [R] MODISTools Help

2017-06-23 Thread Robert Baer
thz.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 code. [[alternative HTML version deleted]] ______ R-help@r-project.org mailing lis

[R] Estimating Unbiased Standard Deviation with Autocorrelation

2017-06-15 Thread Robert McGehee
the same data that is used to estimate the sample standard deviation (if there are any). If such a function exists, can anyone point me to it? Thanks in advance, Robert __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

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

Re: [R] finding components of an API

2017-05-28 Thread Robert Sherry
Erin, I do not think there is an R package that will enable you to get the data you would like from spotcrime.com. You could write code, in R, or some other language, to extract the data you want but that is going to be a changeling task and if the website changes its format then your code m

Re: [R] [R-SIG-Finance] getting a subset corresponding to a list element

2017-05-26 Thread Robert Harlow
Hi Michael, Try not to post twice - this is really more of a general R question. To answer the question, however, turn each element of your resultlist into an xts (or zoo) object so that you have a list of xts objects (called xtsList for example.) Then call do.call("merge", xtsList). Also, yo

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

[R] update.packages() error R 3.4.0

2017-04-28 Thread Robert Baer
mtime(lib) && : missing value where TRUE/FALSE needed -- -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A T Still University of Health Sciences 800 W. Jefferson St Kirksville, MO 63501 660-626-2321 Department 660-626-2965 FAX __

[R] matafor package - categorical moderator interpretation question

2017-04-03 Thread Calin-Jageman, Robert
uncertain if this is correct, and would appreciate any feedback. Bob ==== Robert Calin-Jageman Professor, Psychology Neuroscience Program Director Dominican University Parmer 210 7900 West Division River Forest, IL 60305 rcalinjage...@dom.edu 708.524.6581 http://calin-jageman.

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] 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] lines those not started with "rs"

2017-01-30 Thread Robert Sherry
then my solution should work. Bob On 1/30/2017 9:44 AM, greg holly wrote: > Hi Robert; > > I do appreciate your advice. Only the first column of the data is > text. The rest columns are numeric. > > Regards, > > Greg > > On Mon, Jan 30, 2017 at 9:36 AM

Re: [R] lines those not started with "rs"

2017-01-30 Thread Robert Sherry
Greg, I am assuming that your data is in a text file. R is a good tool but not the tool I would use for this job. The tool I would use is grep. The following command should get you want you want: grep -v "^rs" Bob On 1/30/2017 9:23 AM, greg holly wrote: Hi all; I have a file which

Re: [R] (no subject)

2017-01-30 Thread Robert Sherry
Here is one thought. Assign each month a value of 0, 1 or 2. Then do a simple linear regression analysis where the value of the month is the independent variable. You can also do multiple linear regression with the value you assigned to the month plus the other factors that you believe are causin

[R] Receiving NaN message

2017-01-16 Thread Robert Piliero
rbind(dat,read.csv(files_full[i])) } str(dat) mean(dat$sulfate, na.rm=TRUE) *Code which generated the NaN message. * dat1_10 <- dat[which(dat[,ID] ==1:10),] mean(dat1_10$sulfate, na.rm=TRUE) Am I making a mistake in subsetting the rows with ID's 1:10? Any advice would be appreciated. Than

[R] Test

2017-01-16 Thread Robert Piliero
-- Robert J. Piliero Cell: (617) 283 1020 38 Linnaean St. #6 Cambridge, MA, 02138 USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] for loop in R

2017-01-12 Thread Robert Sherry
I only see one for loop in your code. I am wondering if you want a second for loop based upon the length of newdata. I would also think that you do not need the second call to set.seed. Bob On 1/12/2017 4:44 PM, Jennifer Sheng wrote: Dear friends, I am working on a double loop using for. On

[R] stacked and dodged bar graph ggplot

2016-12-30 Thread Robert Lynch
emog$location <- factor(Demog$source, levels=c( "Dixon", "Winters","Davis")) Demog.bar1 <-ggplot(data = Demog, aes(x = location, y = number, fill = race))+theme_bw() +geom_bar(stat = "identity",position = "stack") + coord_flip() Demog.bar2 <-ggp

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] 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] remove a "corrupted file" after using download.file() with R on Windows 7

2016-09-29 Thread Robert Baer
overwrite=TRUE,showWarning=TRUE) #system(paste0('open "', path_file, '"')) file.remove(path_file,overwrite=TRUE,showWarning=TRUE) } return(1) } ) Thanks a lot Cheers Fabien -- -- Robert W. Baer, Ph.D. Professor of Physiology Kirksvil

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

2016-09-20 Thread Robert Baer
t; equal to 1. The answer is the first row and the second row, or row D and row E. Which function should i use? function subset? function which? row.names(temp[temp$a==1,]) -- -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A T Still University of Heal

Re: [R] Same code on Mac?

2016-09-01 Thread Robert Baer
n work through some statistical tests or graphing. This won't work on a Mac. An equivalent formulation that is helpful on the Mac is x <- read.table(file = pipe('pbpaste'), sep = '\t', header = TRUE) Other than that, I think you'll find R extremely OS a

Re: [R] loading .rda file

2016-08-30 Thread Robert Baer
inimal, self-contained, reproducible code. -- -- Robert W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Medicine A T Still University of Health Sciences 800 W. Jefferson St Kirksville, MO 63501 660-626-2321 Department 660-626-2965 FAX ___

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(

[R] Segmentation Fault on Unix box with nloptr, works on Windows

2016-08-05 Thread Corak, Robert (US - Newton)
I have an R script that is giving me a Segmentation Fault depending on the size of the dataset. It is only happening on our Unix installation of R Server. I am able to run it against a Windows server with the exact same data and script successfully. The Segmentation Fault occurs when I call n

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

  1   2   3   4   5   6   7   8   9   >