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

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

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

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

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

[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... http://www.rseek.org/?cx=010923144343702598753%3Aboaz1reyxd4&newwindow=1&q=alternative+to+image+and+filled.contour&sa=Search&cof=FORID%3A11&

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

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

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

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

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

2010-05-25 Thread Jason Rupert
010.png", width=620, height=400) plot(shpA, col=colors[world_data$Col], border=gray(.85)) legend("bottomleft",legend=c("1K", "5K", "10K", "50K",

[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
tructed >>('NA's and 'NaN's are allowed and omitted). > >>coef: this determines how far the plot 'whiskers' extend out >>from the box. If 'coef' is positive, the whiskers extend >>to the most extreme data point which is no more than

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

2010-05-11 Thread Jason Rupert
x27; 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 boxplot.stats {grDevices} for a

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

2010-05-11 Thread Jason Rupert
rtile"? 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 To: David Winsemius Cc: R Project Help Sent: Tue, May 11, 2010 9:26:25 PM Subject: Re: [R] Whiskers on t

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

2010-05-11 Thread Jason Rupert
nce 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 To: Jason Rupert Cc: R Project Help Sent: Tue, May

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

[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 To: R-help@r-project.org Cc: Me Sent: Tue, February 23, 2010 6:33

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

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

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

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

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

[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} \end{eq

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

2010-01-20 Thread Jason Rupert
- Original Message From: David Scott To: Jason Rupert Cc: "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 I need to include Greek letters on a plot tit

[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.   https://stat.ethz.ch/p

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

2010-01-07 Thread Jason Rupert
addressing errors that occur during the "R CMD check" process, especially since they are not in the R Console and not possible to "browser()" into the issue... Thanks again for any insights or feedback. - Original Message From: Duncan Murdoch To: Jason Rupert

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

[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 To: Jason Rupert Cc: R Project Help Sent: Tue, December 15, 2009 7:48

[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 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 barplot(a, beside = TRUE,

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

2009-12-02 Thread Jason Rupert
Any suggestions on adjusting the text down a bit is also greatly appreciated. Thank you again.   - Original Message From: Peter Alspach To: Jason Rupert ; 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] 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 To: Jason Rupert Cc: R-help Sent: Thu, November 26, 2009 11:08:57 AM Subject: Re: [R] Does nargin and nargout work with R functions? Hi, I think you can use match.call() to retrieve the number of

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

2009-11-29 Thread Jason Rupert
with this package and hopefully others that are "orphaned". I also look to any further 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 L

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

2009-11-28 Thread Jason Rupert
approach for packages is most appreciated. Again thank you for all your help! It is sincerely greatly appreciated! - Original Message From: David Winsemius To: Jason Rupert Cc: R-help@r-project.org Sent: Sat, November 28, 2009 4:41:19 PM Subject: Re: [R] Orphaned R Packages (maybe this

[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 (http://n4.nabble.com/Re-R-function-that-duplicates-Octave-s-poly-func

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

2009-11-28 Thread Jason Rupert
iated. - Original Message From: David Winsemius To: Jason Rupert 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 chance is anyone aware of an

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

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 To: R-help@r-project.org Sent: Fri, November 27, 2009 6

[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: http://n2.nabble.com/Need-help-solvi

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

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

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 To: Peter Ehlers Cc: R Project Help ; Me Sent: Sat, November 21, 2009 12:31:04 AM Subje

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

2009-11-20 Thread Jason Rupert
"black") title(main = list(paste("Uniform"), col="black", cex = 1.0)) title("Distribution Comparisons", outer = TRUE) # c(bottom, left, top, right) par(oma=c(2,2,3,2)) Thanks again. - Original Message From: Peter Ehlers To: Jason Rupe

[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(r

Re: [R] ddply function nesting problems

2009-11-19 Thread Jason Rupert
: Jason Rupert 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 this? Performing the cut outside ddply seems to

[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

[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

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

2009-11-14 Thread Jason Rupert
be considered. Thank you again for your reply and insights. - Original Message From: cls59 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 there was a package

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

2009-11-14 Thread Jason Rupert
- Original Message ---- From: Uwe Ligges To: Jason Rupert 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 Jason Rupert

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

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

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

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 To: Jason Rupert 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 syntax Try this: strptime("5:27:

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

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

[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

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

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

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:

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

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

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

[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

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

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

[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

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

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

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

[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

[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

  1   2   3   >