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

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

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

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

2014-03-19 Thread Jason Rupert
and then just convert it back later on... Thanks again. On Wednesday, March 19, 2014 5:42 PM, Jim Lemon j...@bitwrit.com.au wrote: On 03/20/2014 08:46 AM, Jason Rupert wrote: MaxUpdated_row-NULL MaxUpdated_val- 2013-06-28 rbind(MaxUpdated_row, as.Date(MaxUpdated_val, %Y-%m-%d

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

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

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

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

[R] Grouping data in ranges in table

2011-03-05 Thread Jason Rupert
Working with the built in R data set Orange, e.g. with(Orange, table(age, circumference)). How should I go about about grouping the ages and circumferences in the following ranges and having them display as such in a table? age range: 118 - 664 1004 - 1372 1582 circumference range: 30-58

[R] frestimate functionality

2010-12-14 Thread Jason Rupert
By any chance is there an R package that may contain functionality similar to the frestimate in Matlab/Simulink. Here is the URL for a description of the frestimate functionality: http://www.mathworks.com/help/toolbox/slcontrol/ug/frestimate.html Thank you again for any feedback.

[R] Alternatives to image(...) and filled.contour(...) for 2-D filled Plots

2010-11-21 Thread Jason Rupert
By any chance are there any alternatives to image(...) and filled.contour(...) I used Rseek to search for that very topic, but didn't turn over any leads...

[R] Problems using Internal filledcontour: dimension mismatch

2010-11-21 Thread Jason Rupert
In order to gain a bit more control over the fill contour functionality I'm trying to use the Internal filledcontour function. I wasn't able any documentation on this function and only one reference to it. I believe the code shown below is close because all the dimensions seem to be

[R] Setting a Red-Yellow-Green Color Transition in Image(...) with yellow corresponding with the Mean Value...

2010-11-20 Thread Jason Rupert
In the following example I would like to have the color transition from Red-yellow-green in the image(...) function, and if possible have the yellow be set to correspond with the mean value (for the below 75).   I was able to figure something like out when using filled.contour(...), e.g.

[R] Possible to add filled.contour(...) to existing plot?

2010-11-20 Thread Jason Rupert
By any chance is it possible to add filled.contour(...) to an existing plot like you can do using image(..., add = TRUE). I looked at the filed.contour(...) and levelplot(...) documentation, but it didn't seem to be possible. I would like to add filled.plot(...) as shown below instead

[R] Using image/contour with unevenly spaced data...

2010-11-18 Thread Jason Rupert
Is it possible to plot unevenly spaced data with image/contour function? Below is an example of the type uneven data that I'm trying to plot with image/contour functions. For example, I would like to have the x-distance on the x-axis and y-distance on the y-axis and then the temperature

[R] gsub issue in R 2.11.1, but not present in 2.9.2

2010-06-29 Thread Jason Rupert
Previously in R 2.9.2 I used the following to convert from an improperly formatted NA string into one that is a bit more consistent. gsub(N\A, NA, N\A, fixed=TRUE) This worked in R 2.9.2, but now in R 2.11.1 it doesn't seem to work an throws the following error. Error: '\A' is an

[R] Best way to remove double precision round off chaff

2010-06-13 Thread Jason Rupert
I would like to get rid of the double precision round off chaff, so is the following the best way to handle it? 0.625-0.8+0.45-0.275 [1] -5.551115e-17 round(0.625-0.8+0.45-0.275, digits=4) [1] 0 Motivation for removing the chaff is for no other reason than to titty up the digits for display

Re: [R] Creating the Firefox Download Analytics Map in R

2010-05-25 Thread Jason Rupert
, 10K, 50K, 100K, 500K+), fill=colors, title=Total Downloads) title(Firefox Downloads) dev.off() - Original Message From: Jason Rupert jasonkrup...@yahoo.com To: R Project

[R] Creating the Firefox Download Analytics Map in R

