[R] Inconsistent error opening connection on URL

2017-02-09 Thread Ryan Utz
paste(' http://pick18.discoverlife.org/tmp/Hypoprepia_fucosa_33.9_-83.3_2011,2012,2013,2014,2015.txt ',sep='') X=read.delim(URL.2) Thanks, Ryan -- Ryan Utz, Ph.D. Assistant professor of water resources *chatham**UNIVERSITY* Home/Cell: (724) 272-7769 [[alternative HTML version

Re: [R] Opening or activating a URL to access data, alternative to browseURL

2016-10-12 Thread Ryan Utz
Eureka! I wish I could send a box of digital donuts. Thanks so much On Tue, Oct 11, 2016 at 9:21 AM, Duncan Murdoch wrote: > On 11/10/2016 7:59 AM, Ryan Utz wrote: > >> Bob/Duncan, >> >> Thanks for writing. I think some of the things Bob mentioned might work, &g

Re: [R] Opening or activating a URL to access data, alternative to browseURL

2016-10-11 Thread Ryan Utz
ble me or > someone else to mock up something for you. > > > On Thu, Sep 29, 2016 at 4:59 PM, Duncan Murdoch > wrote: > >> On 29/09/2016 3:29 PM, Ryan Utz wrote: >> >>> Hi all, >>> >>> I've got a situation that involves activating a URL so t

[R] Opening or activating a URL to access data, alternative to browseURL

2016-09-29 Thread Ryan Utz
ay to allow me to either 1) close the browser after it's been opened or 2) execute the line #2 above without having to open a browser? We have hundreds of species that you can see after the '&kind=' bit of the URL, so I'm trying to keep the browsing situation sane. Thanks! R -

[R] Treating a vector of characters as object names to create list

2016-09-04 Thread Ryan Utz
linity,iron) ### But, say I have many, many parameters in 'merging' beyond alkalinity and iron and I'd like to just cleanly turn the elements in 'merging' into a list. This does not work: ### merged.parameters=list(get(merging)) ### because it's only grabbing

[R] rjags crashes RStudio every time it tries to load

2016-05-20 Thread Ryan Utz
load successfully in regular R, but I would prefer not to be constrained to that platform if possible. -- Ryan Utz, Ph.D. Assistant professor of water resources *chatham**UNIVERSITY* Home/Cell: (724) 272-7769 [[alternative HTML version deleted]] __ R-h

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

2016-03-30 Thread Ryan Utz
rvals, assuming time unit is day > > measurement <- sqrt(time) + 1/(1.2+sin(time*2*pi)) + > rnorm(length(time),0,.3) > > plot(decompose(ts(measurement, frequency=96))) > > How is your code different from the above? > > > > Bill Dunlap > TIBCO Software > wdunlap

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

2016-03-30 Thread Ryan Utz
h.out=6000) X[3]=sample(100,size=6000,replace=T) Y=xts(X[,3],order.by=X[,2]) decompose(Y) Z=ts(X[,2],start=c(2015,11),frequency=24*365) plot(decompose(Z)) ### Am I missing something obvious here? I hope so... -- Ryan Utz, Ph.D. Assistant professor of water resources *chatham**UNIVERSITY* Ho

[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

[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

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
elp-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Ryan Utz > Sent: Monday, December 12, 2011 1:24 PM > To: r-help@r-project.org > Subject: [R] Boxplot of multiple vectors with different lengths > > Hello, > > I'm attempting to write a code tha

[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] 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] Controlling the extent of ablines on plot

2011-05-03 Thread Ryan Utz
single value and it will put a horizontal line at that number. Thanks, Ryan > Maybe you could use lines()? > > plot(1:2) > lines(c(1,2),c(1.5,1.5)) > > > -- Ryan Utz, Ph.D. Aquatic Ecologist/STREON Scientist National Ecological Observatory Network Home/Cell: (724) 272-7

[R] Controlling the extent of ablines on plot

2011-05-03 Thread Ryan Utz
,1,2,2.5,3,4,5),pos=0) axis(2,at=c(0,2,4,6,8,10),pos=0) abline(h=c(1,2,3,4,5)) ### Is there any way for me to specify that these ablines should not go beyond the y-axis extent? I just want a pretty graph! Thanks! Ryan -- Ryan Utz, Ph.D. Aquatic Ecologist/STREON Scientist National Ecological Obse

Re: [R] Counting number of rows with two criteria in dataframe

2011-01-26 Thread Ryan Utz
and y values. The argument d in the anonymous function is > a > > data frame object. > > Another approach is to use the much faster count function: > > count(unique(X)) > > Hadley > > -- > Assistant Professor / Dobelman Family Junior Chair > Department of Statis

[R] Counting number of rows with two criteria in dataframe

2011-01-25 Thread Ryan Utz
mbinations of the first two columns (x and y)? (for instance, in the above example, there are 2 instances per unique combination of the first two columns). I can do this in Matlab and it's easy, but since I'm new to R this is royally stumping me. Thanks, Ryan -- Ryan Utz Postdoctoral rese

[R] Deleting rows with NA from isolated column in matrix

2010-05-14 Thread Ryan Utz
5,ncol=3) x[,]<-1 x[5,1]<-NA x[3,3]<-NA how do I tell R to delete any rows with an NA value in column 3, but NA in column 1 is just fine? I've played with na.omit but that just takes out all of the NA values... Thanks ahead of time for any help, Ryan Utz [[alternativ

Re: [R] Imported tables from Access 2007

2010-03-18 Thread Ryan Utz
David, Thanks for responding. You were right; I misplaced a backspace (\) with a forward space (/) in my posting. The c:\ doesn't actually work; in my true code there is a forward space. Anyway, the results of str(data) appears as follows: 'data.frame': 90 obs. of 9 variables: $ Fish (PCOrd)

[R] Imported tables from Access 2007

2010-03-18 Thread Ryan Utz
Hi all, I am very new to R and I'm trying to import data from Microsoft Access. So far, I've managed to do so successfully using the following code: testdb <- file.path("c:\Databse.accdb") channel2 <- odbcConnectAccess2007(testdb) data.table <- sqlFetch(channel2,"data") This successfully imports

[R] Importing Access 2007 data with ROBC

2010-03-09 Thread Ryan Utz
an Access 2007 file: testdb <- file.path("c:/Salmon_data.accdb") channel <- odbcConnectAccess(testdb) Data <- sqlFetch(channel,"Table1") it does not work. Thanks for any help! Ryan Utz __ R-help@r-project.org mailing list https://stat.ethz