[R] Labeling Stacked Bar Plots Representing Percentages with Count Data

2019-11-15 Thread Josh B
Hello, I am trying to include the count labels on stacked bar plots which represent percentages. I want to show x-amount of individuals make up the graphed percentages. However, when I include the count labels my y-axis gets blown out of proportion because it changes to match the count data, not t

[R] ggmap Question

2019-09-08 Thread Josh B
Hello r-help, My question is regarding specific coding in ggmap. I am mapping radio telemetry detections of shorebirds using ggmap. I want the map to depict a specific point (lat/lon of a telemetry tower) where the bird was detected, as well as the following variables associated with that lat/lon

[R] Graduated Symbol and Color Scale Coding Question

2019-08-26 Thread Josh B
I am mapping radio telemetry detections of shorebirds using ggmap. I want the map to depict a specific point (lat/lon) where the bird was detected. I want this depicted date of detection to be represented by a color scale. However, multiple birds are detected at the same telemetry tower (lat/lon) b

[R] PCA in Q- and R-modes

2017-01-18 Thread Josh Mitteldorf
The two yield very different-looking plots. Thanks for your help. - Josh Mitteldorf [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] An Odd Request

2015-05-29 Thread Josh Grant
ve no clue how to go about integrating such analyses into a website. I could certainly learn how, would love to, and ultimately will, but if someone was interested in joining me in this endeavour much more could be accomplished. If you're interested in knowing more let me know. Josh

[R] Creating a boxplot from a data summary

2013-03-24 Thread Josh Hall
Hi, I'm trying to create a boxplot from the summary of a large data set and I'm having trouble finding any way to do this. I'm familiar with, but by no means good at, using R, so the only two websites I've found pertaining to this issue have been way over my head. I was hoping for a simple set of

Re: [R] ggplot geom_smooth colour

2012-12-17 Thread Josh Lemaitre
Fortunately for you and your embarrassment, the members of this list are a nurturing and supportive group that truly cares first and foremost about submitters' success. On 12/17/12 12:16 PM, "soon yi" wrote: >Thank you. > >Rather embarrassed. Its fair to say i had rather over comlicated my >atte

Re: [R] Sorting a data frame by specifying a vector

