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

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

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

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:

[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

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

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

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

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

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

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

[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] 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] 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] 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] 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] 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] 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] 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] list.files(getwd()) and list.files(getwd(), full.names=TRUE) appear to return directory names

2009-06-23 Thread Jason Rupert
Is there any way to make list.files(getwd()) or list.files(getwd(),full.names=TRUE) stop returning directories? Right now both appear to return both file names and folders within the location. I would like for it only to return file names and not folders. I am using this on Windows with

[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
, 2009, 5:37 AM Jason Rupert jasonkrupert at yahoo.com writes: 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. Have a look a some of the plotting

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

2009-06-28 Thread Jason Rupert
for any feedback. --- On Sun, 6/28/09, Jim Lemon j...@bitwrit.com.au wrote: From: Jim Lemon j...@bitwrit.com.au Subject: Re: [R] Automatically placing a legend in an area with the most white space... To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org Date: Sunday, June 28, 2009

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

2009-06-29 Thread Jason Rupert
wrote: From: Stavros Macrakis macra...@alum.mit.edu Subject: Re: [R] Automatically placing a legend in an area with the most white space... To: Jason Rupert jasonkrup...@yahoo.com Cc: Jim Lemon j...@bitwrit.com.au, R-help@r-project.org Date: Sunday, June 28, 2009, 3:16 PM install.packages

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.

[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

[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

Re: [R] Issues with file.info?

2009-07-09 Thread Jason Rupert
jholt...@gmail.com wrote: From: jim holtman jholt...@gmail.com Subject: Re: [R] Issues with file.info? To: Jason Rupert jasonkrup...@yahoo.com 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
...@auckland.ac.nz wrote: From: Rolf Turner r.tur...@auckland.ac.nz Subject: Re: [R] Issues with file.info? To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org R-help@r-project.org Date: Thursday, July 9, 2009, 3:13 PM On 10/07/2009, at 6:02 AM, Jason Rupert wrote

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

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

2009-07-16 Thread Jason Rupert
on, but no luck. Thank you again for all your help. --- On Thu, 7/16/09, Steve Lianoglou mailinglist.honey...@gmail.com wrote: From: Steve Lianoglou mailinglist.honey...@gmail.com Subject: Re: [R] Best way to replace :SS with :00 To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r

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 ggrothendi...@gmail.com wrote: From: Gabor Grothendieck ggrothendi...@gmail.com Subject: Re: [R] Best way to replace :SS with :00 To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r

[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

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

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

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

[R] Handling Error Thrown After source(...), read.table(...), and readLines(...)

2009-05-04 Thread Jason Rupert
Finally, I'm getting to a point in working with R where I would like to start to add some smart and custom error handling. Specifically, I would like to add custom error handling to my code for source(...), read.table(...), and readLines(...) For example, right now I have the following:

[R] Way to handle variable length and numbers of columns using read.table(...)

2009-05-04 Thread Jason Rupert
I've got read.table to successfully read in my table of three columns. Most of the time I will have a set number of rows, but sometime that will be variable and sometimes there will be only be two variables in one row, e.g. Time Loc1 Loc2 1 22.33 44.55 2 66.77 88.99 3 222.33344.55 4 66.77

Re: [R] Way to handle variable length and numbers of columns using read.table(...)

2009-05-04 Thread Jason Rupert
? If so, parsing it is not hard. On Mon, May 4, 2009 at 10:20 PM, Jason Rupert jasonkrup...@yahoo.comwrote: I've got read.table to successfully read in my table of three columns. Most of the time I will have a set number of rows, but sometime that will be variable and sometimes

[R] Problem accessing row number from subset on a dataframe

2009-05-26 Thread Jason Rupert
I would like to use the row number information returned from performing a subset command on a dataframe. For example, I would like to automatically delete some rows from a dataframe if they match a criteria. Here is my example below. data(airquality) names(airquality) subset(airquality,

Re: [R] Problem accessing row number from subset on a dataframe

2009-05-26 Thread Jason Rupert
Wardle m...@wardle.org wrote: From: Mark Wardle m...@wardle.org Subject: Re: [R] Problem accessing row number from subset on a dataframe To: Jason Rupert jasonkrup...@yahoo.com Cc: R-help@r-project.org Date: Tuesday, May 26, 2009, 3:18 PM Hi. I may be missing what you're trying to achieve

[R] Odd Behavior Out of setdiff(...) - addition of duplicate entries is not identified

2009-05-29 Thread Jason Rupert
I think I am using the improved version of setdiff(...) that handles data.frames, so I think some odd behavior was expected but this one is escaping me. It appears that the the addition of duplicate entries is not caught by the setdiff(...). Is this expected behavior? If so, is there

  1   2   3   >