[R] generate XML

2010-01-07 Thread Robert
when I change the extension to .txt Therefore I write a file with .txt extension and after that I manually change the extension to .xml - it does not solve the problem. Is it possible to write my matrix or txt file to valid xml file? I need to do it automatically. Best, Robert

[R] Font settings in xfig

2008-05-15 Thread Robert
t and special text variables in the fig files. I would like R to do this font changing job, but I can't figure out how by reading the help files. Does anybody know how to do accomplish this? Best regards Robert __ R-help@r-project.org mailing

Re: [R] Font settings in xfig

2008-05-15 Thread Robert
g command does have an argument called encoding, but I can't figure out if this can be used to make the changes I want. In the par command there's an argument called family, which is used to specify the font family in figures, but I don't know how changes this font to a LaTeX font.

Re: [R] Font settings in xfig

2008-05-19 Thread Robert
The main goal is to include graphics from R in a LaTeX document. Thanks a lot for all your help - its working now. /Robert On 16 Maj, 17:31, "Greg Snow" <[EMAIL PROTECTED]> wrote: > If the main goal is to include graphs created by R in LaTeX documents and > have them look

[R] min of array

2008-11-14 Thread Robert
I wanted to get the minimum of an array of dimenstion (nr,nc,6), so the output was of dimension (nr,nc), ie for each row,column the minimum of 6 numbers. I thought apply might be the sensible way, but I also compared it to looping over each row/column. In this case the loop method was faster than

[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

[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

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

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

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

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

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

[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

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] 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] 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] 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] 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
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] 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] 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] 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] Downloading file.Rdata from internet