2012-10-11 Thread ROLL Josh F
tober 11, 2012 10:33 AM To: ROLL Josh F Cc: R help Subject: Re: [R] Sorting a data frame by specifying a vector Hi, In your dataset, it seems like it is already ordered in the way you wanted to. df.. <- data.frame(Season=rep(c("Summer","Fall","Winter","Spring&

Re: [R] Unexpected behavior with weights in binomial glm()

2012-10-02 Thread Josh Browning
On Sep 30, 2012, at 4:47 AM, Josh Browning wrote: > >> Hi David, >> >> Yes, I agree that the results are "very similar" but I don't >> understand why they are not exactly equal given that the data sets are >> identical. >> >> And yes, this 1%

Re: [R] Unexpected behavior with weights in binomial glm()

2012-09-30 Thread Josh Browning
way to tweak my glm() runs (possibly adjusting the numerical precision somehow???) so that this doesn't happen. Josh On Sat, Sep 29, 2012 at 7:50 PM, David Winsemius wrote: > > On Sep 29, 2012, at 7:10 AM, Josh Browning wrote: > >> Hi useRs, >> >> I'm exper

[R] Plotting DMAs (Direct Marketing Areas)

2012-09-14 Thread Josh Browning
Hey useRs! Do any of you guys know how to plot DMAs within R (preferrably within the maps() package)? I haven't been able to find any resources on this, but I apologize if this is a dumb question and I'm overlooking the obvious answer. Thanks for your help! Josh [[altern

[R] Plotting US States: Issue with filled colors cycling

2012-09-12 Thread Josh Browning
I'm having issues when trying to do a filled State plot using the maps() package. It seems that the color values aren't being plotted correctly, and I'm not sure why... I've started debugging it, but I'm stuck. I've attached the code that I've got so far. The for loop plots states 1:i. What I'

Re: [R] add leading zeros

2012-07-27 Thread ROLL Josh F
This solution was the most elegant. Thanks everyone. Josh -Original Message- From: R. Michael Weylandt [mailto:michael.weyla...@gmail.com] Sent: Thursday, July 26, 2012 9:55 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] add leading zeros Much easier than you think

Re: [R] Using object as literal value in list vector

2012-06-20 Thread ROLL Josh F
, 2012 1:14 PM To: ROLL Josh F Cc: R help Subject: Re: [R] Using object as literal value in list vector Hi, You can try: NewMeans<-split(matrix(unlist(MeanValues_)*0.80),1:nrow(matrix(unlist(MeanValues_)*0.80))) names(NewMeans)<-names(MeanValues_) NewMeans $ACC [1] 800 $RTL [1] 1600 $

[R] Stratified Sampling with randomForest Regression

2012-06-01 Thread Josh Browning
Or, has anyone modified the package to allow for stratified sampling in regression problems? Please let me know if I'm not being clear enough with this question, and thanks for helping me out! Josh [[alternative HTML version deleted]] _

Re: [R] Probably a good use for apply

2012-05-31 Thread ROLL Josh F
but you lose out on speed and that is my issue right now. I can do what I need to do using some for loops but its way way too slow. Any guidance is appreciated. Thanks guys Josh -Original Message- From: Sarah Goslee [mailto:sarah.gos...@gmail.com] Sent: Thursday, May 31, 2012 1:35

[R] Updating Neural Networks

2012-05-16 Thread Josh Browning
epochs (preferably using nnet, as that package seems the most user-friendly to me, but I’m open to other packages too). Is there a way to do this, or would I need to rerun nnet for every different epoch value I wish to consider? Thanks so much for your help! Josh [[alternative HTML

Re: [R] Pasting with Quotes

2012-05-07 Thread Josh Browning
Thank you both so much for your help! I ended up using bquote(expression(...)), and it's working perfectly! On Sat, May 5, 2012 at 1:05 PM, David Winsemius wrote: > > On May 5, 2012, at 2:42 PM, Josh Browning wrote: > > Hello useRs! >> >> So, I have a random que

[R] Pasting with Quotes

2012-05-05 Thread Josh Browning
t, when I paste the expression together, it removes the quotes. Is there a better way to do this (or at least a way around this problem)? My method seems a bit kludgy :) Thanks for all your help! Josh [[alternative HTML version deleted]] __ R-help@

Re: [R] Building customized R for Windows installer using 'make myR'

2012-04-10 Thread Josh O'Brien
he current version of R, what's the recommended course of action? Is it valuable to report it, and if so where? Thanks again, Josh O'Brien Uwe Ligges-3 wrote > > On 10.04.2012 20:24, Josh O'Brien wrote: >> I am attempting to build a customized R installer on Windows,

[R] Building customized R for Windows installer using 'make myR'

2012-04-10 Thread Josh O'Brien
ernative approach, could I employ the strategy described in the quoted passage above with a version of R that I've compiled myself and then edited slightly (by adding packages and making a few changes to Rprofile.site)? Thanks, Josh O'Brien -- View this message in context: http://r

Re: [R] Several densityplots in single figure

2012-02-23 Thread josh rosen
gt; learned the most regarding the fine points of lattice plots. >> >> And will you please learn to post in plain text? >> >> -- >> david >> >> >>>                } >>> ) >>> >>> >>> >>> >>

Re: [R] Several densityplots in single figure

2012-02-22 Thread josh rosen
nel.abline(v=mean(thedataA1$x1), lty="dashed", col="red") } ) On 22 February 2012 13:48, David Winsemius wrote: > > On Feb 22, 2012, at 5:28 AM, josh rosen wrote: > > Hi, >> >> I have created two separate overlapping density plots- see example co

[R] Several densityplots in single figure

2012-02-22 Thread josh rosen
Hi, I have created two separate overlapping density plots- see example code below. What I wish now to do is combine them into one figure where they sit side by side. Any help would be great! many thanks in advance, josh. # thedataA <- data.frame(x1=rnorm(100,1,1),x2=rn

[R] Several densityplots in single figure

2012-02-22 Thread josh rosen
Hi, I have created two separate overlapping density plots- see example code below. What I wish now to do is combine them into one figure where they sit side by side. Any help would be great! many thanks in advance, josh. # thedataA <- data.frame(x1=rnorm(100,1,1),x2=rn

Re: [R] I bet apply has a solution

2012-02-06 Thread ROLL Josh F
Ah. That's the one. Thank you. -Original Message- From: Ista Zahn [mailto:istaz...@gmail.com] Sent: Monday, February 06, 2012 11:12 AM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] I bet apply has a solution Hi Josh, How about apply(Data, 1, function(row) sd(row)

[R] rpart vs. tree and deviance calculations

2012-01-10 Thread Josh Browning
Hi Everyone, I'm working on building some classification trees, and up to this point I've been using rpart. However, I recently discovered the tree package, and found that it had some useful functions (in particular deviance(), which I would really like to use for my project). I can't seem to

Re: [R] Adding a vertical line to plot with two overlapping density plots

2012-01-04 Thread josh rosen
t = FALSE) >if (once) >panel.abline(a = a[k], b = b[k], v = v[k], h = h[k], >...) >else panel.abline(a = a, b = b, v = v, h = h, ...) >trellis.unfocus() >} > } > > Regards > Petr > > > > > > > Many thanks,

