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

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

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

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

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

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

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

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

[R] "Longer Dash" using lty

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

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

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

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

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

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

Re: [R] WMF conversion...

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

Re: [R] WMF conversion...

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

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

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

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

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

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

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

[R] R Aerodynamic Package(s)?

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

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] Automatically placing a legend in an area with the most white space...

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

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

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

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

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

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

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

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

2009-06-29 Thread Jason Rupert
Stavros Macrakis > Subject: Re: [R] Automatically placing a legend in an area with the most > white space... > To: "Jason Rupert" > Cc: "Jim Lemon" , R-help@r-project.org > Date: Sunday, June 28, 2009, 3:16 PM > > install.packages('plotrix') &g

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

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

[R] Skeleton Package to Flesh Out?

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

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

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

[R] Issues with file.info?

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

Re: [R] Issues with file.info?

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

Re: [R] Issues with file.info?

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

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

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

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

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

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

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

[R] Tripped up by Removing Level

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

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

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

[R] R Package That Contains Any Earth Magnetic Model

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

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

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

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

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

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

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

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

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

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

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

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

[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] grep or other complex string matching approach to capture necessary information...

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

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

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

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

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

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

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

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

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

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

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

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

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

[R] Running R scripts from a GUI interface

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

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

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

[R] Comphrensive R Function Development Documentation

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

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

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

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

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

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

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

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

[R] Determining a linear model based on a factor

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

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

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

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

[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

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

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

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

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

[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

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

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

[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

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

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

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

[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
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] 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] 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] 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
6/09, Mark Wardle wrote: > From: Mark Wardle > Subject: Re: [R] Problem accessing "row number" from subset on a dataframe > To: "Jason Rupert" > Cc: R-help@r-project.org > Date: Tuesday, May 26, 2009, 3:18 PM > Hi. I may be missing what you're &g

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

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

2009-05-29 Thread Jason Rupert
owing ones: library(colorspace, lib.loc=RLibraryPathLocation) library(vcd, lib.loc=RLibraryPathLocation) library(timeDate, lib.loc=RLibraryPathLocation) library(timeSeries, lib.loc=RLibraryPathLocation) library(fBasics, lib.loc=RLibraryPathLocation) library(nortest, lib.loc=RLibraryPathLocation)

Re: [R] setdiff bizarre (was: odd behavior out of setdiff)

2009-05-30 Thread Jason Rupert
uplicateRows_DF<-subset(Entry_DF, duplicated(Entry_DF)) DesiredDFDiff_DF<-rbind(DuplicateRows_DF, setDiff_DF) DesiredDFDiff_DF --- On Sat, 5/30/09, G. Jay Kerns wrote: > From: G. Jay Kerns > Subject: Re: setdiff bizarre (was: odd behavior out of setdiff) > To: "Jason Rupe

[R] Getting a column of values from a list - think I'm doing it the hard way

2009-06-03 Thread Jason Rupert
Example code it shown below. I think I am doing this the hard way. I'm just trying to get the full year value from an array of dates. An example array is shown below. Right now, I'm using a "for" loop to pull the year out of a list where the dates were split up into their individual compone

[R] Understanding R Hist() Results...

2009-06-03 Thread Jason Rupert
Think I'm missing something to understand what is going on with hist(...) http://n2.nabble.com/What-is-going-on-with-Histogram-Plots-td3022645.html For my example I count 7 unique years, however, on the histogram there only 6. It looks like the bin to the left of the tic mark on the x-axis rep

Re: [R] Understanding R Hist() Results...

2009-06-04 Thread Jason Rupert
-on-with-Histogram-Plots-td3022645.htm --- On Thu, 6/4/09, ted.hard...@manchester.ac.uk wrote: > From: ted.hard...@manchester.ac.uk > Subject: RE: [R] Understanding R Hist() Results... > To: R-help@r-project.org > Cc: "Jason Rupert" > Date: Thursday, June 4, 2009, 5:13 AM >

[R] Journal Articles that Have Used R

2009-06-06 Thread Jason Rupert
Is there a way to get a reference list of journal articles that have used R? I am just looking for some examples of R graphs and presentation of results where R was used to generate the results. Thanks for any feedback and insights. __ R-help@r-pr

[R] Good Programming Practice Question - Functions in Different Files

2009-06-08 Thread Jason Rupert
I've gotten to the point wih an R script where I would like to encapsulate several blocks of codes in R functions. In order to keep the top level script simple I would like to put them in a separate file. This should help the readability of the top level main script. Is source(...) the best w

[R] R command to join data.frames rows with identical keys?

2009-06-09 Thread Jason Rupert
I've got two data.frames and, when certain "keys" match, I would like to add the column values from one data frame to the other data.frame. Below I list the two data.frames, i.e. neighborhoodInfo_df, and schoolZone_df. Based on the "address" key I would like to add the "schoolZone" key to the

[R] (no subject)

2009-06-09 Thread Jason Rupert
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Automatically placing legend in location of most whitespace.

2009-06-11 Thread Jason Rupert
Just read the following: https://stat.ethz.ch/pipermail/r-help/2003-October/039940.html Is the labcurve function, really the putKey function, in the Hmisc package the best way the to go about automatically placing legend in location of most whitespace? Thanks for any insights. __

[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

[R] Replacing a few variable values within a DataFrame...

2009-03-23 Thread Jason Rupert
I would like to replace a few varaibles within a data frame. For example, in the dataframe below (contrived) I would like to replace the current housesize value only if the Location is HSV. However, I would like to leave the other values intact. I tried "ifelse", but I don't really need

Re: [R] Replacing a few variable values within a DataFrame...

2009-03-23 Thread Jason Rupert
25, 35, 45, 55, 18, 28, 38, 48, 58), Lot=c(1, 2, 3, 4, 5, 10, 20, 30, 40, 50, 11, 21, 31, 41, 51), Location = c("HSV", "ATH", "HSV", "ATH", "FLO", "HSV", "ATH", "HSV", "ATH", "FLO", "HSV&qu

  1   2   3   >