[R] Frequency Counts per Time Period

2009-04-10 Thread jason
# I'm also confused why this works as I would expect: > factor(event.times) However, the following fails with the error 'x' must be atomic for 'sort.list' > factor(trunc(event.times,units="mins")) Thanks in advance, J

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

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

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

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

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] 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] 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] 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] 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] 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] How to extract component number of RMSEP in RMSEP plot

2008-07-16 Thread Jason Lee
Hi R-listers, > > I would like to know how can i extract (ncomps) component no. when the > RMSEP is lowest for PLS package? > > Currently, I only plot it manually, validationplot(pls) and then only feed > the ncomp to the jack knife command. However, I would like to automate this > step. > > Pleas

Re: [R] How to extract component number of RMSEP in RMSEP plot

2008-07-16 Thread Jason Lee
Hi Bjorn, Greetings. I would like to know how can i extract component no. when the RMSEP is lowest? > > Currently, I only plot it manually and then only feed the ncomp to the jack > knife command. However, I would like to automate this step. > > Please let me know. Many thanks. > > Rgrds, >

[R] How to convert/map jacktest results to dataframe or file

2008-07-17 Thread Jason Lee
Hi, I have issue a jacktest command and it produces me a list of numbers. I would like to map them to a dataframe so I could save it to a file. I tried to convert the mvr.obj to vector but when I check the class, it is still jacktest. converted<-as.vector(mvr.obj) Or any otehr way to map this t

[R] Graphing: plot 3rd variable based on color gradient

2008-08-14 Thread Jason Pare
data=graphdata) However, since I only have 147 total observations, the graph produced by levelplot() is mostly white space. Is there either a function that would produce this in a more visually digestible form, or a parameter I can use with levelplot to accompli

[R] Error fitting overdispersed logistic regression: package dispmod

2008-08-17 Thread Jason Curole
nt, family = "binomial", weights = disp.weights) : negative weights not allowed > disp.weights [1] 54.865991 -5.218398 -15.379204 5.021180 So, clearly some dispersion weights are negative, which, according to my understanding of the model, would produce negat

[R] Large Data Set Help

2008-08-25 Thread Jason Thibodeau
this while bypassing the storage of the entire array in memory? Thank you very much for the help. -- Jason [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] npc to native coordinates for xyplot

2008-09-01 Thread Jason Pare
es to the native coordinates within my xyplot graph, and not the absolute dimensions of the viewport? I am new to creating viewports and grid graphics in general, so any help would be much appreciated. Thanks, Jason __ R-help@r-project.org mailing list https:

[R] Plotting Hints - how to add minor tics on axes

2009-08-12 Thread Jason Rupert
Using the standard plotting routine in R, i.e. no special packages, is there a way to add in minor tics to the axes? Also, is there a way to make sure the major axes labels are at the origin? When I'm looking at a plot, the major axes labels are present, but it looks like they start a bit aw

[R] Another Plotting Hint - changing fill color for points

2009-08-12 Thread Jason Rupert
Is it possible to change the fill color of a point? For example, the outer color being "Blue" and inner color being "Grey". I've tried changing "col" and "bg", but that does not seem to have the desired effect. Below is another attempt, but the pixel resolution of the points function does n

Re: [R] Another Plotting Hint - changing fill color for points

2009-08-12 Thread Jason Rupert
quot;blue", pch=21, cex =1.5) dev.off() Thanks again. --- On Wed, 8/12/09, Sarah Goslee wrote: > From: Sarah Goslee > Subject: Re: [R] Another Plotting Hint - changing fill color for points > To: "Jason Rupert" , "r-help" > Date: Wednesday, August 12,

[R] Yet another plotting hint - choosing the proper device to produce plots for Word

2009-08-13 Thread Jason Rupert
is problem? At this point filesize is not an issue. Thank you again for all your help and feedback. --- On Thu, 8/13/09, Gavin Simpson wrote: > From: Gavin Simpson > Subject: Re: [R] Another Plotting Hint - changing fill color for points > To: "Scott Sherrill-Mix"

[R] "Longer Dash" using lty

2009-08-13 Thread Jason Rupert
By any chance is there a way to make the lty dashes longer? Ideally it would work kind of like the following: plot(-4:4, -4:4, type = "n") abline(-5,-4:4, lty="dashed") abline(-2,-4:4, lty="longdash") # long dash words (love this) abline(-4:4,-4:4, lty="longerdash") I read the lty documentatio

