[R] ts or xts with high-frequency data within a year

2016-03-30 Thread Ryan Utz
time series. I have tried every manner of specifying frequency= with no luck (96 does not work). All manner of searching for help has turned up fruitless. Can I only do this after I wait another year or two? Thanks, Ryan -- Ryan Utz, Ph.D. Assistant professor of water resources *chatham

Re: [R] subsetting

2016-02-24 Thread Ryan Derickson
A combination of subsetting and ?substr should get you close to a solution. If the middle sequence you referenced isn't always the same distance from the first character, you may have to involve regular expressions to find "the middle". On Wednesday, February 24, 2016, Bert Gunter wrote: > Have

[R] "predict" values from object of type "list"

2016-02-17 Thread Steve Ryan
Hi Guys, I could need some help here. I have a set of 3d points (x,y,v). These points are not randomly scattered but lie on a surface. This surface can be taken as a calibration plane for x and y -values. My goal is to quantify this surface and than predict the v-values for given pairs of x- and y

[R] carolina function help

2016-01-26 Thread Huffman, Ryan
I am looking for advice from those who have used the carolina function, notably carolina model=2 for a North Carolina Design II analysis. I have having difficulty getting the function to perform correctly and would like an example of a code that someone has gotten to work. Thanks -- Ryan

Re: [R] Mixed Beta Disrubutions

2015-12-28 Thread Ryan Derickson
would benefit if the sources of such comments found other outlets for condescension. Ryan Derickson > On Dec 28, 2015, at 10:32 PM, mesude bayrakci > wrote: > > Hello all, > > This would be my last comments on "politeness" discussion started after my > email, an

[R] vjust unresponsive (ggplot2)

2015-12-22 Thread Ryan Utz
ious?? Thanks ahead of time for any help, Ryan -- Ryan Utz, Ph.D. Assistant professor of water resources *chatham**UNIVERSITY* Home/Cell: (724) 272-7769 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUB

[R] Question Regarding a nested for loop in R

2015-12-03 Thread Vermilio, Ryan
rns[3]} else {Inv3Returns[4]} } Inv1Total = append(Inv1Total, sum(Inv1Outcome)) Inv2Total = append(Inv2Total, sum(Inv2Outcome)) Inv3Total = append(Inv3Total, sum(Inv3Outcome)) } Inv1Total Inv2Total Inv3Total Sincerely, Ryan [[alternative HTML version deleted]] ___

Re: [R] How to read CSV from web?

2015-09-13 Thread Ryan Shuell
Also, you should bookmark this link. http://www.r-bloggers.com/this-r-data-import-tutorial-is-everything-you-need/ On Wednesday, July 29, 2015 at 6:41:35 AM UTC-4, jpara3 wrote: > > data<-read.csv(" > https://raw.githubusercontent.com/sjkiss/Survey/master/mlogit.out.csv",header=T,sep=",";) >

Re: [R] How to read CSV from web?

