Re: [R] meta-question about R

2014-04-24 Thread mark
ev/shm, to name them something that I can use with wildcards in rkhunter's configuration file so that rkhunter ignores them. mark -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Jim Lemon Sent: Wednesday, April

[R] Creating a flat legend 'grob' for lattice xyplot

2011-07-27 Thread Mark
Hi, I want my xyplot legend to be flat, not tall, and there seems to be no way for xyplot's auto.key and key elements to do this: I tried many, many permutations of what I could find in the archives and reading the documentation. If there there's a way to make it flat, please tell me what the mag

Re: [R] Creating a flat legend 'grob' for lattice xyplot

2011-07-27 Thread Mark
Hi Marcus, That's almost it! So ncol and column do the same thing in different functions... gah! Because my real use of xyplot I override the default plotting colors and character, autokey doesn't 'know' this, so they don't match. So the addition of the par.settings element is needed (from anot

[R] Help with R

2011-07-28 Thread mark
1. How can I plot the entire tree produced by rpart? 2. How can I submit a vector of values to a tree produced by rpart and have it make an assignment? Mark References Visible links Hidden links: 1. mailto:r-help@r-project.org

[R] help with rpart

2011-07-28 Thread mark
1. How can I plot the entire tree produced by rpart? 2. How can I submit a vector of values to a tree produced by rpart and have it make an assignment? Mark __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] help with plot.rpart

2011-07-29 Thread mark
à data=read.table("http://statcourse.com/research/boston.csv";, , sep=",", header = TRUE) à library(rpart) à fit=rpart (MV~ CRIM+ZN+INDUS+CHAS+NOX+RM+AGE+DIS+RAD+TAX+ PT+B+LSTAT) Please: Show me the tree. Mark Original Message ---

Re: [R] help with predict.rpart

2011-07-29 Thread mark
st to the results on obtains with CART or C5 Original Message Subject: Re: [R] help with rpart From: Sarah Goslee Date: Fri, July 29, 2011 7:48 am To: m...@statcourse.com Cc: r-help@r-project.org Mark, The R-help list is not telepathic. I asked entirely reasonable follow-up question

Re: [R] help with plot.rpart

2011-07-29 Thread mark
: [2]m...@statcourse.com Cc: [3]r-help@r-project.org Mark, The below is not directly reproducible. There is no "MV" or "PT" variable in the dataset you reference. I am assuming you meant: dat <- read.table("http://statcourse.com/research/boston.csv";, , sep=&q

[R] rpart, resolution

2011-07-29 Thread mark
Thank you for all your help. The unexpected solution to my predict() problem was to use the Misc menu and remove all objects before proceeding further. The final digits of the trees continue to be clipped but I can live with that. Mark __ R-help@r

[R] PCA in r

2011-12-22 Thread Mark
hen I try to follow some of the examples online I receive a number of errors in r that I don't understand. Any help would be greatly appreciated. thanks Mark [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] glm(quasipoisson) with non-integer response

2008-04-17 Thread Mark
on-integer response data? Thanks! I'd welcome your thoughts and/or references... Mark __ 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 pr

[R] Please help me to produce smoothed contour plots

2008-10-01 Thread Mark
Please help me to produce smoothed contour plots. I have dependent data generated at regular intervals of two independent variables and would like to produce smoothed contour plots - I cannot get interp (alima) to produce cubic interpolations of the data, only linear ones. I'm interested in smooth

[R] cubic bivariate interpolation on regular grid

2008-10-01 Thread Mark
Please help me to produce smoothed contour plots. I have dependent data generated at regular intervals of two independent variables and would like to produce smoothed contour plots - I cannot get interp (alima) to produce cubic interpolations of the data, only linear ones. I'm interested in smooth

[R] add labelled contour lines to filled.contour plot

2008-10-01 Thread Mark
Is it possible to add labelled contour lines to filled.contour plot ? [[alternative HTML version deleted]] __ 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.or

Re: [R] Learning advanced R

2018-03-13 Thread Mark Leeds
See Hadley's advanced R along Thomas Mailund's books. I haven't gone through them carefully but they both seem (from what I've looked at ) to be the best ones for that. Mentions of others are appreciated. On Tue, Mar 13, 2018 at 5:26 PM, Nik Tuzov wrote: > > Hello: > > Could you please sugge

