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
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
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,
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"
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
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
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
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
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
. 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
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...
___
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
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
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
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
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
(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
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
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
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
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.
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
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
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
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
>
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
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
_
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
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
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
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
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
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).
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
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
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
:
> 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
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
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
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
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
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
.
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"
>
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++.
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:
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
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
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
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
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,
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
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
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
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
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
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
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
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
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:
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
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
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
- 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
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
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
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
: 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
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
"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
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
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
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
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
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
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
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
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
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
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
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
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,],
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
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,
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
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
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
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
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)
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
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
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
-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
>
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
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
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-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.
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.
__
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
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
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 - 100 of 210 matches
Mail list logo