2015-09-13 Thread Ryan Shuell
How about this? library(XML) library(RCurl) url <- "https://raw.githubusercontent.com/sjkiss/Survey/master/mlogit.out.csv"; urldata <- getURL(url) data <- readHTMLTable(urldata, stringsAsFactors = FALSE) On Wednesday, July 29, 2015 at 6:41:35 AM UTC-4, jpara3 wrote: > > data<-read.csv("

Re: [R] Exporting from R to Excel or .csv

2015-09-13 Thread Ryan Shuell
This is my first time posting here library(BradleyTerry2) library(xlsx) data(flatlizards) str(flatlizards) a <- data.frame(x=rnorm(10), y=runif(10)) b <- data.frame(w=rnorm(20), z=runif(20)) ablist <- list(a, b) write.xlsx(mydata, "c:/Test/mydata.xlsx") On Tuesday, June 16, 2015 at

Re: [R] detecting any element in a vector of strings, appearing anywhere in any of several character variables in a dataframe

2015-07-13 Thread Christopher W Ryan
er. Both Bert's and Jeff's (eventual) solution protect against > partial (rather than full-word) matches, while mine doesn't (though it could > easily be modified to do that). > > Best, > John > >> -Original Message- >> From: Christopher W Ryan [

Re: [R] detecting any element in a vector of strings, appearing anywhere in any of several character variables in a dataframe

2015-07-10 Thread Christopher W Ryan
s to learn--grep, grepl, do.call . . . that's always a bonus! --Chris Ryan On Thu, Jul 9, 2015 at 1:52 PM, Bert Gunter wrote: > Yup, that does it. Let grep figure out what's a word rather than doing > it manually. Forgot about "\b" > > Cheers, > Bert > > >

[R] detecting any element in a vector of strings, appearing anywhere in any of several character variables in a dataframe

2015-07-09 Thread Christopher W. Ryan
which I am searching for # matching strings apply(zz, 2, my.f) # now I'm getting somewhere apply(zz[1:4,], 2, my.f) # but still only works with 4 # rows of the dataframe # perhaps %in% could do the job? Appreciate any advi

[R] detecting any element in a vector of strings, appearing anywhere in any of several character variables in a dataframe

2015-07-09 Thread Christopher W Ryan
in which I am searching for # matching strings apply(zz, 2, my.f) # now I'm getting somewhere apply(zz[1:4,], 2, my.f) # but still only works with 4 # rows of the dataframe Appreciate any advice. -- Chris Ryan

Re: [R] subsetting a dataframe

2015-06-09 Thread Ryan Derickson
Lots of ways to do this, I use %in% with bracket notation [row, column]. The empty column argument below returns all columns but you could have conditional logic there as well. dd[dd$rows %in% test_rows, ] On Mon, Jun 8, 2015 at 6:44 PM, Bogdan Tanasa wrote: > Dear all, > > would appreciate y

Re: [R] plotting the one-dimensional density of events in time

2015-03-09 Thread Christopher W. Ryan
Tom and Bill-- Thanks! Both excellent solutions. --Chris Christopher W. Ryan, MD, MS cryanatbinghamtondotedu Early success is a terrible teacher. You’re essentially being rewarded for a lack of preparation, so when you find yourself in a situation where you must prepare, you can’t do it. You

[R] plotting the one-dimensional density of events in time

2015-03-06 Thread Christopher W. Ryan
umeric(dd)) # But horizontal axis label is not very informative # would prefer labeling the start of each month plot(density(as.numeric(dd)), axes=FALSE) library(zoo) new.axis <- as.yearmon(dd) # but then what? This is where I get stuck--adding back a sensible axis Grateful for any guid

[R] Specifying plot area in dotchart2