Re: [R] Hacked

2018-04-17 Thread Fowler, Mark
Just an observation. I have not seen the spam you are discussing. Possibly it is specific to gmail addresses? -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luis Puerto Sent: April 17, 2018 4:11 PM To: Peter Langfelder Cc: R-Help ML R-Project; Neotropic

Re: [R] Hacked

2018-04-17 Thread Mark Leeds
PM, Ding, Yuan Chun wrote: > >> No, I do not use gmail, still got dirty spam email twice. >> >> -Original Message- >> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Fowler, >> Mark >> Sent: Tuesday, April 17, 2018 12:32 PM >> To

Re: [R] Hacked

2018-04-18 Thread Fowler, Mark
Seems it must be the R-list. A horde of ‘solicitation’ emails began arriving about 27 minutes after I posted about not seeing any! Had left work by that time, so did not encounter them until now. From: Mark Leeds [mailto:marklee...@gmail.com] Sent: April 18, 2018 12:33 AM To: Rui Barradas Cc

[R] Aggregate counts of observations with times surrounding a time?

2017-05-15 Thread Mark Noworolski
I have a data frame that has a set of observed dwell times at a set of locations. The metadata for the locations includes things that have varying degrees of specificity. I'm interested in tracking the number of people present at a given time in a given store, type of store, or zip code. Here's an

Re: [R] package to fit mixtures of student-t distributions

2017-06-29 Thread Mark Leeds
Hi: The R package below may be of use to you. https://journal.r-project.org/archive/2009-1/RJournal_2009-1_Ardia+et+al.pdf On Thu, Jun 29, 2017 at 12:15 PM, Ranjan Maitra wrote: > Would package "teigen" help? > > Ranjan > > On Thu, 29 Jun 2017 14:41:34 +0200 vare vare via R-help < > r-help@r-p

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-07-04 Thread Mark Sharp
to have with any guidance regarding how to use the other columns in you data set (e.g., the event(0/1)). Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jul 4, 2017, at 7:02 AM, Sunny Singha > wrote: > > Thanks Boris and Bret, > I was successful in simulating granular/tra

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-07-05 Thread Mark Sharp
I am trying to figure out the algorithm you are using to calculate event_episodes, event_status, and start_minutes. Where does the 129600 come from? Why is the start(minutes) 0 for the last row instead of 40? Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jul 5, 2017, at 1:03

[R] metRology package

2017-07-12 Thread mark . hogue
t right for harder problems. Thanks in advance for any suggestions. - Mark [[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 po

Re: [R] Loading Rcmdr

2017-07-24 Thread Mark Sharp
stringi_1.1.5 grid_3.4.1 [45] tools_3.4.1 magrittr_1.5lazyeval_0.2.0 tibble_1.3.3 [49] Formula_1.2-2 cluster_2.0.6 MASS_7.3-47 Matrix_1.2-10 [53] data.table_1.10.4 minqa_1.2.4 rpart_4.1-11nnet_7.3-12 [57] nlme_3.1-131compiler_3.4.1 &g

Re: [R] How to concatenate in R

2017-08-02 Thread Mark Sharp
://www.statmethods.net/management/merging.html Look at the readxl package. You may want to start with http://readxl.tidyverse.org. Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Aug 2, 2017, at 6:06 AM, Swain, Subrat wrote: > > > Hi, > > I have 6 excel files, I want to c

Re: [R] by() subset by factor gives unexpected results

2017-08-05 Thread Mark Leeds
$x, i$y, col = i$B) points(j$x, j$y, col = j$B) On Sat, Aug 5, 2017 at 5:59 AM, Myles English wrote: > > The answer was (thanks to Mark Leeds) to do with the use of a factor > instead of a vector. > > on [2017-08-05] at 08:57 Myles English writes: > > > I am having trouble u

Re: [R] Error in setwd("dir") :

2017-08-05 Thread mark . hogue
Did you put the directory in quotes with forward slashes? Please show command used. Sent from my iPhone > On Aug 5, 2017, at 1:10 PM, ? ? wrote: > > Hello, I got some of the R source code and not being able to Run it in > RStudio. > I get the error: > > Error in setwd("dir") : > cannot change

Re: [R] Package nleqslv ERROR

2017-08-09 Thread Mark Sharp
scriptive). Thus, when "x" inside your function gets the value of "startx" it becomes a numeric vector of length 2, which is then used to set the length of the numeric vector "f". As soon as the function tries to assign a value to f[3], R correctly throws an informativ