Re: [R] Yet another plotting hint - choosing the proper device to produce plots for Word

2009-08-13 Thread Jason Rupert
x = 1.5, pch=20) dev.off() --- On Thu, 8/13/09, Gavin Simpson wrote: > From: Gavin Simpson > Subject: Re: [R] Yet another plotting hint - choosing the proper device to > produce plots for Word > To: "Jason Rupert" > Cc: "Scott Sherrill-Mix" , r-help@r-pr

Re: [R] run R codes every startup.

2009-08-16 Thread Jason Morgan
On 2009.08.16 15:59:15, milton ruser wrote: > Dear all, > > how can I setup R(gui) to run some commands evertime R startup? > > cheers > > milton You'll want to read: help(Startup) HTH, ~Jason -- Jason W. Morgan Graduate Student Department of Political Science

[R] generating multiple sequences in subsets of data

2009-08-27 Thread Jason Baucom
ike row3<-sequence(nrow(unique(stuff$row2))) that actually works :-) Here is the for loop that functions properly for row3: stuff$row3<-c(1) for (i in 2:nrow(stuff)) { if ( stuff$row2[i] == stuff$row2[i-1]) { stuff$row3[i] = stuff$row3[i-1]+1}} Thanks! Jason Baucom Ateb, Inc. 919

Re: [R] generating multiple sequences in subsets of data

2009-08-27 Thread Jason Baucom
reaches 3. This way we can have two unique sequences for each row2, assuming of course the threshold is reached. Jason From: Henrique Dallazuanna [mailto:www...@gmail.com] Sent: Thursday, August 27, 2009 11:02 AM To: Jason Baucom Cc: r-help@r-project.org; Steven

Re: [R] generating multiple sequences in subsets of data

2009-08-27 Thread Jason Baucom
9 32313 FALSE1 10424 1 4 FALSE2 Jason From: Henrique Dallazuanna [mailto:www...@gmail.com] Sent: Thursday, August 27, 2009 11:02 AM To: Jason Baucom Cc: r-help@r-project.org; Steven Few Subject: Re: [R] gener

[R] R Instance on Amazon EC2

2009-09-03 Thread Jason Reusch
x27;t want to fiddle with the server I hope I can help. If interested, please contact me off list for pricing and terms. Ahoy, Jason [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

Re: [R] linear mixed model question

2009-09-07 Thread Jason Morgan
9 0.9579666 Within-group standard error: lower est. upper 0.7629124 0.9615766 1.2119736 # ----- # With the restricted dataset, there are only 18 observations in 6 groups. This is probably too little data

Re: [R] generating multiple sequences in subsets of data

2009-09-11 Thread Jason Baucom
iteria. I'm surprised it's bringing my computer to its knees. I'm running about 1M rows now, but doing other operations such as merges or adding new columns/rows seems fine. -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Thursday, August 2

Re: [R] generating multiple sequences in subsets of data

2009-09-11 Thread Jason Baucom
ius [mailto:dwinsem...@comcast.net] Sent: Thursday, August 27, 2009 12:48 PM To: Jason Baucom Cc: Henrique Dallazuanna; r-help@r-project.org; Steven Few Subject: Re: [R] generating multiple sequences in subsets of data On Aug 27, 2009, at 11:58 AM, Jason Baucom wrote: > I got this to work. T

[R] Way to iteratively change line color and line style

2009-09-11 Thread Jason Rupert
I would like to have a way to automatically change the line color and line style. Below is an example of the items I am plotting. I've contemplated coming up with a list of desired colors and styles, but I am hoping there is an automated way for this to be accomplished as the number of lines

[R] plotting least-squares regression against x-axis

2009-09-19 Thread Jason Priem
residuals plot, showing the residual for a given x? Thanks! Jason Priem University of North Carolina at Chapel Hill School of Information and Library Science __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] plotting least-squares residuals against x-axis

2009-09-19 Thread Jason Priem
residuals plot, showing the residual for a given x? Thanks! Jason Priem University of North Carolina at Chapel Hill School of Information and Library Science __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] WMF conversion...

2010-02-10 Thread Jason Rupert
n convert it to PDF, so is there a different image format I should use or is there and intermediate step I need to use so that the streaks do not appear? Thanks for any feedback and insight. Jason __ R-help@r-project.org mailing list https://stat.