[R] Adding a vertical line to plot with two overlapping density plots

2012-01-04 Thread josh rosen
riable,auto.key=list(columns=2)) #this gives the two density plots # what I wish now is to add a vertical line, for example v=2. Many thanks, Josh. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.e

Re: [R] To Try or to TryCatch, I have tried to long

2011-12-06 Thread ROLL Josh F
Thank for the links. I reread one I found yesterday about changing the options parameter to options(warn = 2) and that allows the try() function to see a warning the same way as an error so problem solved using the existing code. Cheers, Josh -Original Message- From: William

[R] Compact letter display for interaction effects

2011-10-03 Thread Josh Caplan
Hello, I am interested in generating a compact letter display for the results of Tukey HSD tests that contain interaction effects. The 'cld' method in the 'multcomp' package seems only to work for main effects. Does such a thing exist already? Thank you for any thought

[R] Data simulation for ANOVA decomposition into sums of squares

2011-09-30 Thread Josh B
s of squares (ranging from 0.1 - 0.9) while holding the total sums of squares constant (equal to 1). Many thanks in advance for your suggestions. I recognize that this is as much a statistical/mathematical question as an R programing question. Sincerely, --- Josh

Re: [R] conditional replacement of character strings in vectors

2011-09-04 Thread Josh Tewksbury
uot;) dfrm<-cbind(a,b) David's code was as follows: dfrm$b[is.na(dfrm$b)] <- dfrm$a[is.na(dfrm$b)] this works great. Thanks to you both On Fri, Sep 2, 2011 at 4:52 PM, David Winsemius wrote: > > On Sep 2, 2011, at 3:51 PM, Josh Tewksbury wrote: > > Hello, I have a

[R] conditional replacement of character strings in vectors

2011-09-02 Thread Josh Tewksbury
-- Josh [[alternative HTML version deleted]] __ 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

Re: [R] Oh apply functions, how you confuse me

2011-09-01 Thread ROLL Josh F
Dang Jim this looks to do the trick though I never heard of a data.table, interesting, I will explore more. Thanks you very much. -Original Message- From: jim holtman [mailto:jholt...@gmail.com] Sent: Thursday, September 01, 2011 11:20 AM To: ROLL Josh F Cc: r-help@r-project.org

[R] Customizing a heatmap plot