Re: [R] Comparing 2 dale columns

2017-08-23 Thread Mark Sharp
ctor to POSIXct so you do not necessarily ## need the as.Date. However, they are not the same and you may need the Date ## class. data$COL2 <- as.Date(strptime(data$COL2, format = "%m/%d/%y")) data$COL1 <- as.Date(strptime(data$COL1, format = "%m/%d/%y")) data data$Date

Re: [R] Interesting behavior of lm() with small, problematic data sets

2017-09-05 Thread mark . hogue
Tim, I think what you're seeing is https://en.wikipedia.org/wiki/Loss_of_significance. Cheers, Mark From: "Glover, Tim" To: "r-help@r-project.org" Date: 09/05/2017 11:37 AM Subject:[R] Interesting behavior of lm() with small, problematic data set

[R] email threads chronology

2016-05-30 Thread Fowler, Mark
but irritating. The preceding replies suggest this is something going on at my end, perhaps related to network security. I'm curious what might be causing it, and if there is something I can do about it - short of contacting IT staff, which is more irritating than the corrupted threads. Ma

[R] Assign value to plot variable name (make.group functions)

2016-06-13 Thread Mark Fingerle
1), more=False) dev.off() I would like to assign a value to ID1, so that this value is shown on the plot labels after it is printed. Something like : ID1 <- Name1 , and Name1 is shown in the plots. Thank you very much in advance. Cheers Mark Fingerle [[alternative HTML version de

Re: [R] function for over dispersed poisson regression in the setting of a random effects model

2016-06-26 Thread Mark Podolsky
Hi John, The Gamlss.mx <http://gamlss.mx/> package can accommodate variables that follow negative binomial (and other) distributions in multilevel models. Mark > On Jun 25, 2016, at 11:00 PM, John Sorkin wrote: > > Is there a function that will run a model appropriate for

Re: [R] C/C++/Fortran Rolling Window Regressions

2016-07-21 Thread Mark Leeds
you need. The paper at the link below isn't the paper I'm talking about but it's reference[1] in that paper. Note that this suggestion might not be a better approach than the various approaches already suggested so I wouldn't go this route unless you're very interested. M

Re: [R] C/C++/Fortran Rolling Window Regressions

2016-07-21 Thread Mark Leeds
cs right? Bayesian Model Averaging, G-ARCH models for > heteroscedasticity, etc. > > Anyway... roll::roll_lm, cheers! > > Thanks, > Jeremiah > > > > On Thu, Jul 21, 2016 at 2:08 PM, Mark Leeds wrote: > >> Hi Jermiah: another possibly faster way would be to use

Re: [R] How to connect Microsoft Sql server from R studio using freeTDS instead of RODBC package

2016-08-29 Thread Mark Sharp
oduct from Actual Technologies. The driver you use is computer OS specific while RODBC is not. It is also convenient to use an ODBC manager, which is typically a graphical application used to create and manage the configuration files used by the ODBC driver. Mark R. Mark Sharp, Ph.D. Director

Re: [R] How to connect Microsoft Sql server from R studio using freeTDS instead of RODBC package

2016-08-29 Thread Mark Sharp
ase server has a firewall rule that is not allowing a connection from shinyapps.io. However, please note, I have not used shinyapps.io and am making these guesses based on my experience with RODBC and the documentation I have read. You will want to find someone with shinyapps.io experience. Mar

Re: [R] How to connect Microsoft Sql server from R studio using freeTDS instead of RODBC package

2016-08-30 Thread Mark Sharp
Manu, As far as I can tell you have not taken the advice from Wim Jansen, who gave you guidance on how to specify the freetds driver in your connection function. I do not think you need the unixodbc. In my experience having too much is as bad as not having enough. R. Mark Sharp, Ph.D

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread Mark Sharp
What do you get from str(SFDC$case_age) Mark R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549 San Antonio, TX 78245-0549 Telephone: (210)258-9476 e-mail: msh...@txbiomed.org > On Aug

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread Mark Sharp
Shivi, Can you show the code that throws the error? <0 rows> (or 0-length row.names) Of course as always a reproducible sample would be great. Perhaps you can make a small subset of the data and use dput() to provide a defined object. R. Mark Sharp, Ph.D. Director of Primate Records Da

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread Mark Sharp
error. I successfully assigned the structure you sent to the name SFDC and nothing seems amiss. Mark R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549 San Antonio, TX 78245-0549 Telephone: (210

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread Mark Sharp
. For example, there is a WOE function in the Information package and a woe function in the woe package. Mark On Aug 30, 2016, at 2:15 PM, Shivi Bhatia mailto:shivipm...@gmail.com>> wrote: Hi Mark, What i understand, probably when i run the WOE & IV to check significant variables that

Re: [R] 0 rows> (or 0-length row.names)

2016-08-31 Thread Mark Sharp
Shivi, Looking at the help from ?WOE, ?WOETable, and ?IV, your Y vector in all cases is to be categorical and it is numeric. Mark R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549 San

Re: [R] Help with a code in R

2016-09-05 Thread Mark Sharp
http://www.R-project.org/posting-guide.html Mark R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549 San Antonio, TX 78245-0549 Telephone: (210)258-9476 e-mail: msh...@txbiomed.org >

Re: [R] Help with a code in R

2016-09-07 Thread Mark Sharp
C.csv") b <- data.frame(datos) dput(b[1:10, ]) calendar <- read.csv("C:/Users/ErikaRocío/Documents/Curso R/cat_sem.csv") forecast_date <- calendar[, c(8, 9, 14, 10)] dput(forecast_date[1:10, ]) espejo <- read.csv("C:/Users/ErikaRocío/Documents/Curso R/cat_prod.cs

Re: [R] Have help list filters changed recently

2016-09-09 Thread Mark Leeds
Hi Bert: I saw that and let it through. I am not the one to ask but as far as I know, the filtering has not changed. On Thu, Sep 8, 2016 at 8:35 PM, Bert Gunter wrote: > To all: > > r-help has been holding up a lot of my recent messages: Have there > been any changes to help list filters that c

Re: [R] Drill down reports in R

2016-09-13 Thread Mark Sharp
Manu, With pure R, you can simply write a link in the parent document to a child document you have created. Alternative, and likely better, solutions could be based on AJAX, but I do not think you are going to do that all within R. Mark > On Sep 13, 2016, at 11:11 AM, Manohar Reddy wr

Re: [R] Closed list?

2016-09-29 Thread Mark Sharp
Its not closed. Have you read the posting guide? Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org<mailto:msh...@txbiomed.org> On Sep 29, 2016, at 1:38 PM, Joysn71 mailto:joys...@gmail.com>> wrote: Hello, a few weeks ago i subscribed to this list and afterwards i send a questi

Re: [R] Closed list?

2016-09-29 Thread Mark Leeds
someone who moderates the list, myself included, may have mistakened it for spam and rejected it. In that case, it never got to the list. On Thu, Sep 29, 2016 at 4:53 PM, Duncan Murdoch wrote: > On 29/09/2016 2:38 PM, Joysn71 wrote: > >> Hello, >> >> a few weeks ago i subscribed to this list a

Re: [R] Closed list?

2016-09-29 Thread Mark Leeds
my bad david. thanks for info. On Fri, Sep 30, 2016 at 12:37 AM, David Winsemius wrote: > > > On Sep 29, 2016, at 8:57 PM, Mark Leeds wrote: > > > > someone who moderates the list, myself included, may have mistakened it > for > > spam and rejected it. In that

[R] Predictions on training set shorter than training set

2015-04-23 Thread Mark Drummond
58152 > As a relative newcomer, I've run lots of simple glm, CART etc. models but this is the first time I have seen this happen. Is this a common issue and is there a fix? An option to predict() perhaps? -- Cheers, Mark Mark Drummond m...@markdrummond.ca When I get sad, I stop be

[R] knittr: non-numeric argument to binary operator

2015-04-26 Thread Mark Drummond
ppreciated at this point. -- Cheers, Mark Mark Drummond m...@markdrummond.ca When I get sad, I stop being sad and be Awesome instead. TRUE STORY. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PL

Re: [R] knittr: non-numeric argument to binary operator

2015-04-26 Thread Mark Drummond
Thanks all for the responses. As Murphy would have it, after posting my query I found the problem. I had a function defined that did some value mapping and I had a stray line of code in the function. Actually a legitimate line of code that was just in the wrong place. Cheers, Mark On Sun, Apr

Re: [R] Help with making Loop

2015-05-02 Thread Mark Sharp
Fazal, I am not sure what you want, but I have guessed. I have tried to provide a straight forward simplistic solution. If you examine the intermediate results, I think what is being done will be clear. Mark Michael Dewey’s suggestion to look at merge is excellent. You may also need to look

Re: [R] best way to handle database connections from within a package

2015-05-29 Thread Mark Sharp
I would simply separate the database connect and disconnect functions from the query functions. Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On May 28, 2015, at 12:18 PM, Luca Cerone wrote: > > Dear all, > I am writing a package that is a collection of queries to be run

[R] Toronto CRAN mirror 403 error?

2015-05-29 Thread Mark Drummond
I've been getting a 403 when I try pulling from the Toronto CRAN mirror today. http://cran.utstat.utoronto.ca/ Is there a contact list for mirror managers? -- Cheers, Mark *Mark Drummond* m...@markdrummond.ca When I get sad, I stop being sad and be Awesome instead. TRUE

Re: [R] Toronto CRAN mirror 403 error?

2015-05-30 Thread Mark Drummond
#. with > /Software/Embedded Controllers) .OO#. .OO#. rocks...1k > --- > Sent from my phone. Please excuse my brevity. > > On May 29, 2015 7:12:56 PM PDT, Mark Drummond > wrote: > >I'

Re: [R] Toronto CRAN mirror 403 error?

2015-05-30 Thread Mark Drummond
> It's possible that the mirror manager is unaware of this, and might like > to be informed. I know him, and will send an email. > > Duncan Murdoch Thanks Duncan. -- Cheers, Mark __ R-help@r-project.org mailing list -- To UNSUBSCR

Re: [R] source code for dbeta

2015-06-07 Thread Mark Sharp
vailable from the same CRAN (or CRAN compatible) repository that the package was originally installed from. The download.packages() function can get the package source for you. Extracted from http://stackoverflow.com/questions/19226816/how-can-i-view-the-source-code-for-a-function Mark R. Ma

Re: [R] source code for dbeta

2015-06-07 Thread Mark Sharp
compiled code. Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jun 7, 2015, at 5:11 PM, Mark Sharp wrote: > > Varun, > > If you type dbeta at the command line you get the R source, which in this > case tells you that the code is calling a compiled source. This is indica

Re: [R] problems editing R console

2015-06-07 Thread Mark Sharp
Rosa, See save() and load() functions for background. However, I suspect you will want to do something as described in the article in this link http://www.fromthebottomoftheheap.net/2012/04/01/saving-and-loading-r-objects/ Mark R. Mark Sharp, Ph.D. Director of Primate Records Database

Re: [R] Blank spaces are replaced by period in read.csv, I want to replace blacks with an underline

2015-06-08 Thread Mark Sharp
]) > example Col.1.A Col.1.B 1 1 a 2 2 b 3 3 c > library(stringi) > names(example) <- stri_replace_all_fixed(names(example), ".", "_") > example Col_1_A Col_1_B 1 1 a 2 2 b 3 3 c R. Mar

Re: [R] create a dummy variables for companies with complete history.

2015-06-24 Thread Mark Sharp
es not do anything in your example, but it is poor practice. Always write out TRUE and FALSE R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jun 24, 2015, at 1:26 PM, giacomo begnis wrote: > > Hi, I have a dataset (728 obs) containing three variables code of a company, > year and

Re: [R] question

2015-07-03 Thread Mark Sharp
;- Scores(Z=metalofGT, formula = my_formula) save(prep, file = paste0("prep", i)) } ### Mark R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549 San Antonio, TX 78245-0549 Telephone:

