Re: [R] Create new data frame with conditional sums

2023-10-15 Thread Jason Stout, M.D.
the result result So thanks to all for considering this query�we're in a brave new world of AI-generated coding. Message: 3 Date: Fri, 13 Oct 2023 20:13:56 + From: "Jason Stout, M.D." To: "r-help@r-project.org" Subject: [R] Create new data frame with conditi

[R] Create new data frame with conditional sums

2023-10-14 Thread Jason Stout, M.D.
op" for (i in seq(0,0.15,by=0.01)) { temp<-sum(dummydata[dummydata$Pct>=i,"Totpop"]) dfrm[nrow(dfrm)+1,]<-c(i,temp) } Jason Stout, MD, MHS Division of Infectious Diseases Dept of Medicine Duke University Box 102359-DUMC Durham, NC 27710 FAX 919-681-7494 [[altern

[R] how to view and edit this RData file

2020-07-22 Thread Jason Levy
Dear R Scholars Many R users have successfully loaded and used the attached WVS RDATA file into my R program. I would just would like help viewing, editing etc. I wanted to include the actual RData file (which was not attached previously) I can successfully load the RData file: load('WVS.RData')

[R] viewing, editing and saving an RDATA file

2020-07-22 Thread Jason Levy
Dear R Scholars Many R users have successfully loaded and used the attached WVS RDATA file into my R program. I would just would like help viewing, editing etc. It is only one line of code to load in. *load('WVS.RData')* I would like help on how to view, edit and save this 2.461 MB RData file. The

Re: [R] RODBC Multiple Results