2014-12-20 Thread Ryan Derickson
the whole plot (dots + labels) rather than just the dot area. A reproducible example is below; I want the dot area to be the same physical width across charts regardless of the label width. Any suggestions would be greatly appreciated! Ryan Derickson library(Hmisc) pdf("dotchart2 demo.pdf

Re: [R] Best Beginner Books?

2014-10-01 Thread Christopher W Ryan
r: A Beginner's Guide to Data Exploration and Visualization with R Ieno EN, Zuur AF Paperback available from November 2014 Harcover available from January 2015 --Chris Ryan On Thu, Oct 2, 2014 at 12:48 AM, Jason Eyerly wrote: > Hey Folks, > I’m hoping to get a general consenu

[R] package loadable in R 3.1.1 Rterm but not in emacs/ESS

2014-09-26 Thread Christopher W Ryan
help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(car) > I have not encountered this before and am confused. Why would R 3.1.1 in its terminal "see" a library, whereas it would not in emacs? (car is just an exam

Re: [R] Logical operators and named arguments

2014-08-07 Thread Ryan
Josh, Thank you for your detailed answer. Best, Ryan On 7 Aug 2014, at 16:21, Joshua Wiley wrote: > Hi Ryan, > > It does work, but the *apply family of functions always pass to the first > argument, so you can specify e2 = , but not e1 =. For example: > >> sapply(1:3, `&g

[R] Logical operators and named arguments

2014-08-06 Thread Ryan
Hi, I'm wondering why calling ">" with named arguments doesn't work as expected: > args(">") function (e1, e2) NULL > sapply(c(1,2,3), `>`, e2=0) [1] TRUE TRUE TRUE > sapply(c(1,2,3), `>`, e1=0) [1] TRUE TRUE TRUE Shouldn't the latter b

Re: [R] Function assignment

2014-07-28 Thread Florian Ryan
j="missing", y){ setExternReference(i, y) return(x) } I can get nicely the name inside the bracket (x["name"] <- ) it seemed possible to get "name" some how out of an name <- assignment. Again thank you very much for hints and advice. Florian Ryan f

[R] Function assignment

2014-07-26 Thread Florian Ryan
Hello, I would like to use the variable name which i assign the return value of a function in a function. Is that possible? e.g. foo <- function(){ some not to me known R magic } myVariableName <- foo() myVariableName [1] "myVariableName" Hope someone can help me. Thanks Florian [

Re: [R] Mac OSX Mavericks 10.9.3 Big Problem - New User

2014-07-14 Thread Ryan Dallavia
.OO#. .OO#. rocks...1k > --- > Sent from my phone. Please excuse my brevity. > > On July 14, 2014 6:38:53 PM PDT, Ryan Dallavia wrote: > >Hello, > > > >I am new to this program. I ini

[R] Mac OSX Mavericks 10.9.3 Big Problem - New User

2014-07-14 Thread Ryan Dallavia
Hello, I am new to this program. I initially installed both R and R Studio 3 months ago, easily and got a d-base icon from the package I needed, and saw my tables in spreadsheet form in studio. Now, everything has disappeared on its own -seriously nothing changed. When trying to get my package ba

[R] Merge rows

2014-07-11 Thread Ryan de Vera
Hello all, I have a data frame filled with senders and recipients. Some of the senders have multiple rows with different recipients and I want to merge those rows. For example I have a...@email.com b...@email.com a...@email.com c...@email.com d...@email.com r...@email.com f...@em

Re: [R] empty density plot for point pattern in spatstat

2014-07-02 Thread Christopher W Ryan
Thanks, this solves my problem. On R 3.1.0 on Windows XP: library(spatstat) # version 1.37.0 data(redwood) dens <- density(redwood) plot(dens, useRaster=FALSE, ribargs=list(useRaster=FALSE)) # produces the proper plot --Chris Ryan On Fri, Jun 20, 2014 at 5:24 PM, Pablo Ramón wrote: &

Re: [R] empty density plot for point pattern in spatstat

2014-06-20 Thread Christopher W Ryan
lot(elev)) # yields an empty plot with empty ribbon with(bei.extra,plot(elev, useRaster=FALSE)) with(bei.extra,plot(elev, useRaster=FALSE, ribargs=list(useRaster=TRUE))) # these both yield the same result: # a colored density plot with an empty ribbon Thanks --Chris Ryan On Thu, Jun 19, 2014 a

Re: [R] empty density plot for point pattern in spatstat

2014-06-18 Thread Christopher W. Ryan
m as I can. It is Win XP, now R 3.1.0, and (IIRC) spatstat 1.37-0 'Model Prisoner'. I do not encounter the problem on Windows 7, R 3.1.0, spatstat 1.36-0 ‘Intense Scrutiny’. Nor on Ubuntu 12.04, R 3.1.0, spatstat 1.36-0. Thanks. --Chris Ryan Adrian Baddeley wrote: > Dear Pablo >

Re: [R] empty density plot for point pattern in spatstat

2014-06-17 Thread Christopher W Ryan
h just the figure border # and a thin vertical box for the color ramp # but no color ramp in it Any other ideas? I'd be much obliged. Thanks. --Chris Ryan On Tue, May 20, 2014 at 4:31 PM, Christopher W Ryan wrote

[R] What is SE and how do you calculate it in svymean()?

2014-06-06 Thread Ryan de Vera
Hello all, I have been experimenting with svymean() and I am confused on what the output is. The data I have looks like: *PSU* * STRATUM* *WEIGHTS* * COUNTS* *1* 1 1 2.0 1 *2* 2 1 1.0 1 *3* 3 1 1.0 1 *4* 3 1 2.5 1 *5* 2 1 1.0 1

[R] Understanding svymean

2014-06-05 Thread Ryan de Vera
Hello all, I am trying to understand how svymean is calulated with svydesign. I have the code: dstrat1<-svydesign(id=~PSU, strata=~STRATUM,weights=~Sample_Weight, data=subset25k, nest=TRUE) and I am using svymean to compute the mean. My main question is how are the sampling probabilities create

[R] Understanding survey design (svydesign)

2014-06-05 Thread Ryan de Vera
Hi all, I am trying to understand the output of the svydesign function. My question is, is there documentation on how the probabilities are computer? Or could someone please explain to me how they are? I have this d<-svydesign(id=~PSU, strata=~STRATUM,weights=~w, data=s, nest=TRUE) And this o

[R] empty density plot for point pattern in spatstat

2014-05-20 Thread Christopher W Ryan
rsion 1.37-0. Here is some code: library(spatstat) data(redwood) plot(redwoods) # works OK plot(Kest(redwood)) # works OK plot(density(redwood)) # produces an "empty" plot as described above Any suggestions? What am I missing? Thanks. --Chris Ryan _

[R] Justify axis labels in mosaic plot

2014-02-04 Thread Derickson, Ryan, VHACIN
;, "q") b<-c(1, 2, 3, 1, 1, 3, 2, 2, 3) demo<-data.frame(a, b) y<-table(demo) y<-as.table(y[order(rowSums(y)),]) y<-prop.table(y) plot(y, dir=c("h", "v"), las=1) Ryan Derickson VHA NCOD 513-247-4294 [[alternative HTML vers

Re: [R] demonstrating R in introductory class using point-and-click software

2014-01-17 Thread Christopher W. Ryan
the course of their training, could be averse to writing code. --Chris Christopher W. Ryan, MD, MS SUNY Upstate Medical University Clinical Campus at Binghamton 425 Robinson Street, Binghamton, NY 13904 cryanatbinghamtondotedu "Once we recognize that we do not err out of laziness, st

Re: [R] Hello R user!

2013-12-17 Thread Christopher W Ryan
a. Certain ways of doing it lend themselves to certain ways of graphing. Some ways make things difficult . . . --Chris Ryan On Tue, Dec 17, 2013 at 1:24 PM, Sarah Goslee wrote: > On Tue, Dec 17, 2013 at 1:04 PM, bibek sharma wrote: >> Hi Sarah, >> It is not about mfrow or mfco

[R] a better method than a long expression with many OR clauses

2013-12-17 Thread Christopher W Ryan
using it wrong. Thanks. --Chris Ryan __ 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.

Re: [R] Hello R user!

2013-12-17 Thread Christopher W Ryan
What do you mean by "merge" them into one? Make both graphs appear on the same page of a document? Make a single figure containing both graphs? Plot data from both dataframes on the same set of axes? --Chris Ryan On Tue, Dec 17, 2013 at 12:33 PM, bibek sharma wrote: > Hello R use

Re: [R] R for a stats intro for undergrads in the US?

2013-11-17 Thread Christopher W. Ryan
the concepts of sample versus population, and sampling variation. I could share with you my org file where I stored all the commands and notes, if it would be of any use. --Chris Ryan SUNY Upstate Medical University Binghamton, NY Spencer Graves wrote: > Hello, All: > > >

Re: [R] forecast.lm() and NEWDATA

2013-11-04 Thread Ryan
when you made REGGY. " As of right now, NEWDATA includes all the independent variables from the REGGY Regression. Should the NEWDATA data.frame include the dependent variable? Also, is it necessary to reformat all variables as time series? (I have not currently done so) Regards R

[R] forecast.lm() and NEWDATA

2013-11-01 Thread Ryan
ess. I understand that by including NEWDATA, the "h=5" is ignored, but without NEWDATA, I receive the error message. Can anyone help me please? Regards Ryan P.S The forecast is trying to predict the next 5 values for Y from the regression model pasted above. I'm a bit rusty wit

Re: [R] Using "cpquery" function from bnlearn package inside loop

2013-10-11 Thread Ryan Morrison
in my loop, and a new probability is computed using the new evidence. Since I'm using a single instantiation of the conditioning variables for each calculation in my loop, I believe the likelihood weighting method will work. Don't hesitate to correct me if I'm wrong. Thanks,

Re: [R] Using "cpquery" function from bnlearn package inside loop

2013-10-11 Thread Ryan Morrison
Thanks Marco, The cpquery function is definitely easier to use given that my evidence is contained in lists. Thanks for your help! --- Ryan Ryan Morrison, PE PhD Candidate University of New Mexico Department of Civil Engineering Centennial Engineering Center, Room 3057 Phone: 505-633-5506

[R] Using "cpquery" function from bnlearn package inside loop

2013-10-09 Thread Ryan Morrison
Hi everyone, I'm attempting to use the bnlearn package to calculate conditional probabilities, and I'm running into a problem when the "cpquery" function is used within a loop. I've created an example, shown below, using data included with the package. When using the cpquery function in a loop

[R] Using "cpquery" function from bnlearn package inside loop

2013-10-09 Thread Ryan Morrison
Hi everyone, I'm attempting to use the bnlearn package to calculate conditional probabilities, and I'm running into a problem when the "cpquery" function is used within a loop. I've created an example, shown below, using data included with the package. When using the cpquery function in a loop

Re: [R] Plot lines whose angle and length depict vector quantities

2013-09-28 Thread Conor Ryan
arameter to decide if the arrows should be centered on > the point, start at the point, or end at the point. > > The ms.arrows function was designed for exactly what you describe. > > > On Fri, Sep 27, 2013 at 12:56 PM, Conor Ryan wrote: > >> I am trying to plot p

Re: [R] Plot lines whose angle and length depict vector quantities

2013-09-28 Thread Conor Ryan
Certainly not a homework question. Elementary questions do not necessarily indicate that one is a student! Always learning... Dr Conor Ryan On 28 September 2013 11:39, Patrick Burns wrote: > On 27/09/2013 21:01, Bert Gunter wrote: > >> On Fri, Sep 27, 2013 at 12:44 PM, Sarah Gosl

Re: [R] Plot lines whose angle and length depict vector quantities

2013-09-28 Thread Conor Ryan
Hi Jim, vectorField worked a treat - thanks! On 28 September 2013 01:57, Jim Lemon wrote: > On 09/28/2013 04:56 AM, Conor Ryan wrote: > >> I am trying to plot points on a map for each ship locations (lat/long), >> where >> each point is a line whose angle (degrees) d

[R] Plot lines whose angle and length depict vector quantities

2013-09-27 Thread Conor Ryan
I am trying to plot points on a map for each ship locations (lat/long), where each point is a line whose angle (degrees) denotes ships heading and whose line length denotes it's speed. Unfortunately arrows(); p.arrows (sfsmisc) and ms.arrows (TeachingDemos) require start and end coordinates but I o

[R] making a wider, shorter, 4-column table instead of the narrower, longer, 2-column table I get with tm, Hmisc, and Sweave

2013-09-19 Thread Christopher W. Ryan
oughly halfway down. But is there a way to do this programmatically in the Rnw file? All I can think of is using two separate chunks to generate two separate tables, one for elements 1:(length(word.freq)/2) of word.freq and one for the remaining elements. Is there a better way? Thanks. --Chris -- Chr

Re: [R] read.dta()

2013-09-05 Thread Christopher W. Ryan
I don't know about 3.0.1, but the 2.15.x that I'm still using requires the foreign package--that's where the read.dta command resides. library(foreign) --Chris Ryan SUNY Upstate Medical University Binghamton, NY USA Debasish Roy wrote: > I've been using R 3.0.1 version.

[R] How to "vectorize" subsetting

2013-08-14 Thread Derickson, Ryan, VHACIN
in, I would be incredibly appreciative of any help. I'm at a dead-end. Ryan [[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

[R] How to "vectorize" subsetting

2013-08-14 Thread Derickson, Ryan, VHACIN
esn't have to be explicitly called by area or facility name. Again, I would be incredibly appreciative of any help. I'm at a dead-end. Ryan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read t

[R] How code for an exponential function

2013-07-18 Thread Munroe, Ryan
Hi, I ran a linear regression on a data set and got an Rsq of about .27. The plot looks as though an exponential curve would be a better fit. What codes do I use to do this? Thank you, Ryan Munroe [[alternative HTML version deleted]] __ R

[R] optim() over bogus parameters

2013-06-07 Thread Ryan Dew
nyone have any idea what could be causing this phenomenon? Specifically, it troubles me that the other parameters change. Thanks in advance, Ryan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailm

[R] string size limits in RCurl

2013-04-24 Thread Elmore, Ryan
aste(.project.path, "data/stream.json", sep = "")) Any thoughts are very much appreciated. Note that I posted this same question/comment to StackOverflow and will happily provide any helpful suggestions to that list as well. Ryan [1] - Sorry for not providing reproducib

[R] is it possible to create a trellis object with multiple colorkeys/z-scale axis?

2013-02-04 Thread Ryan Flaherty
c encounter rate by WCGSI: 2010 versus 2011",cex=0.75) , xlab= "Month", ylab= "Management Area", border = "black", panel = function(...){ panel.fill("black") panel.voronoi(...) }) ##plot objec

Re: [R] Hist with Dates

2013-01-15 Thread Christopher W Ryan
-03", "2001-01-03", "2001-01-03", "2001-01-03", "2001-01-03", "2001-01-03", "2001-01-03", "2001-01-03", "2001-01-04", "2001-01-04") ddd <- as.Date(dd) str(ddd) table(ddd) as.numeric(table(ddd)

[R] follow up on teaching R to high school students

2013-01-02 Thread Christopher W. Ryan
en I realized I could play around with the program." (Of course, any less-than-positive comments, the students (or their teacher) may have kept to themselves out of courtesy to me!) A post-workshop survey of the students has just begun, basically asking them if they have downloaded R on their o

[R] latticeExtra tileplot question - tiles are not all the same size, need help.

2012-12-04 Thread Ryan Flaherty
=list(x=list(at=5:9, labels=c('May' ,'June','July','August','September')), y=list(at=(-1):-8,labels=c('T','N','C','B','KC','FB','SF','MO'))), main = list(lab

[R] Savitzky-Golay filtering with missing data

2012-11-26 Thread Ryan Hope
is not really a valid solution. Is there anything I can do about this? -- Ryan Hope, M.S. CogWorks Lab Cognitive Science Department Rensselaer Polytechnic Institute __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] finding global variables in a function containing formulae

2012-11-02 Thread Hafen, Ryan P
ot;y" "x" > >help? > >-- Bert > >On Thu, Nov 1, 2012 at 11:04 AM, Hafen, Ryan P >wrote: >> I need to find all global variables being used in a function and >>findGlobals() in the codetools package works quite nicely. However, I >>am not able to

[R] finding global variables in a function containing formulae

2012-11-01 Thread Hafen, Ryan P
I need to find all global variables being used in a function and findGlobals() in the codetools package works quite nicely. However, I am not able to find variables that are used in formulae. Simply avoiding formulae in functions is not an option because I do not have control over what functio

Re: [R] [R-SIG-Finance] RTAQ - convert function: warning causes incorrect loading of data

2012-10-13 Thread Jeff Ryan
FWIW %m is the proper conversion for months. %M is minutes. Looks like a bug. Jeffrey Ryan|Founder|jeffrey.r...@lemnica.com www.lemnica.com On Oct 13, 2012, at 10:33 AM, Nicolae Caprarescu wrote: > Hi Michael, > > Thank you for pointing me in the right direction

[R] adding tick labels to tileplot()

2012-08-23 Thread Ryan Flaherty
}) This produces axis that looks something like (except with colored tiles): -1 -2 -3 -4 -5 -6 -7 -8 5 6 7 8 9 But I'm hoping to have tick labels that look like: T N C B KC FB SF MO May June July August September Thanks in advance for

[R] question about windows Rgui.exe startup

2012-08-10 Thread Ryan Rene
"on startup" into R(interactive) like so: C:\Program Files\R\R-2.15.0\bin\x64\Rgui.exe < "C:\Users\Ryan\Desktop\myscript.r" but this does not work. I can do it in R batch mode like this: C:\Program Files\R\R-2.15.0\bin\x64\R.exe CMD BATCH --vanilla --slave "C:\U

Re: [R] Plot txt

2012-05-23 Thread Christopher W. Ryan
ch g: attach(g) plot(V1, type="l") --Chris Ryan SUNY Upstate Medical University Binghamton, NY Trying To learn again wrote: Hi all Sorry in advance I have this txt with data and I want to plot the data with a line between dots. The thing is that if I run this g<-read.table("i

Re: [R] [R-sig-hpc] Quickest way to make a large "empty" file on disk?

2012-05-02 Thread Jeff Ryan
Something like: http://markus.revti.com/2007/06/creating-empty-file-with-specified-size/ Is one way I know of. Jeff Jeffrey Ryan|Founder|jeffrey.r...@lemnica.com www.lemnica.com On May 2, 2012, at 5:23 PM, Jonathan Greenberg wrote: > R-helpers: > > What wou

Re: [R] [R-sig-hpc] Quickest way to make a large "empty" file on disk?

2012-05-02 Thread Jeff Ryan
Look at the man page for dd (assuming you are on *nix) A quick google will get you a command to try. I'm not at my desk or I would as well. Jeff Jeffrey Ryan|Founder|jeffrey.r...@lemnica.com www.lemnica.com On May 2, 2012, at 5:23 PM, Jonathan Greenberg wrote: > R

Re: [R] "Conditional" average

2012-04-25 Thread Christopher W. Ryan
6 ~ age76) # lattice already loaded --Chris Ryan kebrab67 wrote: id age76 Wage76 Grade76 Black immigrt. ... 1 25 102456 12 1 0 2 27 15432 15 0 1 3 30 12340 16 1

Re: [R] "Conditional" average

2012-04-24 Thread Christopher W. Ryan
being said, perhaps by(), or summaryBy() in the doBy package, might help. --Chris Ryan SUNY Upstate Medical University Clincal Campus Binghamton, NY kebrab67 wrote: Hello, I have a set of data including age, wage and education level each called age76, wage76 and grade76 I want to know how i can cal

Re: [R] introducing R to high school students

2012-04-22 Thread Christopher W. Ryan
only to have to switch to something else for the latter half? And this will lead inevitably into conversations about better ways to record, store, and share data. And it ties into concepts of collaboration and reproducible research. --Chris Ryan SUNY Upstate Clini

[R] Pierce's criterion

2012-04-18 Thread Ryan Murphy
nking data of how politically free a country is. Does R do this test? Thanks a lot, and PS I unlike many economists prefer R over Stata R >>>>> Stata! Sincerely, Ryan Murphy -- Ryan Murphy 2012 B.A. Economics and Mathematics 339-223-4181 [[alternative

Re: [R] introducing R to high school students

2012-04-18 Thread Christopher W. Ryan
curious: given your preference for hand-drawn graphs for learners (a very good point), why is Excel "fine" but R not? At any rate, I should probably migrate this thread over to the Teaching SIG listserve, which I didn't know about before. Thanks again. --Chris Christopher W. Ryan,

[R] introducing R to high school students

2012-04-17 Thread Christopher W Ryan
imagine that plot(force, acceleration) is beyond a high-schooler's capability.) --simple descriptive statistics --maybe t-tests, chi-square tests, and simple linear regression. Alas, probably more than we would have time to cover. Has anyone done anything with R in high schools? Thanks. --C

[R] How to interpret glmnet lasso error

2012-03-16 Thread Ryan Zotti
oreign function call (arg 5) Some potentially important details: - 50 predictor variables - 300 observations - everthing is numeric - predictorPartitionTrainingM is a matrix - targetPartitionTraining is a vector Thanks in advance, Ryan Zotti [[alternative HTML version d

Re: [R] ggplot2

2012-03-05 Thread Ryan Garner
I found the addendum. http://cloud.github.com/downloads/hadley/ggplot2/guide-col.pdf -- View this message in context: http://r.789695.n4.nabble.com/ggplot2-tp4447745p4448150.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-pro

[R] ggplot2

2012-03-05 Thread Ryan Garner
I just updated to R 2.14 with ggplot2 0.9 and am finding bugs. > ggplot2 "GPL-2" "2.14.0" This example is taken from pg 101 in the ggplot book. > plot <- qplot(date, psavert, data = economics, geom = "line") + > ylab("Personal savings rate") + geom_hline(xintercept = 0, colour

[R] johnson distributions

2012-02-21 Thread Ryan Murphy
hello, I am using johnson distributions to make distributions. I want to recover statistics from these distributions, but all I can see how to do is plot them. How would I get, say, the gini on a johson distribution i create? thanks, Ryan -- Ryan Murphy 2012 B.A. Economics and Mathematics

[R] random numbers

2012-02-19 Thread Ryan Murphy
Hello, Is there a way to create random numbers that fit a certain specified requirement other than distributional characteristics. In particular, I would like to create simulated income distributions with certain gini coefficient Ryan -- Ryan Murphy 2012 B.A. Economics and Mathematics

Re: [R] question on simple graph

2012-01-31 Thread Christopher W. Ryan
e=TRUE) table(BT) table(RA) dd <- data.frame(better <- BT, race=RA) str(dd) dd.table <- xtabs(~better+race, data=dd) # doesn't this table convey what you want? prop.table(dd.table,2) # if for some reason a graph is essential, this creates one: mosaicplot(dd.table) Is this sort of what

[R] R help, labeling the tick marks as I want

2012-01-31 Thread Ryan Murphy
senting the year and quarter of the year. Thank you very much. Sincerely, Ryan Murphy [[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://

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-13 Thread Ryan Utz
our boxplots with > boxplot(dataList) > > Then forget about using the variables "a", "b", and "c" > and use dataList[["a"]], dataList[["b"]], etc. instead. > You may want to use a shorter name than dataList. > > Bill Dunlap

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-12 Thread Ryan Utz
7;m seeking a solution this way. On Mon, Dec 12, 2011 at 4:09 PM, Vining, Kelly wrote: > Ryan, > Do you necessarily have to use "list"? Have you tried the usecols=TRUE > option in boxplot? > > Cheers, > --Kelly V. > > -Original Message- > From: r-h

[R] Boxplot of multiple vectors with different lengths

2011-12-12 Thread Ryan Utz
of data vectors. I've tried every imaginable means of tweaking the name of "z", with zero success. And I've scoured the help pages for about 45 minutes (just to preempt any "read the help" responses). Please help! Thanks, Ryan -- Ryan Utz, Ph.D. Aquatic Ecologi

[R] MIXED MODEL WITH REPEATED MEASURES

2011-12-07 Thread Erin Ryan
I am trying to specify a mixed model for my research, but I can't quite get it to work. I've spent several weeks looking thru various online sources to no avail. I can't find an example of someone trying to do precisely what I'm trying to do. I'm hoping some smart member of this mailing list may be

Re: [R] having trouble extracting week from chron object

2011-08-30 Thread Christopher W Ryan
; not found > > sessionInfo() R version 2.13.1 (2011-07-08) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attache

[R] having trouble extracting week from chron object

2011-08-30 Thread Christopher W Ryan
and seconds() take any chron object as input and extract the corresponding time interval . . . . Any advice? Thanks. Chris Ryan SUNY Upstate Medical University Clinical Campus at Binghamton Binghamton, NY __ R-help@r-project.org mailing list https://stat.eth

[R] Time Series data with data every half hour

2011-08-26 Thread Simmons, Ryan
I am working with data from the USGS with data every 30 minutes from 4/27/2011 to 8/25/2011. I am having trouble with setting the frequency. My R script is below: > shavers=read.csv("shavers.csv") > names(shavers) [1] "agency_cd""site_no" "datetime" "tz_cd""Temp"

[R] Finding/identifying a value within a factor

2011-07-25 Thread Ryan Utz
the data-I don't mind converting if necessary). Eventually, I'd like to divide the number in half for these cases, but I think I have that coding lined up once I can just identify them from the stew. I've exhausted help and net resources so far... Thanks, Ryan -- Ryan Utz, Ph.D.

Re: [R] Linking 2 columns in 2 databases and applying a function

2011-06-22 Thread Ryan Utz
Daniel, That indeed does work... and I didn't even need to learn a new function. Thanks! -- Ryan Utz, Ph.D. Aquatic Ecologist/STREON Scientist National Ecological Observatory Network Home/Cell: (724) 272-7769 Work: (720) 746-4844 ext. 2488 [[alternative HTML version de

[R] Linking 2 columns in 2 databases and applying a function

2011-06-22 Thread Ryan Utz
e). It seems like the functions "apply" or "lapply" are key, but I can't make sense of their syntax. Any advice/help?!? Many thanks, Ryan -- Ryan Utz, Ph.D. Aquatic Ecologist/STREON Scientist National Ecological Observatory Network Home/Cell: (724) 272-7769 Work: (720

Re: [R] About GAM in R, Need YOUR HELP!

2011-06-20 Thread Christopher W Ryan
If you use the mgcv package for GAMs, I found this book very helpful: Wood, SN Generalized additive models: An introduction with R CRC Press, 2006 ISBN-13: 9781584884743 --Chris Ryan SUNY Upstate Medical University On Mon, Jun 20, 2011 at 1:25 AM, pigpigmeow wrote: > I'm beginner

[R] specifying scales in lattice xyplot makes the lines disappear?

2011-05-10 Thread Christopher W Ryan
;top"), layout=c(length(levels(MannerYoung.plot.data$new.age.group)),1)) This draws the panels, vertical axis, horizontal axes, with the odd-numbered years, everything as desired, except that there are no lines in the panels--no actual content. I suppose I could decrease the font size

Re: [R] Another quantmod question

2011-05-08 Thread Jeff Ryan
seems like you want to rant more than understand what's > going on. You have the R and xts help pages and the source code. The > "Note" section of help(cbind) tells you that the method dispatch is > different. It even tells you what R source file to look at to see how

Re: [R] Another quantmod question

2011-05-08 Thread Jeff Ryan
ple workaround would cost everyone using in the other 99.999% of cases to pay a recurring cost that isn't tolerable. If this is frustrating to you you should stop using the class. Jeff Jeffrey Ryan|Founder|jeffrey.r...@lemnica.com www.lemnica.com On May 8, 2011, at 2:

Re: [R] quantmod's addTA plotting functions

2011-05-05 Thread Jeff Ryan
2) ironically, not very well documented in base R. For me to write it I just had to get around number 2. HTH Jeff On Thu, May 5, 2011 at 11:55 AM, Jeff Ryan wrote: > There is a struggle in documentation that revolves around being too brief > to be useful and too verbose which then is

Re: [R] quantmod's addTA plotting functions

2011-05-05 Thread Jeff Ryan
> I can't figure out how to do it without manual intervention. Any >>> suggestions >>> are appreciated. >>> >> >> Perhaps you didn't see this NOTE on the ?TA help page: >> >> "Calling any of the above methods from within a function >>

<    1   2   3   4   >