Re: [R] question

2015-07-06 Thread Mark Sharp
character vector. Mark R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549 San Antonio, TX 78245-0549 Telephone: (210)258-9476 e-mail: msh...@txbiomed.org > On Jul 6, 2015, at 9:05 AM, Lida Zeigh

[R] norm's book

2015-07-08 Thread Mark Leeds
Hi All: In case anyone is interested, Norm's new book, "parallel computing for data science" is out on amazon. It already got raving reviews from Dave Giles who runs a popular econometrics blog. Mark [[alternative HTML

Re: [R] R 3.1.2 : arima.sim(model=list(ma=0.5), n=250, innov=rnorm(250, mean=0, sd=0.1)) versus arima.sim(model=list(ma=0.5), n=250, mean=0, sd=0.1) => only the first element is not identical !

2015-07-11 Thread Mark Leeds
Hi Fabian: I think one would say that that is not a bug. I looked at the details of arima.sim ( using debug(arima.sim) ) and there are two different series that are created inside the function. one is called innov and the other is start.innov. start.innov is used to create a burn in period for the

Re: [R] write.table with append=T after using cat on same file

2015-07-27 Thread Mark Sharp
I do not get an error with R-3.2.1 on Mac OS. You may have done something prior to this code so that perhaps F is not FALSE or T is not TRUE. R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jul 27, 2015, at 3:32 PM, Waichler, Scott R > wrote: > > Hi, > > For years I&#x