2015-05-04 Thread Robert Baer
vance, > Rafael Costa. > > [[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.html

Re: [R] gdata library 2.16.1

2015-05-04 Thread Robert Baer
rwin13.4.0 (64-bit) OS: MacOSX - Yosemite __ 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.html and provide commented,

[R] Special character is graph label

2015-05-06 Thread Robert U
Dear R users, I am having issues finding a special character (and how to insert it) in the lab of a graph axis. Let us say that the label of my axis is "X", i would like the X to have a "line" over it, indicating that it is the "mean of X values" (i don't even know how to properly state that i

[R] Parsing large amounts of csv data with limited RAM

2015-07-14 Thread Dupuis, Robert
rse through 1 year data which would be around 20GB. Thank you for your time, Robert Dupuis __ 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-pro

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

[R] Basic editing of XML file

2015-08-13 Thread Robert U
Dear RUser,I’m tryingto operate some very slight editing to the values of an XML file. I looked abit everywhere and it appears that dealing with XML files is not that easy… besidemy XML files might be a bit weirdly structured. Anyway, let me give you an exampleof it : Root(xmlfile)     

[R] Two-tailed exact binomial test with binom.test and sum(dbinom(...))

2014-12-13 Thread Robert Zimbardo
Hi R experts, I have a few related questions that are actually a combination of an R and a hopefully not too trivial (?) statistics question, namely regarding the computation of an exact two-tailed binomial test. Let's assume the following scenario: - number of trials = 10 - p of success = 0.6

[R] pairing columns based on a value

2014-12-17 Thread Robert Strother
I have a large dataset (~50,000 rows, 96 columns), of hospital administrative data. many of the columns are clinical coding of inpatient event (using ICD-10). A simplified example of the data is below > dput(dat_unmatched) structure(list(ID = structure(c(4L, 3L, 2L, 1L), .Label = c("BCM3455", "BZD

Re: [R] Interview questions?

2015-01-11 Thread Robert Sherry
Here is a question that I might ask. What are the alternatives to R and how does R compare? That is, for what class of problems is R the best tool around? Bob On 1/11/2015 1:16 PM, Barry Rowlingson wrote: Ask if they have a favourite R programmer. This will tell you how much into the R cultur

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
his way. > > I think RCaller is another way of doing this from Java - its not on > CRAN since its not an R package, its a Java library. > > Barry > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help &

[R] no variable removal when running glmnet on diabetes dataset with alpha=1, lambda=.1

2015-03-19 Thread Feyerharm, Robert
New ZixCorp secure email message from ValueOptions Secure Email To view the secure message, click on the link below or copy and paste the link into your Internet browser address bar. https://securemail-valueoptions.com/s/e?m=ABC5UVsyBkxRSfS2UXb8k64p&c=ABDfgFbxA3h2RUXHIPdWEiCw&em=R%2dhelp%40r%2dp

[R] reading in from xlsx files

2015-03-24 Thread Robert Lyons
I'm sorry if this is well below the level of this forum. Using R Console v3.1.3 32-bit Both of our R Programming sources left the company and I'm in need of some very basic help. The code is reading in column and row information from two xlsx files. I made what I thought were some basic changes to

Re: [R] Obfuscate AES password

2015-04-14 Thread Robert Baer
SCRIBE 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 W. Baer, Ph.D. Professor of Physiology Kirksville College of Osteopathic Med

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,

[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

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] Using R to Compute Covariance

2014-07-26 Thread Robert Sherry
I have the following data set: xy p 11 1/2 22 1/4 39 1/4 In this case, p represents the probability of the values occurring. I compute the covariance of x and y by hand and come up with a value of 41/16. When computing the covariance, I am divi

Re: [R] Using R to Compute Covariance

2014-07-26 Thread Robert Sherry
David, Thanks for the response. I believe you have solved my problem. Bob On 7/26/2014 3:50 PM, David Winsemius wrote: On Jul 26, 2014, at 11:07 AM, Robert Sherry wrote: I have the following data set: xy p 11 1/2 22 1/4 39 1/4 In this

[R] K-nearest neighbor

2014-08-07 Thread Robert U
Dear R-users, I am looking for a weighted knn-search function, but i cannot manage to find one. There are several options of weighted knn classifiers, but i would rather use a simple 'search function' (such as get.knnx). Anyone knows a search function with "weight" option ? Thanks [[al

[R] Updates to R Core and R Foundation Membership

2014-09-15 Thread Robert Gentleman
thanking Stefano for his many years of contributions. best wishes Robert for the R Foundation -- Robert Gentleman rgent...@gmail.com [[alternative HTML version deleted]] ___ r-annou...@r-project.org mailing list https://stat.ethz.ch

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

[R] Help Getting the Price of Gold

2014-10-23 Thread Robert Sherry
I am trying to get the current price of gold for my application. I am using the library quantmod. The R commands I use are: getMetals(c('XAU'), from=Sys.Date(), autoassign = FALSE ) XAUUSD$XAU.USD[1,1] I would expect the value in XAUUSD$XAU.USD[1,1] to be a scalar but it comes back

[R] Problem getting Option Quotes

2014-10-23 Thread Robert Sherry
I am using R and quantmod to get stock and option quotes. However, it has stopped working. I expect the following function call to produce a list of options: getOptionChain( "XOM", Exp = "2015-01-20" ) However, I get the following error messages: Error in lapply(strsplit(opt, ""), f

[R] Error message from allEffects(model) / effect(model)" ‘range’ not meaningful for factors"

2015-08-19 Thread Robert Zimbardo
Hi I cannot figure out why the effects package throws me error messages with the following simple code: rm(list=ls(all=TRUE)); set.seed(1); library(effects) # set up data x <- factor(rep(letters[1:3], each=100)) y <- c(rnorm(100, 3, 3), rnorm(100, 4, 3), rnorm(100, 5, 3)) # fit linear model m

[R] Working with Data Frames

2015-11-03 Thread Robert Sherry
I have created what I believe to be a data frame. It is called env1$SPY. The r statement head( env1$SPY ) produces the following output: SPY.Open SPY.High SPY.Low SPY.Close SPY.Volume SPY.Adjusted 1995-01-03 45.7031 45.8437 45.6875 45.7812 324300 31.55312 1995-01-04 45.9843

[R] Count of included observations in sp.correlogram

2015-11-04 Thread Robert U
Dear Rusers, I’m tryingto figure out what I think is a pretty simple thing for anyone who knows about correlograms.I’ve a regular grid (say 5*5 points) with some quantity associated to eachpoint (count data). I’m trying to verify whether this quantity is regularly /randomly or “clusterdly” distr

[R] QuantMod and XML

2015-11-07 Thread Robert Sherry
I am trying to use the package quantmod to get option quotes in R. Therefore, I executed the following two commands: library ("quantmod" ) getOptionChain("AAPL") The first one worked but the second one produced the following error message: Error in getOptionChain.yahoo

Re: [R] QuantMod and XML

2015-11-07 Thread Robert Sherry
e: package ‘RSXML’ is not available (for R version 3.1.2) I am wondering why it is not work. Please help. Thanks Bob On 11/7/2015 6:41 PM, Hasan Diwan wrote: > Bob, > > On 7 November 2015 at 15:27, Robert Sherry <mailto:rsher...@comcast.net>> wrote: > > >

Re: [R] not allocate of vactor size

2015-11-22 Thread Robert Sherry
I am thinking that R is running out of memory. Therefore, I would look to increase the size of my virtual memory. Here are two links that might help you with that: http://windows.microsoft.com/en-us/windows/change-virtual-memory-size#1TC=windows-7 http://www.ehow.com/how_5001512_increase-virtual-

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

[R] F Distribution

2015-12-21 Thread Robert Sherry
When I use a table, from a Schaum book, I see that for the 95 percentile, with v_1 = 1 and v_2 = 1 the value is 161. In the modern era, looking values up in a table is less than ideal. Therefore, I would expect R to have a function to do this and based upon my reading of the documentation, I wo

[R] Sorting a Data Frame

2016-01-22 Thread Robert Sherry
In R, I run the following commands: df = data.frame( x=runif(10), y=runif(10) ) df2 = df[order(x),] The first, as I would expect, creates a data frame with two columns and 10 rows. I expect the second to sort the data based upon the columns x and produce a new data frame, df2, with the s

Re: [R] R-help mailing list activity / R-not-help?

2016-01-24 Thread Robert Sherry
I think this mailing list is wonderful and it has helped me a lot. In fact, I am not sure I would be using R today if it was not for this list. Bob On 1/24/2016 4:42 PM, Michael Friendly wrote: On 1/23/2016 7:28 AM, Jean-Luc Dupouey wrote: Dear members, Not a technical question: But one wo

Re: [R] Sorting a Data Frame

2016-01-26 Thread Robert Sherry
AM, S Ellison wrote: On 23.01.2016 01:21, Robert Sherry wrote: In R, I run the following commands: df = data.frame( x=runif(10), y=runif(10) ) df2 = df[order(x),] You use another x from your workspace, you actually want to df2 = df[order(df[,"x"]),] or df[order(df$x),]

[R] Variable Argument Function

2016-02-07 Thread Robert Sherry
I would like to write a function in R that would take a variable number of integers as parameters. I do not have a pressing reason to do this, I am just trying to learn R. I thought a good first step would be to print out the arguments. So I wrote the following function: f1 = function (...)

Re: [R] Variable Argument Function

2016-02-07 Thread Robert Sherry
; } It does not use nested functions and it works also. Is there a reason why your solution is better? Bob On 2/7/2016 7:14 PM, Ben Tupper wrote: Hi, On Feb 7, 2016, at 6:24 PM, Duncan Murdoch wrote: On 07/02/2016 6:12 PM, Robert Sherry wrote: I would like to write a function in R that w

Re: [R] Double AND within an IF statement

2016-02-24 Thread Robert Sherry
This should work: if ( age > 4 && age < 8 && infection > 0 ) replacement = 2 Bob On 2/24/2016 7:08 AM, Polychronis KOSTOULAS wrote: Hi there, apologies if this is easy. I want to write this condition: If age is more than 4 years and less or equal to 8 years and infection is positive the

[R] Regression with factor having1 level

2016-03-10 Thread Robert McGehee
th an arbitrary linear formula, and not substantially kludgy (like trying ever combination of regressions terms until one works) as I'll be running this a lot on big data sets and don't want my computation time swamped by running unnecessary regressions or checking for number of factors af

Re: [R] Regression with factor having1 level

2016-03-10 Thread Robert McGehee
in NAs. I'm currently leaning towards rewriting model.matrix.default so that it removes offending terms rather than give an error, but if someone has done this already (or something more elegant), that would of course be preferred :) --Robert On Thu, Mar 10, 2016 at 7:39 PM, David Winsemi

Re: [R] Regression with factor having1 level

2016-03-11 Thread Robert McGehee
) r <- .lm.fit(ans, mf[[1]])$residual stats:::naresid.exclude(omit, r) } ## Note that lmresid now returns the same values as resid with the ## 1-level factor removed. df <- data.frame(y=c(0,2,4,6,8), x1=c(1,1,2,2,NA), x2=factor(c("A","A","A","A"

Re: [R] Open source project that needs performance optimizations

2016-03-27 Thread Robert Sherry
I am not up on the internals of R but there does seem some run for parallelism. Are we talking about special hardware? or running this on an Intel Box? If it is the second, then I am thinking threads would be the way to go. Please consider the following R statements: for( i in 1:30 )a[i

Re: [R] How to speed up my program

2016-04-01 Thread Robert Sherry
Hi Ragia, First, when you wrote mad, I assume you mean made. Also, when you say it is a multi core prog, does that mean it is using threads? running two or more items in parallel? By any chance are you using this package? https://stat.ethz.ch/R-manual/R-devel/library/parallel/doc/parallel.pdf

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

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

[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

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

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] 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] 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] Plink bed files

2008-07-25 Thread Robert Gentleman
parser. Robert Federico Calboli wrote: Hi All, does anyone know how to import binary .bed files generated by Plink (http://pngu.mgh.harvard.edu/~purcell/plink/ ) into R? the Plink FAQ explains how to conver other types of files, not the .bed. Cheers, Federico -- Federico C. F. Calboli

[R] help with longitudinal data plot

2008-08-07 Thread Robert Terwilliger
19 100.00 ... Any help would be appreciated. Regards, Robert Terwilliger __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

[R] Simple (?) subset problem

2008-08-14 Thread Farley, Robert
0 WESTBOUND 0 > Robert Farley Metro 1 Gateway Plaza Mail Stop 99-23-7 Los Angeles, CA 90012-2952 Voi

Re: [R] Simple (?) subset problem

2008-08-14 Thread Farley, Robert
ctor with ~15 "levels" and I'm a REALLY poor typist} Thanks! Robert Farley Metro www.Metro.net -Original Message- From: Erik Iverson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 15:47 To: Farley, Robert Cc: r-help@r-project.org Subject: Re: [R] Simple (?) s

[R] Survey Design / Rake questions

2008-08-18 Thread Farley, Robert
h Hollywood") > EBOnNewTots <- c(1000, 600, 1200, 500, 1000, 500, 200, 250, 1000, 300, 100, 50,73.65 ) > EBNumStn <- c(673.65, 800, 1000, 1000, 800, 700, 600, 500, 400, 200, 50, 50 ) >

Re: [R] Survey Design / Rake questions

2008-08-18 Thread Farley, Robert
be kept. Appending "time on bus" estimates Determining the "time on bus" distribution (second survey?) Implementing the raking adjustment for a production (large) dataset As of yet, I cannot get the first step to work :-( I hope there are no "fa

  1   2   3   4   5   6   7   8   9   >