Re: [R] WMF conversion...

2010-02-10 Thread Jason Rupert
uot; and "Minimum" size.  Both produced the diagonal lines.  Also, I do not see Adobe Acrobat installed on my machine however I am investigating possibly getting that product. Thank you again for the reply.   Jason - Original Message From: Marc Schwartz To: Jason Ru

Re: [R] WMF conversion...

2010-02-10 Thread Jason Rupert
.    Thank you again for all your help. Jason   - Original Message From: Marc Schwartz To: Jason Rupert Cc: R-help@r-project.org Sent: Wed, February 10, 2010 12:25:21 PM Subject: Re: [R] WMF conversion... On Feb 10, 2010, at 11:48 AM, Jason Rupert wrote: > Thank you very much

[R] Appending Data to A n Existing List...

2010-02-18 Thread Jason Rupert
What steps can be take to append data to a list? Suppose I have the following list and want to append a z axist to the list? pts <- list(x=cars[,1], y=cars[,2]) z<-rnorm(max(dim(cars))) How would I go about appending z to an existing list? Thanks a ton... ___

Re: [R] Appending Data to A n Existing List...

2010-02-18 Thread Jason Rupert
tuff=cost_limits)) [[1]] [1] "house" [[2]] [1] "brick" "wood" [[3]] [1] 1600 1800 2000 2400 [[4]] [1] 20.2 350010.2 $CostStuff [1] 20.2 350010.2 - Original Message From: Bert Gunter To: Jason Rupert ; R-help@r-project.org Sent: Thu, Februar

[R] Confused about appending to list behavior...

2010-02-19 Thread Jason Rupert
Through help from the list and a little trial and error (mainly error) I think I figured out a couple of ways to append to a list. Now I am trying to access the data that I appended to the list. The example below shows where I'm trying to access that information via two different methods. I

[R] R Aerodynamic Package(s)?

2010-02-23 Thread Jason Rupert
By any chance is anyone aware of any R Packages that contain or expand the aerodynamic capabilities mentioned on the following website? http://www.aoe.vt.edu/~mason/Mason_f/MRsoft.html Typically I know R packages have focused on extending the statistical and graphing capability within R, so I

[R] RODBC looping sql script