2011-06-27 Thread Josh B
would I add a key (with the appropriate color ramp) to the bottom right corner of the graph? (I recognize that this can be done with the "Key = TRUE" option of the heatmap.2 function in the gplots package, but I want to use that. I want to make the key myself so that I can fully c

[R] Hadoop Hive output read into R

2011-06-13 Thread Josh Lemaitre
the group have experience with a better way to handle this? The goal would be to write data directly from hive into the R CLI in order to avoid unnecessary file clutter on a shared server. There are hadoop packages, such as Rhipe and hive Thanks. Josh [[alternative HTML version deleted]]

Re: [R] Opening R in 64-bit version by default

2011-05-24 Thread Josh Browning
Oh, of course, sorry. I'm running Windows 7. Thanks! Josh -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Tuesday, May 24, 2011 11:25 AM To: Josh Browning Cc: r-help@r-project.org Subject: Re: [R] Opening R in 64-bit version by default On May 24,

[R] Opening R in 64-bit version by default

2011-05-24 Thread Josh Browning
ace and setting the default option as the 64 bit version, but it still opens the workspace in 32-bit. Am I missing something here? Any help would be greatly appreciated! Thanks! Josh [[alternative HTML version deleted]] __ R-help@r-proj

Re: [R] Summarize by two or more attributes

2011-05-17 Thread ROLL Josh F
I will take a look. In my real data I need to interpolate the 16 points into 64 points for each of the categories. Thanks Marc JR -Original Message- From: Marc Schwartz [mailto:marc_schwa...@me.com] Sent: Tuesday, May 17, 2011 1:09 PM To: ROLL Josh F Cc: r-help@r-project.org

Re: [R] Summarize by two or more attributes

2011-05-17 Thread ROLL Josh F
Marc, How could I also apply the spline function to each of the 'columns' found in the result from tapply(Df$Rate,list(Df$Bin,Df$Type),sum) ?? -Original Message- From: Marc Schwartz [mailto:marc_schwa...@me.com] Sent: Tuesday, May 17, 2011 12:42 PM To: ROLL Josh F

[R] Rotating the x-axis labels of a barplot

2011-04-16 Thread Josh B
I move the x-axis labels to the _center_ of each bar? Right now, they line up with the right-side of each bar. Thank you very much in advance. Sincerely, --- Josh Banta, Ph.D Center for Genomics and Systems Biology New York University 100 Washington Square

[R] Plotting a quadratic line on top of an xy scatterplot

2011-04-11 Thread Josh B
ally show the relationship among the variables that is being modeled. How do I do it? I think the curve() command will be used, but I don't know how to employ it. Thanks very much in advance. Sincerely, --- Josh Banta, Ph.D Center for Genomics and System

Re: [R] Partial italic in graph titles when looping

2011-04-11 Thread Josh B
number as a superscript). Thanks very much in advance! Sincerely, Josh Banta From: David Winsemius Sent: Sat, February 19, 2011 10:24:03 PM Subject: Re: [R] Partial italic in graph titles when looping On Feb 19, 2011, at 8:52 PM, Josh B wrote: > Follow-

Re: [R] Loading mdb

2011-03-22 Thread ROLL Josh F
n a 64 bit machine. I cant seem to locate a 64 bit counterpart. -Original Message- From: Phil Spector [mailto:spec...@stat.berkeley.edu] Sent: Tuesday, March 22, 2011 1:01 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] Loading mdb I believe that you are misinterpreting

Re: [R] Loading mdb

2011-03-22 Thread ROLL Josh F
only tool to read in mdb's from MS Access? I feel like it should be easier than this? Thoughts? Thanks Phil JR -Original Message- From: Phil Spector [mailto:spec...@stat.berkeley.edu] Sent: Tuesday, March 22, 2011 1:01 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: R

[R] Partial italic in graph titles when looping

2011-02-19 Thread Josh B
through to make these graphs and graph titles? If I WASN'T looping to make my graph titles, I could write: title(main = expression(paste(bolditalic("FLC"), bold("p3312"), sep = " "))) ...but I can't do that, because I'm looping (or can I?) Thanks in

[R] Find and replace all the elements in a data frame

2011-02-17 Thread Josh B
quot;A") { : missing value where TRUE/FALSE needed So what am I doing wrong? If you can provide me with specific code that fixes the problem and gets the job done, that would be the most useful. Thanks very much in advance for your help! Sincerely, --- Josh B

Re: [R] List elements of NULL to value

2010-11-29 Thread ROLL Josh F
Yes that works thank you, and as always I feel foolish for asking. You guys are great. Cheers, Josh Roll Lane Council of Governments Transportation Planner 541-682-2454 jr...@lcog.org www.lcog.org -Original Message- From: Phil Spector [mailto:spec...@stat.berkeley.edu] Sent

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Josh B
Dear Michael, Thanks very much. I have a follow-up question: how did you know that symbol 255 is the up-arrow? Josh From: Michael Bedward Cc: R Help Sent: Wed, October 6, 2010 5:09:48 AM Subject: Re: [R] Pointing to a specific place on the x-axis with an