Re: [R] Reading Json data

2015-07-27 Thread Mark Sharp
Mayukh, I think you are missing an argument to paste() and a right parenthesis character. Try json_data <- fromJSON(paste(readLines(json_file), collapse = " ")) Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jul 27, 2015, at 3:41 PM, Mayukh Dass wrote: > > H

Re: [R] R command to open a file "browser" on Windows and Mac?

2015-08-03 Thread Mark Sharp
Set your path with setwd(“my_path”) and then use file.choose(). You could have gotten this information sooner with a simple online search. Mark R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549

Re: [R] Reading Json data

2015-08-10 Thread Mark Sharp
message_remainder <- get_first_json_message(t_json_txt) json_list[i] <- list(fromJSON(message_remainder$object)) if (message_remainder$remainder == "") break t_json_txt <- message_remainder$remainder } json_list } json_file <- "../data/js

Re: [R] New to R

2014-12-15 Thread Mark Sharp
by Norman Matloff. For a bit more depth I like Hadley Wickham's Advanced R book (http://adv-r.had.co.nz). Mark Sharp R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549 San Antonio, TX 78245

[R] regular expression question

2015-01-12 Thread Mark Leeds
Hi All: I have a regular expression problem. If a character string ends with "rhofixed" or "norhofixed", I want that part of the string to be removed. If it doesn't end with either of those two endings, then the result should be the same as the original. Below doesn't work for the second case. I kn