2010-05-21 Thread Jason Rupert
By any chance has anyone put together the R code for reproducing the Firefox Downloads Analytics Map in R? Here is a link to an example: http://www.knitwareblog.com/wp-content/uploads/2008/06/firefox-3-download-map.jpg I'll try to track down the inputs, but I am interested in putting the code

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-12 Thread Jason Rupert
be returned). do.conf,do.out: logicals; if 'FALSE', the 'conf' or 'out' component respectively will be empty in the result. Details: The two 'hinges' are versions of the first and third quartile,... On Wed May 12 10:35 , Jason Rupert sent: HummMaybe I need to look some place else than

[R] Whiskers on the default boxplot {graphics}

2010-05-11 Thread Jason Rupert
How are the lower/upper whiskers defined in the default version of boxplot {graphics}? I tried help(boxplot) and searching www.rseek.org, but I was unable to determine an absolute answer. I checked out the definition of boxplot according to Wikipedia (http://en.wikipedia.org/wiki/Box_plot),

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-11 Thread Jason Rupert
interval for the difference in two medians. Is a notch equal to the upper/lower whisker? Is this just a difference of terminology or something? Thanks again for all the insights. - Original Message From: David Winsemius dwinsem...@comcast.net To: Jason Rupert jasonkrup

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-11 Thread Jason Rupert
? None of the links from boxplot.stats {grDevices} seemed to reveal the secret definition of the R whiskers. Thanks again. - Original Message From: Jason Rupert jasonkrup...@yahoo.com To: David Winsemius dwinsem...@comcast.net Cc: R Project Help R-help@r-project.org Sent: Tue, May 11

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-11 Thread Jason Rupert
quartile,... On Wed May 12 10:35 , Jason Rupert sent: HummMaybe I need to look some place else than boxplot.stats {grDevices} for a definition of how the upper/lower whiskers are produced. By any chance are they the lowest datum still within 1.5 IQR of the lower quartile, and the highest

[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] 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 jasonkrup...@yahoo.com To: R-help@r-project.org Cc: Me jasonkrup

[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

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

[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
Message From: Bert Gunter gunter.ber...@gene.com To: Jason Rupert jasonkrup...@yahoo.com; R-help@r-project.org Sent: Thu, February 18, 2010 5:37:09 PM Subject: RE: [R] Appending Data to A n Existing List... ?c but you have to make sure z is a list: c(pts,z) ## probably is not what you want

[R] WMF conversion...

2010-02-10 Thread Jason Rupert
Hello R-Help, I've got a bit of an issue with WMF's. I am working on WindowsXP and outputting WMF format images. I then take the WMF format images and insert them in PowerPoint. I take the PowerPoint and convert it to PDF. The WMFs are nothing special. Just the typical x-y plot with

Re: [R] WMF conversion...

2010-02-10 Thread Jason Rupert
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 marc_schwa...@me.com To: Jason Rupert jasonkrup...@yahoo.com Cc: R

Re: [R] WMF conversion...

2010-02-10 Thread Jason Rupert
.    Thank you again for all your help. Jason   - Original Message From: Marc Schwartz marc_schwa...@me.com To: Jason Rupert jasonkrup...@yahoo.com 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

[R] Is Least Squares the Best Approach?

2010-02-01 Thread Jason Rupert
Assuming I have two data sets that are two dimensional that should from similar functions, is Least Squares or a related approach the best way to compare these 2-D data sets? I guess I would like to know how related the two data sets are and if they are from the same function or close to

[R] Displaying Equation With Numerator and Demomenator On A Plot...

2010-01-21 Thread Jason Rupert
Is there a way to display something like the quadratic equation, i.e. with a numerator and demonator on a plot? I think there is a way to create the equation in Latex, but wasn't sure if this format would translate to plotting. \begin{equation}   x = \frac{b +/- sqrt(b^2 - 4*a*c)}{2*a}

[R] Greek letters on a multi-line plot title

2010-01-20 Thread Jason Rupert
I have an instance where I need to include Greek letters on a plot title that is multiple lines.   I've searched the forums for an approach to do this, but most of the previous posts and replies seem to just address instances of single line examples and problems:, e.g.  

Re: [R] Greek letters on a multi-line plot title

2010-01-20 Thread Jason Rupert
- Original Message From: David Scott d.sc...@auckland.ac.nz To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org R-help@r-project.org Sent: Wed, January 20, 2010 3:49:40 PM Subject: Re: [R] Greek letters on a multi-line plot title Jason Rupert wrote: I have an instance where

[R] Debugging issues encountered during the R CMD check process

2010-01-07 Thread Jason Rupert
I read through the Writing R Extensions and the Debugging in R website (http://www.stats.uwo.ca/faculty/murdoch/software/debuggingR/), looking for some hints about how to solve the issue of debugging problems encountered during the R CMD check process, but nothing seems to be mentioned about

Re: [R] Debugging issues encountered during the R CMD check process

2010-01-07 Thread Jason Rupert
for any insights or feedback. - Original Message From: Duncan Murdoch murd...@stats.uwo.ca To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org Sent: Thu, January 7, 2010 2:02:25 PM Subject: Re: [R] Debugging issues encountered during the R CMD check process On 07

[R] Adding a distance scale to a plot?

2010-01-04 Thread Jason Rupert
Do you know what steps I need to take to add a scale to a plot? I'm pulling my example out of An Introduction to R: Software for StatisticalModelling Computing (see the R code around Figure 76). I would like to add a scale to the image produced by the following code.  I would like to the

Re: [R] Diagonal Labels on Beside Bars in Barplot

2009-12-15 Thread Jason Rupert
Marc, Thanks a ton.  That was it. Evidently I missed that the first time through the barplot.   I will be more diligent in reading the manuals. Thanks again, Jason   - Original Message From: Marc Schwartz marc_schwa...@me.com To: Jason Rupert jasonkrup...@yahoo.com Cc: R

[R] Diagonal Labels on Beside Bars in Barplot

2009-12-14 Thread Jason Rupert
My question is based on an example provided in the following: Referencing: Statistics with R Vincent Zoonekynd zoo...@math.jussieu.fr 6th January 2007 URL: http://zoonek2.free.fr/UNIX/48_R/all.html data(HairEyeColor) a - as.table( apply(HairEyeColor, c(1,2), sum) ) # Provided Example

Re: [R] Aligning Diagonally Oriented Labels Under Bar Chart

2009-12-02 Thread Jason Rupert
greatly appreciated. Thank you again.   - Original Message From: Peter Alspach peter.alsp...@plantandfood.co.nz To: Jason Rupert jasonkrup...@yahoo.com; R-help@r-project.org Sent: Tue, December 1, 2009 5:29:17 PM Subject: RE: [R] Aligning Diagonally Oriented Labels Under Bar Chart

[R] Aligning Diagonally Oriented Labels Under Bar Chart

2009-12-01 Thread Jason Rupert
I searched the forms (i.e., R Search) and come up with the following suggested link:  http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f I tried to implement what I believe was being implied by that URL and came up with the below: barplot(WorldPhones[1,],   

Re: [R] Orphaned R Packages (maybe this is too inside baseball?)

2009-11-29 Thread Jason Rupert
insights regarding concerns about the open license issues (handled either on-list or off-list). Thanks again and take care, Jason jasonkrup...@yahoo.com - Original Message From: Uwe Ligges lig...@statistik.tu-dortmund.de To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org

Re: [R] Does nargin and nargout work with R functions?

2009-11-29 Thread Jason Rupert
This works great. Thanks for your help. - Original Message From: baptiste auguie baptiste.aug...@googlemail.com To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help R-help@r-project.org Sent: Thu, November 26, 2009 11:08:57 AM Subject: Re: [R] Does nargin and nargout work with R

[R] R function that duplicates Octave's poly function?

2009-11-28 Thread Jason Rupert
By any chance is anyone aware of an R function that duplicates Octave's poly function? Here is a description of Octave's poly function: Function File: poly (A) If A is a square N-by-N matrix, `poly (A)' is the row vector of the coefficients of `det (z * eye (N) - a)', the

Re: [R] R function that duplicates Octave's poly function?

2009-11-28 Thread Jason Rupert
. - Original Message From: David Winsemius dwinsem...@comcast.net To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org Sent: Sat, November 28, 2009 9:23:23 AM Subject: Re: [R] R function that duplicates Octave's poly function? On Nov 28, 2009, at 9:33 AM, Jason Rupert wrote: By any

[R] Orphaned R Packages (maybe this is too inside baseball?)

2009-11-28 Thread Jason Rupert
How do the R powers that be handle packages that are orphaned from CRAN? Recently, I was looking for a function either part of the base functionality or an add-on package that mimicked the poly functionality from Octave

[R] Debugging the unexpected string constant error in the zp2ssg2.R

2009-11-27 Thread Jason Rupert
I posted the full extent of this question to Nabble, but essentially I'm having difficulty determining the route cause of the unexpected string constant error in the zp2ssg2.R (which I'm trying to port over from Octave). Here is my current Nabble posting:

Re: [R] Debugging the unexpected string constant error in the zp2ssg2.R

2009-11-27 Thread Jason Rupert
Evidently it just needed a little more tweaking... http://n2.nabble.com/Need-help-solving-the-unexpected-string-constant-error-td4077984.html#a4078425 Hopefully all this will work out... - Original Message From: Jason Rupert jasonkrup...@yahoo.com To: R-help@r-project.org Sent: Fri

[R] Does nargin and nargout work with R functions?

2009-11-26 Thread Jason Rupert
I am porting some MATLAB functions over to R and hopefully into a package, so I am curious if nargin and nargout work with R functions. Here is kind of an example of where I need to head in order to port control-1.0.11 from Octave over to R. The Octave control-1.0.11 package has the

[R] Test Binary File

2009-11-25 Thread Jason Rupert
I've got an error with the way I'm using readBin on a binary file of unknown internal structure. I know the structure consists of rows and columns, but I'm not sure how many of each. So, does anyone know of a valid test set of binary data that I could reference while trying to figure out

Re: [R] How to add a top level title to multiple plots

2009-11-23 Thread Jason Rupert
In the example below, is there any way to get the top title, i.e. Distribution Comparisons, in a bit from the top margin?  Thanks agian   - Original Message From: Jason Rupert jasonkrup...@yahoo.com To: Peter Ehlers ehl...@ucalgary.ca Cc: R Project Help R-help@r-project.org; Me

[R] How to add a top level title to multiple plots

2009-11-20 Thread Jason Rupert
How can I add an overall plot title to these four plots? I would like to have something that says, Distribution Comparisons: par(mfrow = c(2, 2)) # Plot 1 plot(rnorm(10),type=l,col=red) title(main = list(paste(Normal),   col=black, cex = 1.0)) # Plot 2 plot(rpois(10,

Re: [R] How to add a top level title to multiple plots

2009-11-20 Thread Jason Rupert
(2,2,3,2)) Thanks again. - Original Message From: Peter Ehlers ehl...@ucalgary.ca To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org Sent: Fri, November 20, 2009 5:23:33 PM Subject: Re: [R] How to add a top level title to multiple plots Jason Rupert wrote: How can I

[R] ddply function nesting problems

2009-11-19 Thread Jason Rupert
While putting my R code into functions, I've encountered a ddply function nesting issue and need a bit of advice on the proper way to fix it.  I've tried several approahces, but neither worked and I need to have the ability to include the cut, range, and fullseq methods within ddply.  (For a

Re: [R] ddply function nesting problems

2009-11-19 Thread Jason Rupert
baptiste.aug...@googlemail.com To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org Sent: Thu, November 19, 2009 9:24:29 AM Subject: Re: [R] ddply function nesting problems Hi, I think your ddply call with a calculation inside .(  ) is the problem. Are you sure you need to do

[R] Preferred Method for Reading in and Processing Access Database

2009-11-18 Thread Jason Rupert
By any chance is there a preferred way to allow R to read in data from an Access Database and then also process that data? Thanks for any hints and tips since I have traditionally been working with csv file. Thanks again. __ R-help@r-project.org

[R] Best advice for connect R and Octave

2009-11-14 Thread Jason Rupert
I see at one time there was a package called ROctave. I tried to install that package: install.packages(ROctave) --- Please select a CRAN mirror for use in this session --- Warning message: In getDependencies(pkgs, dependencies, available, lib) : package ‘ROctave’ is not available

Re: [R] Best advice for connect R and Octave

2009-11-14 Thread Jason Rupert
Ligges lig...@statistik.tu-dortmund.de To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org Sent: Sat, November 14, 2009 4:17:03 PM Subject: Re: [R] Best advice for connect R and Octave - It has never been on CRAN. - A quick Google search suggests it is on Omegahat. Uwe Ligges

Re: [R] Best advice for connect R and Octave

2009-11-14 Thread Jason Rupert
to be considered. Thank you again for your reply and insights. - Original Message From: cls59 ch...@sharpsteen.net To: r-help@r-project.org Sent: Sat, November 14, 2009 4:29:18 PM Subject: Re: [R] Best advice for connect R and Octave Jason Rupert wrote: I see at one time

[R] Package to do Bode Plots and analysis?

2009-11-12 Thread Jason Rupert
By any chance are there any R packages that assist in producing Bode Plots and performing Bode analysis? Thanks again for any feedback and insights. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] Scheffé's method?

2009-11-07 Thread Jason Rupert
Evidently my RSeek capabilities have once again failed me...By any chance is Scheffe's method (http://www.itl.nist.gov/div898/handbook/prc/section4/prc472.htm) implemented independently in any R base packages? If not, is it implemented independently in any of the add-on packages? Thanks

[R] Convert H:MM:SS PM /AM into 24 HR syntax

2009-11-04 Thread Jason Rupert
I've got an array of times in H:MM:SS PM/AM format, e.g. 5:27:15 PM (no leading zero), and I would like to convert them over to 24 HR syntax, e.g. HH:MM:SS. If it matters, the times are from the Central Time zone. Is there a command to convert the time to a 24HR format? I tried the

Re: [R] Convert H:MM:SS PM /AM into 24 HR syntax

2009-11-04 Thread Jason Rupert
This is exactly what I needed.  Thanks again for all your help. - Original Message From: Henrique Dallazuanna www...@gmail.com To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org Sent: Wed, November 4, 2009 11:22:52 AM Subject: Re: [R] Convert H:MM:SS PM /AM into 24 HR

[R] Recommendation for dealing with mixed input types in CSV

2009-10-29 Thread Jason Rupert
Currently I have a CSV with mixed input types that I am trying to read in and reformat without having to list off all the column names.  Below is an example of the data: HouseColor, HouseSize, HouseCost Blue, 1600, 160e3 Blue, 1600, 160e3 Actually I have about 60 columns like this, so imagine

[R] Using grep to determine value of last letter...

2009-10-19 Thread Jason Rupert
I am currently being defeated by grep. I am attempting to determine the value of the last letter of a character string. An example of my data set is shown below. Regarding the codes, I would like to identify the value of the last character and then take the appropriate action, e.g. If the

[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

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

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

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

2009-10-15 Thread Jason Rupert
get away from the for loop To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org Date: Thursday, October 15, 2009, 4:46 PM You do not offer a workable example, but it appears you might be doing a merge operation. ?merge merge(SubdivisionHouses, BuildingCodes, by.x=BuildYear

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 ld7...@gmail.com wrote: From:

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

2009-10-10 Thread Jason Rupert
. Thanks again for any insights and feedback you can provide. --- On Sat, 10/10/09, glen_b glnbr...@gmail.com wrote: From: glen_b glnbr...@gmail.com 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

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

2009-10-10 Thread Jason Rupert
: Gabor Grothendieck ggrothendi...@gmail.com Subject: Re: [R] Running R scripts from a GUI interface To: Jason Rupert jasonkrup...@yahoo.com 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

[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

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

2009-10-08 Thread Jason Rupert
the XML and then end up posting it for others. Thanks again. --- On Wed, 10/7/09, Gabor Grothendieck ggrothendi...@gmail.com wrote: From: Gabor Grothendieck ggrothendi...@gmail.com Subject: Re: [R] R user defined language file for NotePad++ To: Jason Rupert jasonkrup...@yahoo.com Cc

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

2009-10-08 Thread Jason Rupert
wrote: From: Remko Duursma remkoduur...@gmail.com Subject: Re: [R] R user defined language file for NotePad++ To: Jason Rupert jasonkrup...@yahoo.com 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

[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++.

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

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 eiver...@nmdp.org wrote: From: Erik Iverson eiver...@nmdp.org Subject: RE: [R] Way of handling empty value when reading in CSV To: Jason Rupert jasonkrup...@yahoo.com, R-help@r

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 r.tur...@auckland.ac.nz wrote: From: Rolf Turner r.tur...@auckland.ac.nz Subject: Re: [R] Deleting a column

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

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

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

2009-08-13 Thread Jason Rupert
-Mix shesc...@mail.med.upenn.edu Cc: Jason Rupert jasonkrup...@yahoo.com, r-help@r-project.org Date: Thursday, August 13, 2009, 3:41 AM On Wed, 2009-08-12 at 23:36 -0400, Scott Sherrill-Mix wrote: I don't really use Word or .wmf but maybe try a high pixel count .png e.g. png('test.png',height

[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 documentation that

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

2009-08-13 Thread Jason Rupert
...@ucl.ac.uk wrote: From: Gavin Simpson gavin.simp...@ucl.ac.uk Subject: Re: [R] Yet another plotting hint - choosing the proper device to produce plots for Word To: Jason Rupert jasonkrup...@yahoo.com Cc: Scott Sherrill-Mix shesc...@mail.med.upenn.edu, r-help@r-project.org Date: Thursday, August 13

[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

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

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

2009-08-12 Thread Jason Rupert
, Sarah Goslee sarah.gos...@gmail.com wrote: From: Sarah Goslee sarah.gos...@gmail.com Subject: Re: [R] Another Plotting Hint - changing fill color for points To: Jason Rupert jasonkrup...@yahoo.com, r-help r-help@r-project.org Date: Wednesday, August 12, 2009, 4:56 PM Yes, you can do that. You

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

2009-08-06 Thread Jason Rupert
Subject: Re: [R] Stacked plots with common x-axis and different y-axis To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org Date: Wednesday, August 5, 2009, 8:09 PM Try this: library(zoo) # ignore the fact that months have different lengths z - with(airquality, zoo(cbind(Wind

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 talk2han...@gmail.com wrote: From: hannesPretorius talk2han...@gmail.com Subject: Re: [R] i'm so stuck with text file and contour plot To:

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

2009-08-05 Thread Jason Rupert
and different y-axis To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org Date: Wednesday, August 5, 2009, 4:42 AM Jason Rupert wrote: 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

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

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

2009-08-04 Thread Jason Rupert
),side=1,col=black,line=2.5) # Add Legend legend(5,7000,legend=c(Beta Gal,Cell Density),text.col=c(black,red),pch=c(16,15),col=c(black,red)) --- On Tue, 8/4/09, Jason Rupert jasonkrup...@yahoo.com wrote: From: Jason Rupert jasonkrup...@yahoo.com Subject: Stacked plots with common x-axis

[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 jasonkrup...@yahoo.com wrote: From: Jason Rupert jasonkrup...@yahoo.com Subject: R Package That Contains

[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

[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

  1   2   3   >