[R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Josh B
ble? Many thanks to all of you in advance. --- Josh Banta, Ph.D Center for Genomics and Systems Biology New York University 100 Washington Square East New York, NY 10003 Tel: (212) 998-8465 http://plantevolutionaryecology.org [[alternative

[R] Splitting a data frame into several completely separate data frames

2010-09-26 Thread Josh B
to different data sets. Many thanks in advance for your replies! --- Josh Banta, Ph.D Center for Genomics and Systems Biology New York University 100 Washington Square East New York, NY 10003 Tel: (212) 998-8465 http://plantevolutiona

[R] Help with customizing a histogram figure

2010-09-16 Thread Josh B
hat gets the job done would be most useful for me. Thanks very much in advance! Sincerely, --- Josh Banta, Ph.D Center for Genomics and Systems Biology New York University 100 Washington Square East New York, NY 10003 Tel: (212) 998-8465 http://plantevolutionaryeco

Re: [R] proportion

2010-09-13 Thread ROLL Josh F
Sure I tried that and it works but I was formerly using just 'proportion ' so I find it strange that this has occurred. -Original Message- From: Phil Spector [mailto:spec...@stat.berkeley.edu] Sent: Monday, September 13, 2010 4:08 PM To: ROLL Josh F Cc: r-help@r-project.org S

[R] New to R

2010-08-30 Thread Josh HIll
I'm relatively new to R, and not particularly adept yet, but I was wondering if there was a simply way to simulate missing data that are MAR, MNAR and MCAR. I've got a good work-around for the MCAR data, but it's sort of hard to work with. Josh [[alternative HTML

[R] concatenating column names in a loop

2010-07-19 Thread Josh B
y code to be robust against changes in the column numbers of the x matrix. That is why I am telling R to look up the number of rows and columns in the x matrix when constructing the y matrix, rather than just putting in a hard count for the number of rows and columns in the y matrix. Thanks in ad

Re: [R] Continuing on with a loop when there's a failure

2010-07-19 Thread Josh B
;, everything is there (except for y2, which is supposed to fail): results y1 y2y3 [1,] 0.6976063 NA 0.6976063 From: David Winsemius Cc: R Help Sent: Sun, July 18, 2010 9:12:44 PM Subject: Re: [R] Continuing on with a loop when there's a

Re: [R] Continuing on with a loop when there's a failure

2010-07-18 Thread Josh B
_ From: David Winsemius Cc: Peter Konings ; R Help Sent: Sun, July 18, 2010 3:33:07 PM Subject: Re: [R] Continuing on with a loop when there's a failure On Jul 18, 2010, at 4:25 AM, Josh B wrote: > Hello Peter, > > I tried your suggestion, but I was still not able to get i

Re: [R] Continuing on with a loop when there's a failure

2010-07-18 Thread Josh B
y1 y2 y3 [1,] NA NA NA [[elided Yahoo spam]] From: Peter Konings Sent: Tue, July 13, 2010 5:45:17 PM Subject: Re: [R] Continuing on with a loop when there's a failure Hi Josh, Test the class of the resulting object. If it is 'try-error' fill

Re: [R] Continuing on with a loop when there's a failure

2010-07-18 Thread Josh B
#x27;s the output: > results y1 y2 y3 [1,] NA NA NA The results matrix is empty! From: Peter Konings Sent: Tue, July 13, 2010 5:45:17 PM Subject: Re: [R] Continuing on with a loop when there's a failure Hi Josh, Test the class of the resulting object. If it is 'try-error&#x

Re: [R] Continuing on with a loop when there's a failure

2010-07-13 Thread Josh B
mius Sent: Tue, July 13, 2010 9:09:04 AM Subject: Re: [R] Continuing on with a loop when there's a failure On Jul 13, 2010, at 9:04 AM, David Winsemius wrote: > > On Jul 13, 2010, at 8:47 AM, Josh B wrote: > >> Thanks again, David. >> [[elided Yahoo spam]] (BTW, it did w

Re: [R] Continuing on with a loop when there's a failure

2010-07-13 Thread Josh B
st want R to keep going in spite of them and give me my results matrix. From: David Winsemius Cc: R Help Sent: Mon, July 12, 2010 8:09:03 PM Subject: Re: [R] Continuing on with a loop when there's a failure On Jul 12, 2010, at 6:18 PM, Josh B wrote: >

[R] Continuing on with a loop when there's a failure

2010-07-12 Thread Josh B
ode to keep going through the loop, despite the rotten apples it encounters along the way? Exact code that gets the job done is what I am interested in. I am a post-doc -- I am not taking any classes. I promise this is not a homework assignment! Thanks in advance, ---

Re: [R] "Unable to fit" error message from the lrm function in the rms library

2010-06-20 Thread Josh B
I just checked, and it doesn't seem to have failed: > model.lrm24$fail [1] FALSE Any other possibilities? From: Christos Argyropoulos Sent: Sun, June 20, 2010 7:23:34 AM Subject: RE: [R] "Unable to fit" error message from the lrm function in the rms library

[R] "Unable to fit" error message from the lrm function in the rms library

2010-06-19 Thread Josh B
391159e-01 6.424134e-01 2.975662e-01 4.077021e-01 Brierg gr gp 1.583826e-01 2.032737e+00 7.634955e+00 2.869544e-01 So what's going on here? Any ideas? And why does the model still seem to be "fit" despite the claim it was "unable" to

[R] Extracting P-values from the lrm function in the rms library

2010-06-18 Thread Josh B
Wrong output. Can anyone crack this seemingly simple problem? Surprisingly the answer was not revealed using str(mod3.poly) either. Thanks in advance, --- Josh Banta, Ph.D Center for Genomics and Systems Biology New York University 100 Washington Square East

[R] Fitting a polynomial using lrm from the Design library

2010-06-18 Thread Josh B
I fit the model using the stats library, the code looks like this: model <- glm(x$trait ~ x$PC1 + I((x$PC1)^2) + I((x$PC1)^3), family = binomial) What would be the equivalent syntax for the lrm function? Thanks very much in advance, --- Josh Banta, Ph.D Center for

[R] Accessing the elements of summary(prcomp(USArrests))

2010-06-16 Thread Josh B
omework assignment. I'm just a relatively novice R user trying to do stuff that's often over my head. Thanks in advance, --- Josh Banta, Ph.D Center for Genomics and Systems Biology New York University 100 Washington Square East New York, NY 10

[R] Getting the eigenvectors for the dependent variables from principal components analysis

2010-06-15 Thread Josh B
ks very much in advance for any help! --- Josh Banta, Ph.D Center for Genomics and Systems Biology New York University 100 Washington Square East New York, NY 10003 Tel: (212) 998-8465 http://plantevolutionaryecology.org [[a

[R] Standard error of regression coefficient

2010-06-13 Thread Josh B
Residuals 18 8.7292 0.4850 So what's the secret, then? Thanks very much R users! Josh [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] Performing a function on columns specified in another dataframe

2010-06-09 Thread Josh B
n 1:length(b)){ results[i,3] <- t.test(???, ???) #this is where I'm stuck. How do I pull the information I want out of b -- i.e., the columns to use -- to do the appropriate comparisons? } I'm hoping for a solution that doesn't create any new subsetted matric

[R] Subset columns by prefix

2010-06-09 Thread Josh B
d strategy. Specific code that will give me the answer would be most valuable. I tried looking up ?rm and ?ls, but I was not able to understand the syntax. Thanks very much for your help! Josh [[alternative HTML version deleted]]

[R] Change the name of one column ONLY

2010-06-09 Thread Josh B
lumn, not the others? Surely I should not have to re-specify the names of ALL the columns -- e.g., colnames(x) <- c("pears", "apples", "bananas", "cherries") -- if only the first column name will change. Thanks very much, J

[R] About Error Message in readSeries function from Rmetrics

2010-06-02 Thread JOSH C. CHIEN
Hi all R users, I download market data from Yahoo Finance to save file in csv. But, I can't load data set into R successfully. I don't why ? Below is error message. > data <- readSeries("D:/data.csv",header=T,sep=",") Error in midnightStandard2(charvec, format) : 'charvec' has non-NA entries o

[R] About Error Message in readSeries function from Rmetrics

2010-06-02 Thread JOSH C. CHIEN
Hi all R users, I download market data from Yahoo Finance to save file in csv. But, I can't load data set into R successfully. I don't why ? Below is error message. > data <- readSeries("D:/data.csv",header=T,sep=",") Error in midnightStandard2(charvec, format) : 'charvec' has non-NA entries o

Re: [R] question on rpart

2010-04-23 Thread josh franta
attached is the data set which generates the rgui.exe cpu loop... here are commands : library(rpart) train<-read.csv("traindata.csv",header=T) y<-as.numeric(train[,18]) x<-train[,1:3] fit<-rpart(y~.,x) On Thu, Apr 22, 2010 at 9:25 AM, Terry Therneau wrote: > --- Begin included message > > I h

[R] question on rpart

2010-04-21 Thread josh franta
rain[,3:17] library(rpart) fit<-rpart(y~.,x) Is this a known limitation of rpart, am I doing something wrong? potential workarounds? any assistance appreciated -josh __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA

[R] Scanning only specific columns into R from a VERY large file

2010-04-16 Thread Josh B
o scan in all 21 rows from "x.csv," but only for the aforementioned columns listed in "y.csv." Can you guys recommend a strategy for me? I think I need to use the scan command, based on the hugeness of "x.csv," but I don't know

Re: [R] Setting breaks to data more appropriately

2010-03-23 Thread ROLL Josh F
46 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] Setting breaks to data more appropriately On Mar 22, 2010, at 1:49 PM, LCOG1 wrote: > > Basic question. For the below data, i would like to but each of the > values in a bin that represents their value. So the below would