Re: [R] Plot residuals against standard normal distribution

2015-02-02 Thread Hall, Mark
.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Mark E. Hall, PhD Assistant Field Manager, Black Rock Field Office Winnemucca District Office 775-623-1529. [[alternative HTML version deleted]] __

Re: [R] Help with looping

2015-02-17 Thread Mark Sharp
printf('file/%s',years[i])) } # Data[1] will have the character vector made up of the lines in 'file/2000'. Mark R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549 San Antoni

Re: [R] Help with looping

2015-02-17 Thread Mark Sharp
printf('file/%s',years[i])) } # Data[1] will have the character vector made up of the lines in 'file/2000'. Mark R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549 San Antonio, TX

Re: [R] Best Mac for R

2015-02-25 Thread Mark Sharp
For what I do, which does not require a lot of parallel work, the high end iMac was faster and much less expensive than the Mac Pro. Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Feb 25, 2015, at 1:50 PM, Dan Murphy wrote: > > I am possibly in the market for a n

[R] rms package: error with Glm

2015-03-02 Thread Mark Seeto
nyone can give. Mark Seeto # library(rms) set.seed(1) n <- 100 # sample size beta0 <- 3.7 beta1 <- 1.5 beta2 <- 0.9 beta3 <- 0.5 rate.x1 <- 2 mean.x2 <- 1 sd.x2 <- 2 nu <- 1.3 d <- dat