2020-03-30 Thread Law, Jason
package (https://github.com/r-dbi/odbc), although there it appears that it isn’t possible there yet, there is a pull request which adds this functionality for sqlServer. You may want to try hitting up the author of the pull request. Regards, Jason From: R-help On Behalf Of Bert Gunter Sent

[R] GAM P value (package mgcv)

2019-06-27 Thread Jason 林俊
value of PC1 and PC2. Approximate significance of smooth terms: edf Ref.df Chi.sq p-value s(PC1) 8.892 8.996 57402 <2e-16 *** s(PC2) 8.978 9.000 15125 <2e-16 *** But, we still cannot find out a way to calculate the P value for the original five parameter. Jason / L

[R] Second attempt: Cannot reproduce tutorial results

2019-02-25 Thread Jason Hernandez via R-help
Okay, I switched to plain text. Let's see if people can see this better. I have come back to trying to learn R after a long time away, and have begun with the YouTube tutorial videos by David Langer, as seen on "Introduction to Data Science with R - Data Analysis Part 1." I am using R Studio with

[R] Cannot reproduce tutorial results

2019-02-22 Thread Jason Hernandez via R-help
I have come back to trying to learn R after a long time away, and have begun with the YouTube tutorial videos by David Langer, as seen here Introduction to Data Science with R - Data Analysis Part 1. I am using R Studio with R version 3.4.4 (2018-03-15) -- "Someone to Lean On" Around 1:16:00 in

[R] Any package which takes the likelihood function and do Lasso fitting?

2017-09-26 Thread Jixian (Jason) Wang
df. Had a look at lasso packages at CRAN and couldn't find a general purpose one. Although I can use an optimizer, I guess it may be less efficient than specific ones for Lasso. I would be grateful for suggestions on packages or on how to efficiently use a general optimizer. Bes

Re: [R] One Dimensional Monte Carlo Simulation

2017-08-01 Thread Law, Jason
Tony, I’m not sure what exactly you’re trying to do, but you're not really taking advantage of vectorization in your R code. I've tried to clean it up a little. The clamped lognormal is almost always 0 or L? That seems a little odd. You seem to be using the inverse cdf method of drawing samples

[R] [R-pkgs] new package: arsenal

2017-01-12 Thread Sinnwell, Jason P.
r-project.org/web/packages/arsenal/vignettes/freqlist.pdf Suggestions and contributions are welcome. Best, Jason Sinnwell Ethan Heinzen -- Jason Sinnwell and Ethan Heinzen Mayo Clinic Department of Health Sciences Research Division of Biomedical Statistics and Informatics [[altern

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

2016-08-19 Thread Jason Foster
I looked into why the coefficients differ in Gabor's example and it's because the example mistakenly switched the order of x and y. The syntax is roll::roll_lm(x, y), which is the same as fastLm, but the example accidentally switched them. After correcting the example, the coefficients are all e

[R] Ensembles for multi-class predictions

2016-05-23 Thread Jason Hendrix
I have trained two models using the caret library for R and would like to combine the two multi-class trained models into one ensemble. My first thought was to use caretEnsemble, but it does not yet support multi-class predictions. See https://github.com/zachmayer/caretEnsemble/issues/8 Is there

[R] Cannot Install Packages

2016-05-10 Thread Jason Hernandez via R-help
I have been trying to install the package "reshape2" using the code: > install.packages("reshape2") I get the following return: Installing package into ‘C:/Users/Jason/Documents/R/win-library/3.0’ (as ‘lib’ is unspecified) Warning: unable to access index for repository htt

[R] Using read.csv() to import data

2016-04-24 Thread Jason Hernandez via R-help
ile or directory Aside from the obvious (how can it say "no such file or directory" when I just saved one such?), the "cannot open the connection" is also unexpected. What am I doing wrong here? Jason Hernandezno current affiliation [[alternative HTML version deleted

[R] Why does match() treat NaN's as compables; Bug or Feature?

2016-02-27 Thread Jason Thorpe
use of `match()` (unless you think NaN == 4 is correct). Is there a good reason that NaN's are treated as comparables by match(), or his this a bug? For reference, I'm using R version 3.2.3 -Jason [[alternative HTML version deleted]]

Re: [R] Converting time zones in R using metadata file information of video files, help needed.

2015-11-23 Thread Law, Jason
The "lubridate" package will help simplify these time zone conversions. It provides two simple functions with_tz and force_tz that conceptually make things simpler. library(lubridate) > x <- as.POSIXct("2015-06-22 01:53:28", 'Europe/Berlin') > with_tz(x, 'America/Toronto') [1] "2015-06-21 19:53:

[R] Inference() Function Insisting That I Use ANOVA Versus Two-Sided Hypothesis Test; R/RStudio

2014-10-04 Thread Jason Eyerly
ical�) Returns: Response variable: numerical, Explanatory variable: categorical Error: Use alternative = 'greater' for ANOVA or chi-square test. In addition: Warning message: Ignoring null value since it's undefined for ANOVA. Best Regards, Jason Eyerly [[alterna

Re: [R] Best Beginner Books?

2014-10-01 Thread Jason Eyerly
ld read them in when they arrive? For best comprehension, I�m thinking �Introductory Statistics with R� would be the best to start with, and perhaps the beginners guide after that, or vice versa? -Jason E. On Oct 1, 2014, at 18:26, Christopher W Ryan wrote: > "Data Manipulation with R&qu

[R] Best Beginner Books?

2014-10-01 Thread Jason Eyerly
mbers. I’ve seen some other books mentioned here and there in the mailings, but I can’t recall their names. Does anyone have any though on this book, or others? Best Regards, Jason Eyerly __ R-help@r-project.org mailing list https://stat.et

Re: [R] Plotting Categorical/Numerical Data?

2014-09-29 Thread Jason Eyerly
1. Okay? 2. It was also said to be unlikely that the Wright brothers would take flight, or that the earth orbited the moon. 3. One step ahead. -Jason On Sep 28, 2014 6:53 PM, "Bert Gunter" wrote: > 1. Homework? We don't do homework here. > > 2. I believe what you p

[R] Plotting Categorical/Numerical Data?

2014-09-28 Thread Jason Eyerly
he "actual" computer game are fair and in fact "random". For example: 5 4 3 2 1 QS AH, 1S 2C, 5H KH Thanks In Advance, Jason E. [[alternative HTML version deleted]] __ R-help@r-project.org mai

[R] Issues in using GP_fit() of GPfit package

2014-08-07 Thread Jason Donnald
number when the real data can have millions of rows. Any idea what might be wrong here? Thanks in advance. Regards, Jason [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] How to perform training and testing using DPpackage of R for Non parametric Bayesian predictive analysis?

2014-08-06 Thread Jason Donnald
. Thanks in advance! Regards, Jason [[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.org/posting-guide.html and provide

Re: [R] Conditional assignment of values to vector using ifelse

2014-05-24 Thread Jason Stout, M.D.
result<-ifelse(x==1,ifelse(runif(1,0,1)<=sens,1,0), ifelse(runif(1,0,1)<=spec,0,1)) return(result) } x4<-funcsensspec(x3,sens1,spec1) x5<-funcsensspec(x3,sens2,spec2) xx<-cbind(x3,x4,x5) Jason Stout, MD, MHS Box 102359-DU

Re: [R] Conditional assignment of values to vector using ifelse

2014-05-24 Thread Jason Stout, M.D.
. Jason Stout, MD, MHS Box 102359-DUMC Durham, NC 27710 FAX 919-681-7494 From: David Winsemius [dwinsem...@comcast.net] Sent: Saturday, May 24, 2014 11:35 AM To: Jason Stout, M.D. Cc: r-help@r-project.org Subject: Re: [R] Conditional assignment of values to

[R] Conditional assignment of values to vector using ifelse

2014-05-24 Thread Jason Stout, M.D.
ant way to accomplish the task (and this would provide some insight into how ifelse is working within this function). Thanks for any assistance. Jason Stout, MD, MHS Box 102359-DUMC Durham, NC 27710 FAX 919-681-7494 [[alternative HTML version deleted]] ___

[R] Error in split.default

2014-05-08 Thread Jason Rupert
> split(df, Status) Error in split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) :   object 'Status' not found > names(PCR_duplicatedCheck_df)  [1] "Key"  "MinCreated"  "MaxUpdated"   [4] "Status" I am totally confused...what do I need to try next? ___

Re: [R] help using extrafont package | R graphics

2014-04-30 Thread Law, Jason
On my system, the name of the Garamond font file is GARA.TTF. Thus, font_import(pattern = 'GARA') will work, but font_import(pattern="gara") won't. Unfortunately, font_import seems to fail rather ungracefully when there is no match to a pattern. Jason -Orig

[R] Consistent size dashes...

2014-03-28 Thread Jason Rupert
Evidently different sized dashes were used in my data set.  Using gsub or some other method, is there a way to use a consistent dash?  With the different dash types it is difficult to build histograms, tables, barplots and perform other analysis.  Thanks again for your help and insights. 

Re: [R] "2013-06-28" coverts to 15884?

2014-03-19 Thread Jason Rupert
g information in character string format in a vector and then just convert it back later on... Thanks again. On Wednesday, March 19, 2014 5:42 PM, Jim Lemon wrote: On 03/20/2014 08:46 AM, Jason Rupert wrote: > MaxUpdated_row<-NULL > MaxUpdated_val<- "2013-06-28

[R] "2013-06-28" coverts to 15884?

2014-03-19 Thread Jason Rupert
MaxUpdated_row<-NULL MaxUpdated_val<- "2013-06-28" rbind(MaxUpdated_row, as.Date(MaxUpdated_val, "%Y-%m-%d"))   [,1] [1,] 15884 c(MaxUpdated_row, as.Date(MaxUpdated_val, "%Y-%m-%d"")) >[1] 15884 c(MaxUpdated_row, MaxUpdated_val) >[1] 15884 Evidently, I'm again missing something simple, as I

Re: [R] Help using order with data.frame

2014-03-16 Thread Jason Rupert
Thank you very much for your posts.  I updated the example, which was taken from the following: http://cran.r-project.org/doc/contrib/Torfs+Brauer-Short-R-Intro.pdf Hopefully the below is a bit more representative question, but unfortunately, it looks like I'm not inputting the dates informati

Re: [R] plotting residuals/error message

2014-03-16 Thread Gainous,Jason
Thanks John. That worked. It was an easy solution. I'm in the process of switching from Stata and some of these small things are still hanging me up. Jason -Original Message- From: John Fox [mailto:j...@mcmaster.ca] Sent: Sunday, March 16, 2014 9:51 AM To: Gainous,Jason Cc: r-h

[R] Help using order with data.frame

2014-03-15 Thread Jason Rupert
Evidently, I'm overlooking something simple.  I'm trying to used order with data.frame.   For example: t = data.frame(x = c(11,12,14), y = c(19,20,21), z = c(10,9,7)) t[order(z), ] Error in order(z) : object 'z' not found Thank you for any insights and advice provided. [[alternative

[R] plotting residuals/error message

2014-03-15 Thread Gainous,Jason
"Model Residuals") Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ Jason Gainous, Ph.D. Associate Professor Department of Political Science University of Louisville 203 Ford Hall Louisville, KY 40292 (502) 852-1660 Homepage: https://louisvi

Re: [R] Change data format query

2014-02-19 Thread Law, Jason
library(reshape2) data.melt <- melt(data, id.vars = c('BH_ID', 'BH_Name', 'Pack_Name')) dcast(dm, BH_Name ~ Pack_Name) -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of drruddy gmail Sent: Wednesday, February 19, 2014 7:18 AM To: r-

Re: [R] creating an equivalent of r-help on r.stackexchange.com ? (was: Re: Should there be an R-beginners list?)

2014-02-04 Thread Law, Jason
-mail client. Otherwise, it does mean another application. Regards, Jason -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Liviu Andronic Sent: Monday, February 03, 2014 11:24 PM To: Clint Bowman Cc: r-help@r-project.org; Bert G

Re: [R] Plotting multiple trends on one graph

2013-11-25 Thread Law, Jason
your graphs to reflect that you can easily modify the code above so that you plot the distances on the y axis and then label the axis using scale_y_continuous. Using facet_wrap or facet_grid will let you separate the animals into different plots. Regards, Jason Law Statistician City of Port

[R] [R-pkgs] Introducing pedgene 1.2 on CRAN

2013-11-22 Thread Sinnwell, Jason P.
tured Data. Genet. Epidemiol., 37: 409-418. doi: 10.1002/gepi.21727 LINK: http://onlinelibrary.wiley.com/doi/10.1002/gepi.21727/abstract We have received some valuable feedback, and welcome more. Best, Jason Sinnwell, MS Mayo Clinic Division of Biomedical Statistics and Infor

Re: [R] spsurvey analysis

2013-11-01 Thread Law, Jason
ask about this problem. Another option would be to take a different analytical approach (e.g., a mixed effects model) which would allow you a lot more flexibility. Jason Law Statistician City of Portland Bureau of Environmental Services Water Pollution Control Laboratory 6543 N Burlington Avenue

Re: [R] Selecting maximums between different variables

2013-10-17 Thread Law, Jason
See ?pmax for getting the max for each year. do.call('pmax', oil[-1]) Or equivalently: pmax(oil$TX, oil$CA, oil$AL, oil$ND) apply and which.max will give you the index: i <- apply(oil[-1], 1, which.max) which you can use to extract the state: names(oil[-1])[i] Jason -Ori

Re: [R] Plot time series data irregularly hourly-spaced

2013-10-16 Thread Law, Jason
01:00:00") testday <- rep(Sys.Date() - c(1,0), times = c(5,3)) plot(as.POSIXct(paste(testday, testtime)), var) Jason -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Charles Novaes de Santana Sent: Wednesday, October 16

Re: [R] Transposing the output of 'table'

2013-10-07 Thread Law, Jason
If you want a dataframe rather than a matrix, I often use the as.data.frame method for table objects. See ?table for the documentation. You can even nicely name the dimensions and frequency. OBJECT <- sample(4, 20, TRUE) as.data.frame(table(var1 = OBJECT), responseName = 'frequency&

Re: [R] function on columns of two arrays

2013-08-20 Thread Law, Jason
library(abind) library(plyr) c <- abind(a,b, along = 4) results <- alply(c, c(2,3), function(x) lm(x[,2] ~ x[,1])) ldply(results, function(x) summary(x)$coef) Jason Law Statistician City of Portland Bureau of Environmental Services Water Pollution Control Laboratory 6543 N Burlington

[R] Changing settings

2013-07-18 Thread Jason
How do I change my email settings? I would like to limit the emails that I receive to only those of interest. __ 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/po

Re: [R] replace multiple values in vector at once

2013-07-12 Thread Law, Jason
In the plyr package there are also the functions revalue and mapvalues: library(plyr) x <- c("a", "b", "c") revalue(x, c(a = "A", c = "C")) mapvalues(x, c("a", "c"), c("A", "C")) mapvalues work

Re: [R] String based chemical name identification

2013-07-03 Thread Law, Jason
e it pretty easy: https://github.com/mcs07/ChemSpiPy. Search the names, extract the InChI for the best match and then you can match them in R via the InChI. Might require some fixing by hand afterwards. HTH, Jason Law -Original Message- From: r-help-boun...@r-project.org [mailto:r-hel

Re: [R] Loops

2013-06-25 Thread Law, Jason
your loop with some value: z <- numeric(1000) Finally, you have some plain syntax errors: p[i]=[i+1]. That's not valid R code; '[' is the extraction operator, see help('['). I'm not sure what you're trying to do there. Perhaps: p[i] <- p[i + 1]

Re: [R] Assigning a variable value based on multiple columns

2013-04-25 Thread Jason Stout, M.D.
Thanks Patrick--I think this solution will work perfectly. Jason Jason Stout, MD, MHS Box 102359-DUMC Durham, NC 27710 FAX 919-681-7494 From: Patrick Coulombe [patrick.coulo...@gmail.com] Sent: Thursday, April 25, 2013 1:53 AM To: Jason Stout, M.D. Cc: r

[R] Assigning a variable value based on multiple columns

2013-04-24 Thread Jason Stout, M.D.
tions. Jason Stout, MD, MHS Box 102359-DUMC Durham, NC 27710 FAX 919-681-7494 [[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://

Re: [R] Reshape or Plyr?

2013-04-22 Thread Law, Jason
36.4 8.2417582 14 079-f2p1-AcetunaSacbil 1136.4 3.0219780 15 079-f2p1-AcetunaSaclep 3236.4 8.7912088 For a simple aggregation like this, reshape is simple and fast. I tend to use plyr when things get more complicated. Jason Law Statistician City of Portland Bureau of En

Re: [R] Averaging Out many rows from a column AND funtion to string

2013-03-27 Thread Law, Jason
plot.me <- sweep(rowsum(keep, idx), 1, tabulate(idx), , FUN = '/') }) user system elapsed 0.920.000.9 Jason Law Statistician City of Portland Bureau of Environmental Services Water Pollution Control Laboratory 6543 N Burlington Avenue Portland, OR 97203-5452 503-823-10

Re: [R] Plot cumulative sums of rainfall per year

2013-03-26 Thread Law, Jason
color = factor(year(Date + geom_line() You'll have to work on the date axis. Jason Law Statistician City of Portland, Bureau of Environmental Services Water Pollution Control Laboratory 6543 N Burlington Avenue Portland, OR 97203-5452 503-823-1038 jason@portlandoregon.gov -Origi

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

2013-03-05 Thread Law, Jason
e extension .tab and sep = '\t' are required for text files. Didn't test row.names=T but I wouldn't count on that working either. Jason Law Statistician City of Portland, Bureau of Environmental Services Water Pollution Control Laboratory 6543 N Burlington Avenue Po

Re: [R] using a personal template for new R scripts

2013-02-28 Thread Jason Edgecombe
On 02/28/2013 05:40 PM, Steve Taylor wrote: Does anyone know if there's an easy facility to create and specify a template file to be used for new R scripts? I found myself creating this function which works well (in RStudio on Windows). newR = function(filename=tempfile(tmpdir='.',fileext='.R'

[R] Issues with installing RBGL package

2013-02-22 Thread jason tyler
11.4.0 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] BiocInstaller_1.8.3 loaded via a namespace (and not attached): [1] tools_2.15.1 Thanks

[R] plot.mob() fails with cut() error "'breaks' are not unique"

2013-01-22 Thread Jason Musil
or variable, but I'm not sure what to do about it. Many thanks and apologies if this doesn't fit the mailing list---it is my first posting! Jason Musil __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] Cannot rescale a constant/zero column error.

2012-11-02 Thread Jason Fill
Petr, Thank you for your reply, I actually figured out the issue this morning, I needed to add more data to my data file and it resolved it. Thanks again for everyones time! Jason On Nov 2, 2012, at 9:00 AM, PIKAL Petr wrote: > Hi > >> >> Jim, >> >> Thank you

Re: [R] Cannot rescale a constant/zero column error.

2012-11-02 Thread Jason Fill
can point me in would be awesome. Thanks Jason On Nov 1, 2012, at 3:57 AM, Jim Lemon wrote: > On 10/31/2012 11:47 PM, fillay89 wrote: >> I am trying to run the R Script below, I have actually simplified it to just >> this part that is causing issues. When I run this script I con

Re: [R] Cannot rescale a constant/zero column error.

2012-10-31 Thread Jason Fill
Sorry about that, this is my first time posting. Below is the complete post. I am trying to run the R Script below, I have actually simplified it to just this part that is causing issues. When I run this script I continue to get an error that says "cannot rescale a con

Re: [R] speeding read.table

2012-10-18 Thread Jason Edgecombe
On 10/18/2012 09:57 AM, Fisher Dennis wrote: R 2.15.1 OS X Colleagues, I am reading a 1 GB file into R using read.table. The file consists of 100 tables, each of which is headed by two lines of characters. The first of these lines is: TABLE NO. 1 The second is a list of column header

[R] how to flip row/ column of a matrix?

2012-10-03 Thread Jason Love
Hi all, Sorry about posting such a basic question, but I can't seem to find out a way of flipping a column and row of a matrix. In matlab, this can be easily done by putting a prime next to a variable name. (e.g., a -> a') If anyone knows, please help. -Jason [[alternative

Re: [R] How to resolve the following error: (list) object cannot be coerced to type 'double'

2012-09-12 Thread Jason Love
NA > > ct$p.value > [1] 0.1101842 > > To the op: you should say which library you are using. Even if Hmisc is a > very popular one. > > Hope this helps, > > Rui Barradas > > > Em 12-09-2012 16:10, R. Michael Weylandt escreveu: > > On Wed, Sep 12,

[R] digit precision in p value of rcorr

2012-09-12 Thread Jason Love
10), which doesn't seem to help at all. Any help would be appreciated. P D Prime T statistics D Prime 0 T statistics 0 On Wed, Sep 12, 2012 at 2:19 PM, Jason Love wrote: > thanks all for the prompt answer. > Yes, I need to go through the R tutorial rather than

[R] How to resolve the following error: (list) object cannot be coerced to type 'double'

2012-09-12 Thread Jason Love
Hello, I'd like to test a significance of two variables in their correlation using rcorr, which gave me an error of format incompatibility. Below are the lines that I typed in the R window and let me know if anyone knows how to resolve this. Var=read.csv("03apr10ab_corr_matrix_in_overlaps.csv",hea

Re: [R] Ryacas

2012-09-04 Thread Jason Romine
R 2.15.1 on the same machine the error shows up. Thanks, Jason -- View this message in context: http://r.789695.n4.nabble.com/Ryacas-tp4642204p4642229.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

[R] Ryacas

2012-09-04 Thread Jason Romine
R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i386-pc-mingw32/i386 (32-bit)R-2.15.1 Yacas version:1.0.63 Any suggestions appreciated, Jason -- View this message in context: http://r.789695.

Re: [R] How to average time series data around regular intervals

2012-08-28 Thread Jason Gilmore
22 12:07:30 2012-07-22 12:22:30 2012-07-22 12:37:30 > NA22.3 NA 24.0 >2012-07-22 12:52:30 > 20.0 Any ideas how to fix this? Thanks again! Jason On Mon, Aug 27, 2012 at 1:40 PM, jim holtman wrote: > try this: > >

[R] How to average time series data around regular intervals

2012-08-27 Thread Jason Gilmore
ntify the missing (NA) value using zoo/xts but can't seem to sort out the averaging matter. Thanks so much! Jason [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA

Re: [R] rpart package: why does predict.rpart require values for "unused" predictors?

2012-08-02 Thread Jason Roberts
onstruction" plus those used as surrogates, and: 2. If a variable is neither "actually used in tree construction" nor as a surrogate, it can be safely set to NA for the prediction. Do you know of a way to easily identify the variables used as surrogates? T

[R] rpart package: why does predict.rpart require values for "unused" predictors?

2012-08-01 Thread Jason Roberts
rform predictions by providing values for just Disp. and Weight, but predict() failed when I tried that, complaining that HP was not also provided. Thanks for any help you can provide. My apologies if I simply do not understand how this works. Best regards, Jason __

[R] UTK mirror

2012-07-20 Thread Jason Curole
searched the archive and can't find any threads on the UTK mirror for June or July. Thanks, Jason __ 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.htm

[R] How can I export a paired t-test output table to an excel file?

2012-06-02 Thread Jason Love
Hi R users, Could anyone let me know how to export a paired t-test output table (see below) to an excel file? Jason, with(score2,pairwise.t.test(values,ind, + p.adjust.method="holm", paired=T)) Pairwise comparisons using paired t tests data: values and ind

Re: [R] how to add a 'label' column

2012-06-02 Thread Jason Love
Thanks all for the helpful tips. Jason On Sat, Jun 2, 2012 at 7:14 AM, Jim Lemon wrote: > On 06/02/2012 05:47 AM, Jason Love wrote: > >> Hello R users, >> I'd like to ask a question about how to add a new column. So, below is my >> situation. >> >>

[R] how to add a 'label' column

2012-06-01 Thread Jason Love
est1 12 0.18077 test1 13 0.16715 test2 14 0.16618 test2 15 0.12857 test2 . . . This gave me a new structure as shown above, but the subject column was not included. So, I'd like to add a new column for subject, but I can't quite figure out the trick. If anyone k

Re: [R] as.function parameters

2012-05-17 Thread Jason Edgecombe
packages/sna/> Since those packages can handle graphs, they can handle trees as well. As an added bonus, the code is already available and well-tested. If memory usage is a concern, then look into using a sparse matrix implementation. Jason ___

[R] How to remove title from plot

2012-04-24 Thread Jason Love
Dear R users-- I made a typo in the title after adding it to a plot, but I don't know how to delete the title. Could anyone let me know the command for that? Also, I wonder if there is any way to amend the title which already exists. Thanks, Jason [[alternative HTML version de

Re: [R] Execution speed in randomForest

2012-04-06 Thread Jason & Caroline Shaw
hat type of system are you running on?  Use some of the > system level profiling tools.  If on Windows, then use perfmon. > > On Fri, Apr 6, 2012 at 11:28 AM, Jason & Caroline Shaw > wrote: >> I am using the randomForest package.  I have found that multiple runs >> of pr

[R] Execution speed in randomForest

2012-04-06 Thread Jason & Caroline Shaw
I am using the randomForest package. I have found that multiple runs of precisely the same command can generate drastically different run times. Can anyone with knowledge of this package provide some insight as to why this would happen and whether there's anything I can do about it? Here are som

Re: [R] Help with R package forecast

2012-03-23 Thread jason
When I type library() to see what is installed the following list in RED comes up. Packages in library '/home/jason/R/i686-pc-linux-gnu-library/2.13': abind Combine multi-dimensional arrays aplpack Another Plot PACKage: stem.lea

[R] Difference in Kaplan-Meier estimates plus CI

2012-03-07 Thread Jason Connor
point (e.g. 1 year) plus the estimate's 95% CI. The former is straightforward, but the estimates not so much. I know methods exist such as Parzen, Wei, and Ying, but was surprised not to find a package that included this. Before I code it up, I thought I'd ask if I was just missing it som

Re: [R] How to remove an object that is loaded every time R is opened?

2012-03-01 Thread Jason Love
Many thanks Jim and Chris for your helpful answers! J On Wed, Feb 29, 2012 at 11:48 AM, Chris Campbell < ccampb...@mango-solutions.com> wrote: > Hi Jason > > If you close an R session and save without choosing a filename, a file > called .RData will be created. Open a new sess

[R] How to remove an object that is loaded every time R is opened?

2012-02-29 Thread Jason Love
set for tutorial and I don't need this any more. I'm not sure why this happens and wonder if there is any way to remove this object. Let me know. -Jason --- R version 2.14.1 (2011-12-22) Copyright (C) 2011 The R Foundation for Statistica

[R] How can I avoid the warning messages when calling DAAG package?

2012-02-29 Thread Jason Love
R and type library (DAAG) first time? Any help would be appreciated, Jason > library(DAAG) Loading required package: MASS Loading required package: rpart Loading required package: randomForest randomForest 4.6-6 Type rfNews() to see new features/changes/bug fixes. Loading required pack

Re: [R] finding rows in a matrix that match a vector

2012-01-27 Thread Jason J. Pitt
s TRUE sum(mine == table.combos[2, ]) == length(mine) #returns FALSE Though I'm sure there are more elegant and less error prone (if you don't know the lengths are equal) ways of doing this and others will point you in the right direction. Jason Original message >Date:

Re: [R] Contour plot on a triangular mesh

2012-01-20 Thread Jason Edgecombe
I'm not sure if this is appropriate. If the sum of your variables is always the same constant, then you might try a Ternary plot ( http://en.wikipedia.org/wiki/Ternary_plot ). The "vcd" package can make ternary plots. On 01/20/2012 02:56 PM, Roary wrote: I have two observed categorical variab

Re: [R] Building R on RHEL 5

2012-01-20 Thread Jason Edgecombe
Why not use the pre-compiled RPM's from EPEL ( http://fedoraproject.org/wiki/EPEL )? Version 2.14 of R is still in the testing folder here: http://download.fedora.redhat.com/pub/epel/testing/5/ Jason On 01/20/2012 02:34 PM, Erik Wright wrote: Hello, I am trying to upgrade to the lat

Re: [R] The Future of R | API to Public Databases

2012-01-15 Thread Jason Edgecombe
ckage ideas a great ideas. I'm just adding another perspective. Jason On 01/13/2012 05:18 PM, Roy Mendelssohn wrote: HI Benjamin: What would make this easier is if these sites used standardized web services, so it would only require writing once. data.gov is the worst example, they spun the o

Re: [R] The Future of R | API to Public Databases

2012-01-14 Thread Jason Edgecombe
unted by head count or by full-time equivalent (FTE) (sum of total enrolled credit hours / credit hours for a full-time student). Even the definition of FTE varies by university or by university system. Jason On 01/14/2012 01:51 PM, Joshua Wiley wrote: I have been following this thread, bu

Re: [R] The Future of R | API to Public Databases

2012-01-14 Thread Jason Edgecombe
ge ideas a great ideas. I'm just adding another perspective. Jason On 01/13/2012 05:18 PM, Roy Mendelssohn wrote: HI Benjamin: What would make this easier is if these sites used standardized web services, so it would only require writing once. data.gov is the worst example, they spu

[R] [R-pkgs] haplo.stats version 1.5.2

2012-01-12 Thread Sinnwell, Jason P.
ckage instead of Design for haplo.score with ordinal traits o Add NAMESPACE and NEWS files Cheers, -Jason Jason Sinnwell, MS | Division of Biomedical Statistics and Informatics | 507.284.3270 | sinnw...@mayo.edu Mayo Clinic | 200 First Street SW | Rochester, MN 55905 | www.mayoclini

Re: [R] Pascal's Triangle

2011-12-28 Thread Jason J. Pitt
Oh and also, if it makes sense, you can use n choose k ( choose() ) to calculate each element of the triangle if you don't want to deal with indicies, addition, etc. Jason Original message >Date: Wed, 28 Dec 2011 03:42:11 -0600 (CST) >From: r-help-boun...@r-project.org (o

Re: [R] Pascal's Triangle

2011-12-28 Thread Jason J. Pitt
olve. HTH, Jason Original message >Date: Tue, 27 Dec 2011 23:14:27 -0500 >From: r-help-boun...@r-project.org (on behalf of "Matilda E. Gogos" ) >Subject: [R] Pascal's Triangle >To: r-help@r-project.org > >Hello, > >Looking to generate Pasc

[R] Suggested alternative to rgdal for Mac for making bubble plots with R 2.14?

2011-11-22 Thread Jason Rupert
I'm new to making bubble plots with R, so I was going to try the following: https://stat.ethz.ch/pipermail/r-sig-geo/2009-August/006258.html Unfortunately, it looks like rgdal is not part of 2.14.  I'm not sure if it was the mirror I selected or something else is going on. > install.packages(

Re: [R] Plotting GEE confidence bands using "predict"

2011-10-17 Thread JASON M. HILL
without confidence bands, per se. The resulting figure has a vertical confidence bar at every value of X. It's kind of a cool effect and just as good, I guess, as the standard regression line plot with confidence bands. Thanks again Shige for pointing me in the right direction.cheers,Jason On Mon, Oc

[R] Plotting GEE confidence bands using "predict"

2011-10-17 Thread JASON M. HILL
through the package PDFs and searched the web and archives of various listservs without success. Any help would be most appreciative. Seems like there should be a simple work-around. Thank you, Jason [[alternative HTML version deleted]] _

[R] Party package: varimp(..., conditional=TRUE) error: term 1 would require 9e+12 columns

2011-10-14 Thread Jason Roberts
I would like to build a forest of regression trees to see how well some covariates predict a response variable and to examine the importance of the covariates. I have a small number of covariates (8) and large number of records (27368). The response and all of the covariates are continuous variable

[R] Best Package to Extract Numbers from this Image?

2011-10-06 Thread Jason Rupert
I've done a bit of searching around on the forums looking for an R Package to extract the numbers from an image like the following: http://www.whnt.com/extras/whnt/weather/7day_640.jpg I would like to be able to do this in an automated way, so thanks for any hints and tips. [[alternativ

[R] number of analogs in significance test of MAT reconstructions using randomTF from palaeoSig

2011-10-04 Thread Jason Paul Joines
e error "k out of range". So, passing k to randomTF must not be telling randomTF to use that number of analogs as I would not be able to select a four analog model. Jason === __ R-help@r-project.org mailing list https://stat.et

  1   2   3   4   5   >