[R] Indexing a matrix within loops

2010-03-13 Thread Josh B
Hi, I was hoping someone could help me with the following problem. Consider this toy example. For the input dataset there are four individuals (rows "indv.1" through "indv.4"), measured for two different variables (columns "var.1" and "var.2") at two different levels of a factor (column "factor

Re: [R] matching on two criteria

2010-02-23 Thread ROLL Josh F
, 2010 9:06 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] matching on two criteria Exactly what results are you expecting? Your 'match' has the same variables in both locations and will therefore return the first match: > match(TazProperties..$Props,TazProperties..$Pr

Re: [R] Procedure not working for actual data

2010-02-18 Thread ROLL Josh F
___ From: jim holtman [mailto:jholt...@gmail.com] Sent: Wednesday, February 17, 2010 5:09 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] Procedure not working for actual data Try this on your real data: > #Sample data > Bldgid<-c(1000,1000,1001,1002,1003,1003) > Maplot&l

Re: [R] Procedure not working for actual data

2010-02-17 Thread ROLL Josh F
Sorry Just a generic list Is<-list() forgot to add that from my actual code From: jim holtman [mailto:jholt...@gmail.com] Sent: Wednesday, February 17, 2010 3:58 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] Procedure not working for actual d

Re: [R] Procedure not working for actual data