2010-02-25 Thread Jason Gasper
create and ever expanding final table for loop, does anyone know how to index inside the Where clause of a sql statement (i.e., common.utility(vessel[i,1],vessel year[i,2])? -- Jason Gasper National Marine Fisheries Service Alaska Region, Sustainable Fisheries Division 709 W. 9th St. Ju

Re: [R] R Aerodynamic Package(s)?

2010-02-27 Thread Jason Rupert
I received zero responses to this post, so I guess this confirms that R is not the correct target language for this project. Maybe Octave is better suited... Thank you again. - Original Message From: Jason Rupert To: R-help@r-project.org Cc: Me Sent: Tue, February 23, 2010 6:33

[R] estimagint MLE of covariance matrix subject to constraints

2010-03-04 Thread Jason S
Hi there, I need a MLE of a covariance matrix under the constraint that particular elements of the inverse covariance matrix are zero. I can't find any function/package that'd do that. Any suggestions? Jason [[alternative HTML versi

[R] Obtaining name of data frame used in a function argument

2010-03-11 Thread Jason Baucom
int(summary(x)) } examineIt(myDataFrame) I'd like for the function to also output "myDataFrame". Is there any way to do this? I'm running this function several times in a row and need to be able to identify which data.frame was analyzed. Thanks! Jason [

[R] Automatically placing a legend in an area with the most white space...

2009-06-26 Thread Jason Rupert
At one point I believe I heard of an R package that would automatically find the most empty space in a plot, and then that answer could then be used to intelligently place a legend. I would like to try to apply that R package to the contrived example shown below, so thank you for any hints

[R] How to automatically placing a legend in empty space

2009-06-26 Thread Jason Rupert
(Sorry if this goes up to the site twice. I guess I am still learning how to post to R-Help) At one point I believe I heard of an R package that would automatically find the most empty space in a plot, and then that answer could then be used to intelligently place a legend. I would like to

Re: [R] How to automatically placing a legend in empty space

2009-06-27 Thread Jason Rupert
legend("topright", c("Best Guess 1" , "Best Guess 2", "Best Guess 3"), bg="white", lwd = 2, title = "Randomness:") Is there any chance you can provide a suggestion? Thanks again. --- On Sat, 6/27/09, Dieter Menne wrote: > From: Die

Re: [R] Automatically placing a legend in an area with the most white space...

2009-06-28 Thread Jason Rupert
Is emptyspace part of a package that I need to install? Thanks for any feedback. --- On Sun, 6/28/09, Jim Lemon wrote: > From: Jim Lemon > Subject: Re: [R] Automatically placing a legend in an area with the most > white space... > To: "Jason Rupert" > Cc: R-help@r-proj

Re: [R] Automatically placing a legend in an area with the most white space...

2009-06-29 Thread Jason Rupert
or is partially clipped by the boarder of the plot? I posted the example to nabble: http://n2.nabble.com/With-%22emptyspace%22-is-there-anyway-to-guarantee-legend-won%27t-be-off-the-plot--td3178773.html Thanks for any feedback. Jason --- On Sun, 6/28/09, Stavros Macrakis wrote: > From:

Re: [R] Remove all spaces from a string so it can be used by assign()

2009-07-03 Thread Jason Rupert
Don't think you can have numerics as the first characters in a variable name. R ninjas can confirm, but I think you will be able to have numerics after an initial alpha character, e.g. Fe56 is ok, but 56Fe is not ok. Also, check out "gsub". This is a really powerful string editing tool.

[R] Skeleton Package to Flesh Out?

2009-07-04 Thread Jason Rupert
By any chance is there a skeleton package to use as a template to develop an R package? I downloaded "Writing R Extensions", which was evidently updated pretty recently, but I did not see any references (and of course I may have totally missed it) to a package template to use as a go by. Do

[R] tkrplot installation problems

2009-07-08 Thread Jason Lessels
ums.org/index.php/topic,4476.0.html> on ubuntu 9.04 64bit hope this helps 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-

[R] Best way to export values from a function?

2009-07-08 Thread Jason Rupert
Maybe there is a great website out there or white paper that discusses this but again my Google skills (or lack there of) let me down. I would like to know the best way to export several doubles from a function, where the doubles are not an array. Here is a contrived function similar to my n

[R] Issues with file.info?

2009-07-09 Thread Jason Rupert
Are there any tricks associated with file.info? I just tried it on a directory folder and it returned NA for all fields for all files. I tried it on a different folder with different files and it still returned NA. I tried it on a specific file and it returned all the proper info correctly

Re: [R] Issues with file.info?

2009-07-09 Thread Jason Rupert
wrote: > From: jim holtman > Subject: Re: [R] Issues with file.info? > To: "Jason Rupert" > Cc: R-help@r-project.org > Date: Thursday, July 9, 2009, 3:04 PM > Works fine for me on 2.9.1: > > > file.info('/jph') >      size isdir mode    >  

Re: [R] Issues with file.info?

2009-07-13 Thread Jason Rupert
om: Rolf Turner > Subject: Re: [R] Issues with file.info? > To: "Jason Rupert" > Cc: "R-help@r-project.org" > Date: Thursday, July 9, 2009, 3:13 PM > > On 10/07/2009, at 6:02 AM, Jason Rupert wrote: > > > > > Are there any tricks associated with

[R] Best way to replace :SS with :00

2009-07-16 Thread Jason Rupert
Not sure if there is an R way to do this or a regular express way, but here is what I am trying to do. I've got lots of data where the format is HH:MM:SS, but I need to format it like HH:MM:00, i.e. round the second down to zero. What is the best way to do this? Thanks again.

Re: [R] Best way to replace :SS with :00

2009-07-16 Thread Jason Rupert
I tried to use strsplit with items to split on, but no luck. Thank you again for all your help. --- On Thu, 7/16/09, Steve Lianoglou wrote: > From: Steve Lianoglou > Subject: Re: [R] Best way to replace :SS with :00 > To: "Jason Rupert" > Cc: R-help@r-project

Re: [R] Best way to replace :SS with :00

2009-07-16 Thread Jason Rupert
This is awesome! Total continue to be amazed. Thanks again! --- On Thu, 7/16/09, Gabor Grothendieck wrote: > From: Gabor Grothendieck > Subject: Re: [R] Best way to replace :SS with :00 > To: "Jason Rupert" > Cc: R-help@r-project.org > Date: Thursday, July 16

[R] Tripped up by Removing Level

2009-07-29 Thread Jason Rupert
Code is provided below. I was trying to follow the example at the following website: http://www.ats.ucla.edu/stat/R/modules/factor_variables.htm Only difference is that I am working with trying to remove a level from a dataframe. In the example below, notice that "very.high" is still a level in

[R] R Package That Contains International Geomagnetic Reference Field (IGRF)

2009-08-01 Thread Jason Rupert
By any chance is anyone aware of an R package that contains a representation of the International Geomagnetic Reference Field (IGRF)? http://www.ngdc.noaa.gov/IAGA/vmod/igrf.html I've tracked down some Fortran and C code for the IGRF-10, and possibly IGRF-11, and was hoping to avoid an awkward

[R] R Package That Contains Any Earth Magnetic Model

2009-08-02 Thread Jason Rupert
Unless I hear back, I guess I will investigate porting these to R as a function and then as a package. Thanks again for the insights and feedback. --- On Sat, 8/1/09, Jason Rupert wrote: From: Jason Rupert Subject: R Package That Contains International Geomagnetic Reference Field

Re: [R] lme funcion in R

2009-08-03 Thread Jason Morgan
e using would be helpful. Also, be sure to compare the optimization methods used in SPSS to that used in R. You can change the optimization method in R if the default seems to be causing issues. See help(lmeControl) for numerous setting options. ~Jason -- Jason W. Morgan Graduate Student Departme

[R] Stacked plots with common x-axis and different y-axis

2009-08-04 Thread Jason Rupert
Is there a place that shows how to create two plots that are stacked on top of each other where they share a common x-axis scale, but have differnt y-axis scale? Say have the following data: airquality Stack plot(airquality$Day, airquality$Wind) on top of plot(airquality$Day, airquality$Temp).

Re: [R] Stacked plots with common x-axis and different y-axis

2009-08-04 Thread Jason Rupert
t;Cell Density",side=4,col="red",line=2.5) axis(4, ylim=c(0,7000), col="red",col.axis="red") # Draw the time axis axis(1,pretty(range(time),10)) mtext("Time (Hours)",side=1,col="black",line=2.5) # Add Legend legend(5,7000,legend=c("Bet

Re: [R] i'm so stuck with text file and contour plot

2009-08-05 Thread Jason Rupert
You can also try: readLines(...) This seems to be able to read in difficult txt files. Good luck. --- On Wed, 8/5/09, hannesPretorius wrote: > From: hannesPretorius > Subject: Re: [R] i'm so stuck with text file and contour plot > To: r-help@r-project.org > Date: Wednesday, August 5, 2009, 4

Re: [R] Stacked plots with common x-axis and different y-axis

2009-08-05 Thread Jason Rupert
alues in a plot above the left "y" values. I'm looking for a way to make them show up above so they are a bit more separated. Thanks for any feedback. --- On Wed, 8/5/09, Jim Lemon wrote: > From: Jim Lemon > Subject: Re: [R] Stacked plots with common x-axis and diffe

Re: [R] Stacked plots with common x-axis and different y-axis

2009-08-06 Thread Jason Rupert
: > From: Gabor Grothendieck > Subject: Re: [R] Stacked plots with common x-axis and different y-axis > To: "Jason Rupert" > Cc: R-help@r-project.org > Date: Wednesday, August 5, 2009, 8:09 PM > Try this: > > library(zoo) > # ignore the fact that months hav

[R] rdcomclient issue - member not found when using borders

2010-03-23 Thread Jason Baucom
uot;") Cell2<-paste(letters[grep(substring(Cell,1,1),letters)+1], as.integer(substring(Cell,2))+nrow(Data),sep="") MyCell=paste(Cell1,":",Cell2,sep="") B3R[["Formula"]] <- paste("=sum(",MyCell,")",sep="")

[R] Expected pairwise.student.t and TukeyHSD behavior?

2010-03-24 Thread Jason Rupert
pairwise.t.test is returning NAs when one of the samples only has one entry, while TukeyHSD returns results (maybe not trustworthy or believable, but results). I stumbled on this because I did not realize one of my samples only had one entry while most of the others had several hundred, so I

Re: [R] Summing data based on certain conditions

2010-03-31 Thread Law, Jason
This should do the trick: data$date <- as.Date(data$date, '%m/%d/%Y') data$month <- format(data$date, '%Y-%m') by(data$rammday, data$month, sum) Hope that helps, Jason -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.

[R] Newbie Question About Setting Plot Axis Limits

2009-09-23 Thread Jason Rupert
Using the following: plot(c(1,1), ylim=c(0, 15), xlim=c(0, 13)) However, it produces the following: http://n2.nabble.com/Simple-Plot-Axis-Limits-Question-td3703091.html This is not what I expected because I would have expected the origin to be (0, 0), but on the plot it looks a little different

[R] more strange behavior of Revolution R 1.3.0

2009-09-24 Thread Jason Liao
setMKLthreads(1) > system.time(for(i in 1:n.simu) func1()) user system elapsed 69.482.42 71.91 > > setMKLthreads(8) > system.time(for(i in 1:n.simu) func1()) user system elapsed 179.06 17.90 41.70 Jason Liao [[alter

[R] grep or other complex string matching approach to capture necessary information...

2009-09-25 Thread Jason Rupert
Say I have the following data: house_number<-floor(runif(100, 200, 600)) water_evaluation<-c("No water damage", "Water damage", "Water On", "Water off", "water pipes damaged", "leaking water") water_evaluation_selection<-floor(runif(100, 1,6)) house_info<-data.frame(water_evaluation[water_evalua

Re: [R] Deleting a column in a dataframe by name

2009-09-29 Thread Jason Rupert
What about using NULL? > x<-runif(12) > y<-runif(12) > z<-runif(12) > mydf<-data.frame(cbind(x,y,z)) > names(mydf) [1] "x" "y" "z" > mydf$x<-NULL > names(mydf) [1] "y" "z" --- On Tue, 9/29/09, Rolf Turner wrote: > From: Rolf Turner > Subject: Re: [R] Deleting a column in a dataframe by name

[R] randomizing groups

2009-10-02 Thread Jason Priem
I have a list of participants in a study, identified by number. I want to randomly sort them into an arbitrary number of groups. split(sample(1:96, 96), 1:16) almost does it, but it only works where the division is even. Any ideas? Thanks! Jason Priem, Doctoral Student, School of Information

[R] [Fwd: Re: randomizing groups]

2009-10-02 Thread Jason Priem
Duh. I just figured out that though I was getting a warning, it was still doing the split anyway. Sorry for the dumb question. -jason Jason Priem wrote: I have a list of participants in a study, identified by number. I want to randomly sort them into an arbitrary number of groups. split

Re: [R] randomizing groups

2009-10-02 Thread Jason Priem
Duh. I just figured out that though I was getting a warning, it was still doing the split anyway. Sorry for the dumb question. -jason Jason Priem wrote: I have a list of participants in a study, identified by number. I want to randomly sort them into an arbitrary number of groups. split

[R] Way of handling empty value when reading in CSV

2009-10-06 Thread Jason Rupert
I believe I may be overlooking something simple in order address this, but I have searched RSeek.org and using "?", but cannot seem to find anything discussing this one. I am using read.csv to read in a csv file. Evidently in places there is nothing between the commas, so that when the data i

Re: [R] Way of handling empty value when reading in CSV

2009-10-06 Thread Jason Rupert
. Sorry again for the poor 1st example. Thank you again for your time and insight. --- On Tue, 10/6/09, Erik Iverson wrote: > From: Erik Iverson > Subject: RE: [R] Way of handling empty value when reading in CSV > To: "Jason Rupert" , "R-help@r-project.org" >

[R] R user defined language file for NotePad++

2009-10-07 Thread Jason Rupert
I am a big fan of NotePad++ (http://notepad-plus.sourceforge.net/uk/site.htm), which allows users to develop an XML schema that allows NotePad++ to be more Language aware. Thus, I'm curious if there are any R users out there that may have developed the XML user defined language for NotePad++.

Re: [R] R user defined language file for NotePad++

2009-10-08 Thread Jason Rupert
build the XML and then end up posting it for others. Thanks again. --- On Wed, 10/7/09, Gabor Grothendieck wrote: > From: Gabor Grothendieck > Subject: Re: [R] R user defined language file for NotePad++ > To: "Jason Rupert" > Cc: R-help@r-project.org > Date:

Re: [R] R user defined language file for NotePad++

2009-10-08 Thread Jason Rupert
mko Duursma > Subject: Re: [R] R user defined language file for NotePad++ > To: "Jason Rupert" > Cc: R-help@r-project.org > Date: Thursday, October 8, 2009, 8:15 PM > Jason, > > if you install NppToR, it generates the XML file for you, I > think. > That is o

[R] Running R scripts from a GUI interface

2009-10-09 Thread Jason Rupert
It appears several that of my scripts are beginning to reaching maturity, so I am curious if it is possible to add an external GUI to run the scripts from this simplified GUI interface. The scripts are fairly rudimentary so the GUI only needs a few radial buttons and a could of numeric fields

Re: [R] Running R scripts from a GUI interface

2009-10-10 Thread Jason Rupert
vered. Thanks again for any insights and feedback you can provide. --- On Sat, 10/10/09, glen_b wrote: > From: glen_b > Subject: Re: [R] Running R scripts from a GUI interface > To: r-help@r-project.org > Date: Saturday, October 10, 2009, 2:12 AM > > > > Jason Rupert

[R] Comphrensive R Function Development Documentation

2009-10-10 Thread Jason Rupert
Well, looking into the development of GUI widgets using R packages it appears that it is important to have well formed R functions. Moreover, it has made me realize my functions are probably not well formed and should be brought closer inline with R standards. By any chance is there a single

Re: [R] Running R scripts from a GUI interface

2009-10-10 Thread Jason Rupert
Grothendieck > Subject: Re: [R] Running R scripts from a GUI interface > To: "Jason Rupert" > Cc: R-help@r-project.org > Date: Saturday, October 10, 2009, 7:49 AM > There are many approaches to GUIs in > R but for something quick, which > I gather is your main aim here,

[R] vis.gam() contour plots

2009-10-12 Thread Jason Gasper
Greetings, I have what I hope is a simple question. I would like to change my contour interval on the vis.gam( plot.type="contour") in the mgcv package. Is this a situation where I need to modify the function or is there a default value I can change? Thanks _

Re: [R] replacing period with a space

2009-10-13 Thread Jason Rupert
Here is one more that works: gsub("."," ","Start.Time", fixed = TRUE) "fixed = TRUE" really helps in a lot of instances for removing specific characters without accidently angering the regular expression gods. Enjoy. --- On Tue, 10/13/09, Dimitri Liakhovitski wrote: > From: Dimitri Liakho

Re: [R] vis.gam() contour plots

2009-10-13 Thread Jason Gasper
Thanks, that is a big help. David Winsemius wrote: On Oct 13, 2009, at 3:46 PM, Gavin Simpson wrote: On Mon, 2009-10-12 at 22:20 -0400, David Winsemius wrote: On Oct 12, 2009, at 8:20 PM, Jason Gasper wrote: # contour examples vis.gam(g, view=c("x1","x2"),plot.

[R] Trying get away from the "for" loop

2009-10-15 Thread Jason Rupert
Argh... I just realized the inefficiency of one of my loops so I am trying to get rid of it. I have two data frames: names(SubdivisionHouses) "BuildYear", "SqrFootage", "Exterior" names(BuildingCodes) "Year", "Codes" I am trying to add on the the "Codes" column to according to the "BuildYe

Re: [R] Trying get away from the "for" loop

2009-10-15 Thread Jason Rupert
ouseMod, SubdivisionHouseMod_tmp) } } Thank you again. --- On Thu, 10/15/09, David Winsemius wrote: > From: David Winsemius > Subject: Re: [R] Trying get away from the "for" loop > To: "Jason Rupert" > Cc: R-help@r-project.org > Date: Thursday, Oct

[R] Determining a linear model based on a factor

2009-10-16 Thread Jason Rupert
I guess I should disclose up front that am not a statistician by schooling, but I am intersted in getting the terminology correct so please correct it if I butcher it too badly. I have been able to very easily build a linear model showing the correlation between two variables, e.g. year built

Re: [R] Cannot calculate mean() for double vector

2009-10-16 Thread Jason Rupert
Have you tried: mean(x) mean(as.numeric(as.character(x))) mean(x_ema) mean(as.numeric(as.character(x_ema))) What is the result of the following: which(is.na(as.numeric(as.character(x_ema Abit hard since you don't provide the data, but there may be an NA or character value that is causing the

  1   2   3   4   5   >