Re: [R] Extract year from date

2015-03-08 Thread Mark Sharp
c("ID", "Date", "DepthtoWater_bgs", "test", "test2"), class = "data.frame", row.names = c("1", "2", "3", "4", "5", "6", "7", "8", "9", "10&quo

[R] glmnet: converting coefficients back to original scale

2015-03-19 Thread Mark Seeto
he same as coef(glmnet2)["x2", "s0"] ## I can apply a similar method (with centring of y instead of standardisation) to successfully get the coefficient estimates on the original scale given by lm.

Re: [R] glmnet: converting coefficients back to original scale

2015-04-04 Thread Mark Seeto
Thanks for your reply Mehmet. I've found that the problem was that I didn't scale the lambda value. My original example did not follow the instruction not to give a single lambda value, but that in itself wasn't the problem. Example shown below. library(glmnet) library(MASS) set.seed(1) n <- 20

Re: [R] F-test where the coefficients in the H_0 is nonzero

2018-08-09 Thread Mark Leeds
Hi: the F-test is a joint hypothesis ( I never used that function from the car package but it sounds like it is ) and the t-statistics that come out of a regression are "conditional" in the sense that they test the significance of one coefficient given the other so you wouldn't expect the two ou

Re: [R] R Data

2019-02-14 Thread Fowler, Mark
Hi Spencer, The an1 syntax is adding regression coefficients (or NAs where a regression could not be done) to the downloaded and processed data, which ends up a matrix. The cbind function adds the regression coefficients to the last column of the matrix (i.e. bind the columns of the inputs in t

Re: [R] R Data

2019-02-14 Thread Fowler, Mark
I am not sure I would use the word ‘accounted’, more like discounted (tossed out). From: Spencer Brackett Sent: February 14, 2019 9:21 AM To: Fowler, Mark Cc: R-help ; Sarah Goslee ; Caitlin Gibbons ; Jeff Newmiller Subject: Re: R Data Mr. Fowler, Thank you! This information is most

Re: [R] color palettes

2014-08-08 Thread Mark Knecht
?rainbow ?col2rgb rainbow(8) col2rgb(rainbow(8)[5]) col2rgb(rainbow(8)[5])[1] col2rgb(rainbow(8)[5])[2] col2rgb(rainbow(8)[5])[3] On Fri, Aug 8, 2014 at 6:26 AM, carol white wrote: > Hi, > Is there any way to take one color of each color family from a color palettes > like rainbow? For ex, if

[R] hadley's book

2014-08-21 Thread Mark Leeds
I have a feeling hadley's book will be quite popular so just a heads up that it can now be pre-ordered on amazon. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] ANY ONE HERE PLZ Urgent

2014-08-28 Thread Mark Sharp
January < February < March < April < May < June < July < ... < December > as.character(month(x, label = TRUE, abbr = FALSE)) [1] "August" Mark On Aug 28, 2014, at 5:33 AM, arun wrote: > Try: > > format(as.Date("05/07/2014", "%m/%d/%Y&q

Re: [R] R-tool - OS compatibility help

2014-08-29 Thread Mark Sharp
See http://cran.r-project.org/ On Aug 28, 2014, at 11:41 PM, Ravi Kumar Rupakula wrote: > Dear Support, > > Please let us know Windows 2008R2 OS compatibility for "R" tool is available > or not? > If available, please let us know the details. >

[R] hadley's book

2014-09-29 Thread Mark Leeds
Just a heads up to list: I don't know about other book sites but, on U.S Amazon, Hadley's Advanced R book is no longer in pre-order mode. You can purchase the book now without pre-ordering it. Mark [[altern

[R] reading in hexadecimal data - not working with data ending in E

2014-10-08 Thread mark . hogue
055E` or `020E`. In these cases, the E is stripped so I get just 055 or 020. The question is how should this data be imported to avoid the E-ending problem? (By the way, my follow-up is to convert this data using, `y <- strtoi(y.hex, 16L)`) Thanks for any suggestions, Mark Hogue

Re: [R] reading in hexadecimal data - not working with data ending in E

2014-10-09 Thread mark . hogue
Thanks to all for your help. The colClasses option did do the trick. [[alternative HTML version deleted]] __ 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.o

Re: [R] Getting the most recent dates in a new column from dates in four columns using the dplyr package (mutate verb)

2014-11-10 Thread Mark Sharp
006-09-01 6 6 2007-09-04 2011-10-05 2011-10-05 7 7 2005-10-25 2011-11-04 2011-11-04 R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549 San Antonio, TX 78245-0549 Tele

Re: [R] range () does not remove NA's with complete.cases() for dates (dplyr/mutate)

2014-11-10 Thread Mark Sharp
Pradip, For some reason mutate is not setting the is.NA value for the new column. Note the output below using your data structures. > ## It looks at first as if the second element of both columns are NA. > data2$mrjdate[2] [1] NA > data2$oiddate[2] [1] NA > ## for convenience > mrj <- data2$mrjd

Re: [R] Error: (list) object cannot be coerced to type double; on running the following code in R ver 3.1.2

2014-11-11 Thread Mark Sharp
values. You probably want the following for your last line. (See ?sum). nummk <- length(vbm[ !is.na(vbm[ , 2], 2]) ## or nummk <- nrow(vbm[!is.na(vbm[ , 2], ]) ## The is.na(vbm[ ,2]) returns a logical vector (for example c(FALSE, TRUE, TRUE)) Mark R. Mark Sharp, Ph.D. Director Primate R

[R] see rcurl contents before they're sent?

2014-11-20 Thread Mark Miller
erver (instead of, or in addition to send it to the server?) thanks, Mark [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-projec

Re: [R] C project within R function

2014-11-21 Thread Mark Sharp
thers to organize my work because it is the easiest way to structure projects that use many functions. As Duncan has stated, it is the only reasonable way to use C, FORTRAN, or C++ subroutines and functions. Mark > On Nov 21, 2014, at 6:52 PM, Duncan Murdoch wrote: > > On 21/11/2014,

Re: [R] Presentation tables in R (knitr)

2014-11-25 Thread Mark Sharp
the problem? Mark > On Nov 25, 2014, at 2:12 PM, Tom Wright wrote: > > Hi, > This problem has me stumped so I thought I'd ask the experts. I'm trying > to create a pretty summary table of some data (which patients have had > what tests at what times). Ideally I'd

Re: [R] Rodbc retrieve data

2015-08-19 Thread Mark Sharp
, but that is another topic. Try this. title (main = paste0("Mapa de los dblinks del entorno: ", dbName),sub="Luis Diaz - Emergencies & improvments") Mark P.S. Spelling correction - "improvements" R. Mark Sharp, Ph.D. Director of Primate Records Database

[R] [R-pkgs] New packages on CRAN: googleAuthR and searchConsoleR

2015-08-31 Thread Mark Edmondson
. Hope they are of interest, do let me know what you build with them! Yours sincerely, Mark [[alternative HTML version deleted]] ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages

Re: [R] SSD vs RAM upgrade

2015-09-14 Thread Mark Sharp
John, Unless you are doing something very unusual (such as using a database to keep intermediate results) SSD hardware will have no affect on R being memory bound. According to the behavior you described, you need RAM. R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest

  1   2   3   4   5   6   7   8   9   10   >