2010-02-17 Thread ROLL Josh F
. Perhaps you have a suggestion of a different way of doing it using my sample data? From: jim holtman [mailto:jholt...@gmail.com] Sent: Wednesday, February 17, 2010 4:04 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] Procedure not working for actual

Re: [R] Selecting single TAZ based on area proportion

2010-02-10 Thread ROLL Josh F
It dopes appear that this code works but entering a NA into the TAZ values goofs things up. Any ideas of how to remedy this problem? -Original Message- From: Nikhil Kaza [mailto:nikhil.l...@gmail.com] Sent: Monday, February 08, 2010 4:51 PM To: ROLL Josh F Cc: r-help@r-project.org

Re: [R] Create a multi dimensional array from a data frame

2010-01-21 Thread ROLL Josh F
is anyone willing to give it a shot i would appreciate it. From: Dennis Murphy [mailto:djmu...@gmail.com] Sent: Thursday, January 21, 2010 3:25 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] Create a multi dimensional array from a data frame Hi: Bef

[R] Using something like the "by" command, but on rows instead of columns

2009-11-09 Thread Josh B
gene (each "SNP_" column). Would one of you be able to offer some specific code that could do this operation? Please rest assured that I am not a student trying to elicit help with a homework assignment. I am a post-doc with limited R skills, working with a large genetic dataset. T

[R] glm pairwise interaction coefficients

2009-10-08 Thread Josh Roofchop
L1) comm$L2INT=L2*(1-L2) I have search and mostly come up with talk on contrasts among levels of categorical variables. Any help would be much appreciated. Josh -- View this message in context: http://www.nabble.com/glm-pairwise-interaction-coefficients-tp2581120

[R] MLE estimation of constrained mean Singh-Maddala distribution

2009-07-31 Thread Josh Parcel
he mean is fixed and other parameters estimated accordingly)? I have included code below to provide a better understanding of the problem (the dataset for 'y' is not included). Thanks, Josh Parcel ### R CODE ###

[R] Constrained MLE of fixed mean Singh-Maddala distribution

2009-07-30 Thread Josh Parcel
pplicable when the mean is fixed and other parameters estimated accordingly)? I have included code below to provide a better understanding of the problem (the dataset for 'y' is not included). Thanks, Josh Parcel ##

Re: [R] what is R best for; what should one learn in addition to R

2009-04-20 Thread Josh Stumpf
You might also try looking in to Python. It has lots of mathematical and computational libraries (numpy and scipy are particularly useful), as well some to deal with concurrency (e.g. Parallel Python), and can interact with R (rpy and rpy2). Josh Stumpf On Mon, Apr 20, 2009 at 8:49 AM, Juliet

[R] mvpart error

2009-03-22 Thread Josh Stumpf
g a previous version of R The current system is R 2.8.1 running under Ubuntu Jaunty. Any ideas as to the cause? Josh Stumpf Eastern Michigan University [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz

[R] 2D plot with colors from 3rd variable?

2009-03-18 Thread Josh
Hi, I have three related variables (vectors) and would like to see their distribution on a 2D plot of first two variables, having colors proportional to the values from third variable. I could have done so by passing 3rd variable to the color palette, but this would disrupt the relationship informa

[R] help with 3-D plot of kernel density estimates

2009-03-17 Thread Josh
? Something in which x<->y is plotted and colored according to the corresponding value of z ? thanks Josh [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

[R] mvpart error - is.leaf

2009-03-15 Thread Josh Stumpf
Hello, When trying to run mvpart either specifying my own parameters or using the defaults, I get the following error: Error in all(is.leaf) : unused argument(s) (c(FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, TRUE)) As far as I can tell, is.leaf is part of the dendrogam package, so I'm assuming the

[R] Filtering a dataset's columns by another dataset's column names

2009-02-27 Thread Josh B
; function. Thanks very much for your help everyone. Josh B. [[alternative HTML version deleted]] __ 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.o

[R] Outputing residuals

2009-01-23 Thread Josh B
Hello, I was wondering if someone could tell me how to output, to file, the residuals from a REML model-fit. The type of residuals I am interested in are the simple "original raw values - model fit" type. Thanks in advance, Josh B. [[alternative HTML versi

[R] Deleting columns where the frequency of values are too disparate

2009-01-18 Thread Josh B
qual to one hundred percent). Would one of you know of simple way to write this sort of code? (In my real dataset, there are 1096 loci, so this cannot be done easily "by eye.") Thanks again in advance for any suggestions! Josh B. [[alternative HTML version deleted

[R] Deleting columns based on the number of non-blank observations

2009-01-18 Thread Josh B
_ the non-blank observations in each column, but how would I adapt this code to _delete_ columns from the dataset if they do not have at least 375 non-blank observations? lapply(x, function(d) { d.2<- na.omit(d) count<- length(d.2) } ) Many thanks in advance, Josh B. [[

[R] Simple question about extracting a subset of data

2008-09-29 Thread Josh B
Hello all, I have a (hopefully) simple question. If I have a data table (named "x") such as this: daylengthleavesflowering.datefruits LD1.90055581.64353250.76668986 LD-0.9399410-1.2592968-0.60141837 LD1.0222946-0.9697459 -0.60141837 SD-0.2668132-0.9697459-0.47363322 SD -1.5892393-0.70540660.6646

  1   2   >