[R] nlme w/no groups and spatially correlated residuals

2010-02-11 Thread Seth
ot seem to work for nlme. Any legitimate work arounds? Thanks, Seth -- View this message in context: http://n4.nabble.com/nlme-w-no-groups-and-spatially-correlated-residuals-tp1477982p1477982.html Sent from the R help mailing list archive at Nabble.com. __

[R] effective sample size in logistic regression w/spat autocorr

2010-02-20 Thread Seth
same for logistic regression? I'm drawing a blank as SE estimation in logistic regression is not as straightforward of an affair. Thanks.-Seth Myers -- View this message in context: http://n4.nabble.com/effective-sample-size-in-logistic-regression-w-spat-autocorr-tp1563246p1563246.html Sen

[R] using varFunc in gnls to replicate Wedderburn-style variance?

2010-04-11 Thread Seth
of the fitted values? I've only seen examples for varFunc where covariates are used. Thanks, Seth -- View this message in context: http://n4.nabble.com/using-varFunc-in-gnls-to-replicate-Wedderburn-style-variance-tp1836537p1836537.html Sent from the R help mailing l

[R] gnls for negative autocorrelation?

2010-04-12 Thread Seth
positive). Does anyone know if this parameter is constrained to be positive? -seth -- View this message in context: http://n4.nabble.com/gnls-for-negative-autocorrelation-tp1838023p1838023.html Sent from the R help mailing list archive at Nabble.com

[R] how is xerror calculated in rpart?

2010-04-29 Thread Seth
y a xerror value? -seth -- View this message in context: http://r.789695.n4.nabble.com/how-is-xerror-calculated-in-rpart-tp2076402p2076402.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://st

[R] weight by obs # in spatial 'nest' in NLME?

2010-01-07 Thread Seth
is welcome. Thanks. -seth -- View this message in context: http://n4.nabble.com/weight-by-obs-in-spatial-nest-in-NLME-tp1009168p1009168.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.

[R] (nlme, lme, glmmML, or glmmPQL)mixed effect models with large spatial data sets

2010-01-22 Thread Seth
ve glmmPQL will likely be slower due to the multiple calls to lme. Thanks for any advice/insight. -seth -- View this message in context: http://n4.nabble.com/nlme-lme-glmmML-or-glmmPQL-mixed-effect-models-with-large-spatial-data-sets-tp1217808p1217808.html Sent from the R help mailing list archiv

Re: [R] (nlme, lme, glmmML, or glmmPQL)mixed effect models with large spatial data sets

2010-01-22 Thread Seth
see how 50K obs busted it. But 64 Mb? Perhaps there is another limit set by the lme function? -seth -- View this message in context: http://n4.nabble.com/nlme-lme-glmmML-or-glmmPQL-mixed-effect-models-with-large-spatial-data-sets-tp1217808p1236563.html Sent from the R help mailing list archive at

[R] tree()...binary reponse giving only one split

2010-01-23 Thread Seth
a set. So, I constructed another where the response was 0,1, or 2. I got the same result. I've also tried the same experiment with predictors that are binary and got the same results. I've searched the help but can't find any answers. Thanks. Seth -- View this message in context: http

[R] finding values for arguments?

2010-01-24 Thread Seth
Hi, Is there a code that will return the appropriate values/structure for arguments within a function? I seem to remember a code that will return detailed info about a function within the R console, but now can't find it anywhere. Thanks. Seth -- View this message in context: http

Re: [R] finding values for arguments?

2010-01-24 Thread Seth
Thanks! So frustrating to self-teach a new language sometimes! Seth -- View this message in context: http://n4.nabble.com/finding-values-for-arguments-tp1288978p1288988.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

[R] negative correlation with corSymm in nlme or another way?

2013-05-05 Thread Seth
tches what I intended. Any input is appreciated. Seth Myers -- View this message in context: http://r.789695.n4.nabble.com/negative-correlation-with-corSymm-in-nlme-or-another-way-tp4666357.html Sent from the R help mailing list archive at Nabbl

[R] decreasing blank space in ggplot2 geom_area

2014-06-26 Thread seth
I wish to shrink the automatically inserted blank space at either end of the x axis of my area plot, so that the colorful graphic in the center takes up more of the available space. When I use the scale_x_discrete(limits...) command to expand the displayed area, the graphic shrinks away from the x-

Re: [R] decreasing blank space in ggplot2 geom_area

2014-06-26 Thread seth
expand works perfectly, thanks VERY much Ista! -Seth - Original Message - From: Ista Zahn To: Cc: Sent:Thu, 26 Jun 2014 14:35:19 -0400 Subject:Re: [R] decreasing blank space in ggplot2 geom_area Hi Seth, See the "expand" argument to ?discrete_scale Best, Ista On T

[R] use a data frame whose name is stored as a string variable?

2010-06-25 Thread Seth
the data frame? For example, summary (x) would return a summary of the data frame? I am considering this because I need to compare many data frames within 2 nested for loops. In the first iteration of the loop I could concatenate x and 1 and then use it to represent the data frame. I'm open to

Re: [R] use a data frame whose name is stored as a string variable?

2010-06-26 Thread Seth
Thanks! Works like a charm. -Seth -- View this message in context: http://r.789695.n4.nabble.com/use-a-data-frame-whose-name-is-stored-as-a-string-variable-tp2269095p2269732.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

[R] way to get t-values from glm.fit output?

2010-07-07 Thread Seth
Hi, I am working with a function that makes use of glm.fit. Without modifying the somewhat long code too much, I would like to have t-values returned for the predictor variables used in the fitting process. Is there a relatively straightforward way to do this? Thanks, Seth Myers -- View this

Re: [R] way to get t-values from glm.fit output?

2010-07-07 Thread Seth
Sorry to bother everyone. Soon after posting my question I found out what summary.glm() will do to a glm.fit object. Gotta love having your learning curve exposed in public :) Seth -- View this message in context: http://r.789695.n4.nabble.com/way-to-get-t-values-from-glm-fit-output

[R] specifying column names in a vector of characters and the use?

2010-07-18 Thread Seth
retrieve the values for column named X1. Seth > table.1<-cbind(c(1,2,3,2,2),c(0,9,0,7,9),c(7,5,9,8,8)) > table.1 [,1] [,2] [,3] [1,]107 [2,]295 [3,]309 [4,]278 [5,]298 > > table.1<-data.frame(table.1) > table.1

[R] readLines with space-delimiter?

2010-05-04 Thread Seth
ctors_85.txt", open="rt") datout<-file("C:\\rforest\\prob85.txt",open="wt") x<-readLines(datin,n=1) writeLines(x,con=datout) Thanks, Seth -- View this message in context: http://r.789695.n4.nabble.com/readLines-with-space-delimiter

Re: [R] readLines with space-delimiter?

2010-05-04 Thread Seth
Thanks. I wasn't aware that scan or read.table allowed you to read in a single line, process it, output results, and then read in the next line. This is what I need to do because the data set is too large to hold in RAM. I did manage to do this with readLines and overcome the space-delimiter is

[R] better way to trick data frame structure?

2010-05-04 Thread Seth
, but this is slowing processing time in a loop quite a bit. Can I manually specify that this factor variable has two levels (even though this is lying to R)? Thanks,Seth -- View this message in context: http://r.789695.n4.nabble.com/better-way-to-trick-data-frame-structure-tp2130470p2130470.html

Re: [R] Odp: better way to trick data frame structure?

2010-05-04 Thread Seth
Thanks, works beautifully and saved hours of run time. -seth -- View this message in context: http://r.789695.n4.nabble.com/better-way-to-trick-data-frame-structure-tp2130470p2130486.html Sent from the R help mailing list archive at Nabble.com. __ R

Re: [R] Two Questions on R (call by reference and pre-compilation)

2010-05-05 Thread Seth
As far as large data sets, I've just discovered readLines and writeLines functions. I'm using it now to read in single rows, calculate things on them, and then write a single row to a file. -- View this message in context: http://r.789695.n4.nabble.com/Two-Questions-on-R-call-by-reference-and-p

[R] r matrix inconsistencies?

2010-05-10 Thread Seth
-- View this message in context: http://r.789695.n4.nabble.com/r-matrix-inconsistencies-tp2165121p2165121.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] function to compare Brier scores from two models?

2011-03-27 Thread Seth
scores are equal from the two models. I have not been able to find an R function to do this, can someone point me to the appropriate library and function if one exists? Thanks, Seth -- View this message in context: http://r.789695.n4.nabble.com/function-to-compare-Brier-scores-from-two-models

[R] optimize weights for a weighted average?

2011-06-20 Thread Seth
seems there should be a simpler method I am not finding. Anyone have a quick point to a package/function that will optimze weights in a weighted average or similarly allow a constraint of all regression coefficients sum to 1? Thanks, Seth -- View this message in context: http://r.789695.n4

[R] Error: missing value where TRUE/FALSE needed

2016-06-08 Thread SHASHI SETH
Hi, I am getting the following error: Error in if ((sum > 0 && sums1 > 0 && sums2 > 0) != NA) { : missing value where TRUE/FALSE needed I have including my code below for your review: fitness_1_data [[alternative HTML version deleted]] __

[R] Lattice barchart legend with panel.barchart

2016-07-27 Thread Seth Bigelow
hese blocks with panel.barchart? -- Seth W. Bigelow, Ph.D. Assistant Scientist of Forest Ecology Joseph W. Jones Ecological Research Center Newton, GA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRI

Re: [R] [FORGED] Lattice barchart legend with panel.barchart

2016-07-27 Thread Seth Bigelow
eKey(title="Survived", text=levels(Titan$Survived), >rectangles=TRUE, points=FALSE, columns=2)) > > Paul > > On 28/07/16 09:02, Seth Bigelow wrote: > >> I have constructed a barchart that requires a panel call, but the panel >> reduces

[R] function that calculates using preceding records

2015-02-10 Thread Seth Bigelow
9","TC148",2011,0.315,NA "10","TC148",2010,0.455,NA "11","TC147",2014,NA,55.5 "12","TC147",2013,1.26,NA "13","TC147",2012,1.115,NA "14","TC147",2011,1.025,NA "15",&quo

Re: [R] function that calculates using preceding records

2015-02-10 Thread Seth Bigelow
Petr, Your code works therefore I pronounce it beautiful. Many many thanks --Seth -Original Message- From: PIKAL Petr [mailto:petr.pi...@precheza.cz] Sent: Tuesday, February 10, 2015 11:23 AM To: Seth Bigelow; r-help@r-project.org Subject: RE: [R] function that calculates using

Re: [R] function that calculates using preceding records

2015-02-10 Thread Seth Bigelow
Aha, this solution is even more elegant than that of the previous suggestion. Thanks for alerting me to the capabilities of plyr! --Seth -Original Message- From: Dennis Murphy [mailto:djmu...@gmail.com] Sent: Tuesday, February 10, 2015 2:14 PM To: Seth Bigelow Subject: Re: [R] function

[R] Frequency count of terms only in a given column in R

2015-08-28 Thread agrima seth
i have a text file with data of the given format: white snow lived snow in snow lived place in place a place called place as place here i have to find the frequency of the terms only in the first column (i.e.) white - 1 lived- 2 in -2 a-1 called - 1 as -1 Could you please guide me how to do the

[R] very long processing time

2016-05-10 Thread SHASHI SETH
Hi, I have implemented following program in R, that reads data from the "dtm_mydata.csv". file size is 114,029 kB, saved document Term matrix. Prog. performing some calculation and writing in a file. my computer RAM is 16 GB. To execute this program its taking around 25 hours. can any bo

[R] [R-pkgs] New version of RSQLite on CRAN

2009-08-18 Thread Seth Falcon
Hi, RSQLite 0.7-2 is available on CRAN. Version 0.7-2 - Fixed some partial argument matching warnings. Thanks to Matthias Burger for reporting and sending a patch. - Added dbBuildTableDefinition to exports per user request. + seth ___ R-packages

Re: [R] using setMethod or setGeneric to change S4 accessor symbol from @ to $

2010-02-10 Thread Seth Falcon
You could also provide a validate function that takes a data.frame and either says "OK" or describes the ways in which the input does not conform. I think the benefits you would get out of a complete S4 wrapping of data.frame do not outweigh the complexity introduced. + seth --

[R] Using getSYMBOL, annotate package on a list with empty elements.

2010-02-13 Thread Sahil Seth
Hi, I have been trying to find a solution to this issue, but have not been able to so ! I am trying to use sapply on the function getSYMBOL, an extract from the list is: > test.goP[13:14] $`GO:050` IEA IEA IEA IEA TAS TAS TAS IEA "5270753" "5720725" "16

[R] Help with multtest (rawp2adjp)

2010-03-02 Thread Sahil Seth
Hello R experts, I am trying to analyze this dataset and am stuck on this problem for quite some time now. I am using mt.rawp2adjp. the output that came out was a matrix with two colums since I had asked it to calculate the adjusted p values using one method. so it has the two columns as: rawp BH

[R] [R-pkgs] RSQLite 0.8-4 now on CRAN

2010-03-11 Thread Seth Falcon
WS items available here: http://cran.r-project.org/web/packages/RSQLite/NEWS + seth -- Seth Falcon | @sfalcon | http://userprimary.net/ ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-

[R] Help with printing fixed width

2009-10-09 Thread sahil seth
293 6.47853e-12 11 82 244 326 7.943691e-20 12 57 145 202 4.964509e-10 Thanks, -- Regards, Sahil Seth JHSPH [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://

[R] .First and loading a package in a workspace

2009-05-07 Thread Seth Schommer
ning (indicated by the printed rNMR version info)? Odder still, the original version of .First was designed to open a tk toplevel containing rNMR menus, which it does. Commands from these menus work but commands typed in the console don't and everything else seems to indicate that rNMR is not a

Re: [R] The RSQLite version of dbGetQuery drops colums

2009-12-29 Thread Seth Falcon
instead, > that is, the same value as: I agree that keeping the column dimension is sensible. I will see about fixing that for the next release. > Any thoughts? Is this a bug, and are the developers of RSQLite > reading this? A much better forum for RSQLite issues is the r-sig-db list. +

Re: [R] Directory operations

2010-01-11 Thread Seth Falcon
his looks like a bug that has been resolved in latest version of the XML package. Please make sure you are using the latest R release and latest Bioconductor and CRAN packages. + seth -- Seth Falcon Bioconductor Core Team | FHCRC __ R-help@r-projec

Re: [R] R package dependencies

2010-01-15 Thread Seth Falcon
dependencies that would be listed on that page if there were any for this package. An example with reverse dependencies is e.g., the IRanges package: http://bioconductor.org/packages/2.5/bioc/html/IRanges.html The maintainer (Seth Falcon) would know for sure if the package will do reverse dependencies as

Re: [R] Help deciphering segfault in make check

2010-01-19 Thread Seth Falcon
able to reproduce this and get some more information like this: R -d gdb run source("src/tests/Examples/base-Ex.R") Assuming you get a crash, type bt in the gdb console and send output. + seth -- Seth Falcon | @sfalcon | http://userprimary.net/user __

Re: [R] [Fwd: Re: question on sqldf syntax]

2010-01-26 Thread Seth Falcon
t * from mtcars") That sqldf only works if RMySQL is not attached seems like something worth investigating and fixing. It should be possible to avoid such conflicts by proper use of name spaces, but I have not looked into the details of what's going on. + seth -- Seth Falcon | @sfalco

Re: [R] How do people use Sweave / R / Databases

2010-01-29 Thread Seth Falcon
e-run the retrieval code. Another Sweave caching solutions is the "weaver" package. source("http://bioconductor.org/biocLite.R";) biocLite("weaver") + seth -- Seth Falcon | @sfalcon | http://userprimary.net/user

Re: [R] shared object location

2010-01-29 Thread Seth Falcon
kg with the version of R code and C code you want to use/test. This would best allow other people to have a single version of the R package, no? + seth -- Seth Falcon | @sfalcon | http://userprimary.net/user __ R-help@r-project.org mailing lis

[R] Simple Model in R

2013-09-07 Thread Ankur Seth
there a way to do this in R? Regards, Ankur Seth [[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

Re: [R] Simple Model in R

2013-09-07 Thread Ankur Seth
Thanks Rui, but this does not change the value in the new column automatically if I change the value in the data column. Any ideas? Regards, Ankur Seth On Sat, Sep 7, 2013 at 2:11 PM, Rui Barradas wrote: > Hello, > > Try the following. > > dat <- read.table

Re: [R] Simple Model in R

2013-09-07 Thread Ankur Seth
Is there a way in which I can setup a model like that? Regards, Ankur Seth On Sat, Sep 7, 2013 at 4:49 PM, Rui Barradas wrote: > Hello, > > It will not change the value automatically, you will have to rerun the > code. > > Rui Barradas > > Em 07-09-2013 11:52, Ankur Se

[R] Data labels in R

2013-09-15 Thread Ankur Seth
select=c(Date,col1, col2 )) data<-read.zoo(data) plot(data) -- Regards, Ankur Seth [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gui

Re: [R] Data labels in R

2013-09-15 Thread Ankur Seth
plot' and look at some of the examples to see > how to place labels in various places on a plot. This is not > difficult if you have read any of the documentation. > > Jim Holtman > Data Munger Guru > > What is the problem that you are trying to solve? > Tell me what y

[R] R Regular Expressions - Metacharacters

2013-02-05 Thread Seth Dickey
I thought that I can use metacharacters such as \w to match word characters with one backslash. But for some reason, I need to include two backslashes. > grepl(pattern='\w', x="what") Error: '\w' is an unrecognized escape in character string starting "\w" > grepl(pattern='\\w', x="what") [1] TRU

[R] peering inside functions in a package?

2013-05-16 Thread Seth Myers
Let's say I would like to look inside the function corBrownian in library (ape). When I type in the function name I get the following, which is not nearly the detail that goes into this function. I am wondering how to begin cracking this function open (and others) so I can learn more about it and

[R] Comparing x-intercepts between linear regression lines

2012-09-24 Thread Seth Munson
, and ANCOVA, which can test for differences in the y-intercepts. Any help would be much appreciated. Thanks, Seth [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.et

Re: [R] Data labels in R

2013-09-16 Thread Ankur Seth
7000 East Ave., L-627 > Livermore, CA 94550 > 925-423-1062 > > > > > > On 9/15/13 9:43 AM, "Ankur Seth" wrote: > > >I want to put labels a,b,c,d on the data points > > > >x<-data.frame(c(1,2,3,4),c(1,4,9,16),c("a","b","c&

Re: [R] RSQLite install R x86_64 fail

2010-07-11 Thread Seth Falcon
r 'mac.binary.leopard' but the package does not load properly. >> library('RSQLite') > Error: package 'RSQLite' was built for universal-apple-darwin9.8.0 The mac binary package is intended to work with the R binary

Re: [R] Compress string memCompress/Decompress

2010-07-11 Thread Seth Falcon
bGetQuery(db, "select name from t1") checkEquals(10, nrow(a)) a <- dbGetQuery(db, "select data from t1") checkEquals(10, nrow(a)) a <- dbGetQuery(db, "select * from t1") checkEquals(10, nrow(a)) checkEquals(

Re: [R] RSQLite install R x86_64 fail

2010-07-11 Thread Seth Falcon
On Sun, Jul 11, 2010 at 4:25 PM, David Ruau wrote: > Hi Seth, > > Thanks for the answer. > I have install R using macport (since many years now). It compile R from > source using gcc 4.4 by default. But I don't think this is the problem > because I manage to install man

Re: [R] Compress string memCompress/Decompress

2010-07-12 Thread Seth Falcon
On Mon, Jul 12, 2010 at 9:17 AM, Erik Wright wrote: > Hi Seth, > > Can you recreate the example below using dbWriteTable? > Not sure if that is possible with the current dbWriteTable code (don't have time to explore that right now). You are welcome to poke around. You could wr

Re: [R] How to Read a Large CSV into a Database with R

2010-11-15 Thread Seth Falcon
000 dbBeginTransaction(db) tryCatch({ while (TRUE) { part <- read.table(input, nrows=chunk_size, sep=",", colClasses = colClasses, comment.char = "") dbGetPreparedQuery(db, sql.in, b

Re: [R] How to Read a Large CSV into a Database with R

2010-11-16 Thread Seth Falcon
Hi Abhijit, [I've cc'd R-help to keep the discussion on the list] On Tue, Nov 16, 2010 at 8:06 AM, Abhijit Dasgupta wrote: > Seth, > > I was looking for something like this too. I've a question. If > you're reading the data from a connection, does R start readin

[R] how to remove grid lines from coplot graphs

2010-12-01 Thread Seth Roberts
coplot() usually puts grid lines in the panels it makes. To see examples, example(coplot). How can I remove those grid lines? Seth Roberts [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] python-like dictionary for R

2010-12-23 Thread Seth Falcon
in C with an R > interface. I had to play around with the rdict package in order to write it, but haven't used it much since :-P Be sure to look at R's native environment objects which provide a hash table structure and are suitable for many uses. + seth -- Seth Falcon | @sfalc

Re: [R] 64 bit RSQLite

2010-08-14 Thread Seth Falcon
install the RSQLite source package to obtain a 64 bit package. install.packages("RSQLite", type="source") + seth __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Limited output

2010-08-15 Thread Seth Falcon
sqlite. See the help page for fetch. If you want all of the rows at once, you can say: fetch(cur, n=-1) If you want all the rows at once you can use dbGetQuery instead and skip dealing with the result set and fetch. Or you can call fetch again and get the next 500 rows... + seth __

Re: [R] 64 bit RSQLite

2010-08-20 Thread Seth Falcon
and suggestions. + seth __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] [R-pkgs] Release announcement: RSQLite 0.9-0 now with more BLOBs

2010-05-07 Thread Seth Falcon
ese and other changes here: http://cran.r-project.org/web/packages/RSQLite/NEWS + seth -- Seth Falcon | @sfalcon | http://userprimary.net/ ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packa

Re: [R] dbSendQuery with R variables

2010-05-11 Thread Seth Falcon
e parameters to specify table names, only values. For details of what is supported, try reading through the examples in help("dbSendPreparedQuery") + seth -- Seth Falcon | @sfalcon | http://userprimary.net/ __ R-help@r-project.org mailing l

Re: [R] RSQLite equivalent of .schema?

2010-05-12 Thread Seth Falcon
lent in R to do this? Thanks! dbGetQuery(db, "select * from sqlite_master where tbl_name = 'yourTable'") -- Seth Falcon | @sfalcon | http://userprimary.net/ __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

[R] [R-pkgs] New package RSQLite.extfuns and minor upgrade for RSQLite

2010-05-30 Thread Seth Falcon
een modified to provide the SQLite header files in the installed include directory so that RSQLite.extfuns (and other packages wishing to provide SQLite extension functions) can use LinkingTo. The default value of loadable.extensions is now TRUE. + seth -- Seth Falcon | @sfalcon |

Re: [R] Data type problem when extract data from SQLite to R by using RSQLite

2011-02-28 Thread Seth Falcon
05-31) x86_64-apple-darwin9.8.0 locale: [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices datasets utils methods base other attached packages: [1] RSQLite_0.9-4 DBI_0.2-5 loaded via a namespace (and not attached): [1] tool

Re: [R] Data type problem when extract data from SQLite to R by using RSQLite

2011-02-28 Thread Seth Falcon
its operations); - check whether the returned column has the expected type and convert if needed at the R level. - remove NA/NULL values from the db or decide on a different way of encoding them (e.g you might be able to use -1 in the db in some situation to indicate missing). Your R code wo

Re: [R] Data type problem when extract data from SQLite to R by using RSQLite

2011-03-01 Thread Seth Falcon
On Tue, Mar 1, 2011 at 10:06 AM, chen jia wrote: > Hi Seth, > > Thanks so much for identifying the problem and explaining everything. > I think the first solution that you suggest--make sure the schema has > well defined types--would work the best for me. But, I have one > que

Re: [R] Decimals in R/SQL

2011-04-13 Thread Seth Falcon
create a new table from an existing table using SQL where the new table has the types you want. + seth -- Seth Falcon | @sfalcon | http://userprimary.net/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] issue with available.packages() and download.file()

2011-08-25 Thread Seth Schommer
Dear R-Users, I think I have encountered a potential bug (or at least unwanted behavior), but I'm not sure so I wanted to post here first. Lately I've been encountering an error when running a package I put together. I have my package set up to check for updates when it loads but this error occu

[R] Adding groups to regression line panel function in Lattice

2011-09-09 Thread Bigelow, Seth
groups=q, panel = panel.superpose, panel.groups=mypanel ) Can anyone suggest how to get lines to display by group? (and how to get lmline panel to fit line without estimating an intercept?) Seth W. Bigelow, Ph.D. Research Ecologist USDA-FS Pac

[R] [R-pkgs] RSQLite 0.11.0

2011-12-01 Thread Seth Falcon
spectively. Databases containing tables with more than 2000 columns may not be compatible with versions of SQLite compiled with default settings. - Upgrade to SQLite 3.7.9. -- Seth Falcon | @sfalcon | http://userprimary.net/ ___ R-packages mailing list r-

[R] [R-pkgs] RSQLite 0.6-7 -- changes to dbGetQuery semantics

2008-01-26 Thread Seth Falcon
://stat.ethz.ch/pipermail/r-sig-db/2008q1/000399.html + seth -- Seth Falcon | [EMAIL PROTECTED] | blog: http://userprimary.net/user/ ___ R-packages mailing list [EMAIL PROTECTED] https://stat.ethz.ch/mailman/listinfo/r-packages

[R] Bimodal deconvolution

2008-02-23 Thread Seth Imhoff
s and have it generate a "best guess" as to what the two subpopulations are which make up my dataset. Below is a link to a figure which represents what I would like to accomplish here (it is the best I can do so far). http://nucleus.msae.wisc.edu/example.html Than

Re: [R] Call C code from R

2007-09-13 Thread Seth Falcon
N or Bioconductor packages which contain native code. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center BioC: http://bioconductor.org/ Blog: http://userprimary.net/user/ __ R-help@r-project.org mailing list https://sta

[R] xyplot: Can I identify groups but not use them for regression?

2009-09-18 Thread Seth W Bigelow
plotted for each treatment. Oh, and how do I display the actual numeric value of year (e.g., "2007") in the strip, rather than the word "year"? --Seth Dr. Seth W. Bigelow Biologist, USDA-FS Pacific Southwest Research Station 1731 Research Park Drive, Davis California

[R] conditioning variable in panel.xyplot?

2010-03-04 Thread Seth W Bigelow
atement that needs a "Site" conditioning variable panel.xyplot(...)} xyplot(y~x|site, d, panel=mypanel) # Statement erroneously plots all 14 x-y points in "q" on panels for sites A & B Dr. Seth W. Bigelow Biologist, USDA-FS Pacific Southwest Research Station 1731 R

Re: [R] conditioning variable in panel.xyplot?

2010-03-05 Thread Seth W Bigelow
norm(14),y=rnorm(14)) mypanel <- function(...){ panel.xyplot(q$x, q$y, col="red") panel.xyplot(...)} xyplot(y ~ x | site, d, panel = mypanel ) --Seth On Thu, Mar 4, 2010 at 4:42 PM, Seth W Bigelow wrote: > I wish to create a mult

Re: [R] conditioning variable in panel.xyplot?

2010-03-08 Thread Seth W Bigelow
r providing the alternative dataset and the panel... panel = mypanel) # ...everything prints out properly, like magic! Dr. Seth W. Bigelow Biologist, USDA-FS Pacific Southwest Research Station [[alternative HTML version deleted]] _

[R] Re : Eliminate border in wireframe plot

2010-03-16 Thread Seth W Bigelow
# disarm lurking panel settings? ) Dr. Seth W. Bigelow Biologist, USDA-FS Pacific Southwest Research Station 1731 Research Park Drive, Davis California sbige...@fs.fed.us / ph. 530 759 1718 [[alternative HTML version deleted]] ___

Re: [R] Eliminate border in wireframe plot

2010-03-16 Thread Seth W Bigelow
Scott, I asked this same question a few years back, here's what Deepayan wrote. I think the last hint about scales will help you --Seth On 5/9/07, Seth W Bigelow wrote: > > I would like to remove the outermost box from my wireframe plots -- this is > the box that is automatic

[R] nonlinear (especially logistic) regression accounting for spatially correlated errors

2009-12-17 Thread Seth J Myers
ple of modeling the correlation among model errors, is there a good example of R code somewhere that does this that I can reference? Thanks, Seth Myers PS I plan to read all the excellent books suggested in other threads, but ask this now to help me digest this material mo

[R] Confidence interval?

2009-04-06 Thread Thomas Seth Davis
hi folks, I need help fitting/plotting a confidence interval to a frequency distribution Can someone help with this? thanks, tsd -Original Message- > Date: Mon Apr 06 15:08:20 MST 2009 > From: r-help-requ...@r-project.org > Subject: Welcome to the "R-help" mailing list >

[R] illegal levels in yaImpute() / AsciiGridImpute()

2009-05-05 Thread Seth W Bigelow
_ob, xfiles, outfiles, xtypes=list("numeric", "numeric", "integer", "character")) Any insights will be appreciated. I'd particularly like to know how to gain access to the "invisible" list, VALUE, containing unexpectedNA's, illega

[R] subsetting by groups, with conditions

2009-12-28 Thread Seth W Bigelow
oint me in the right direction on this? Dr. Seth W. Bigelow Biologist, USDA-FS Pacific Southwest Research Station 1731 Research Park Drive, Davis California [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://

[R] Lattice legend

2010-06-22 Thread Seth W Bigelow
nd to plot are working, i.e., using auto.key, key, etc. One message I keep getting is Error in key[[i]][[1]] <- NULL : more elements supplied than there are to replace Any suggestions will be appreciated --Seth Dr. Seth W. Bigelow Biologist, USDA-FS Pacific Southwest Research Station

Re: [R] Lattice legend

2010-06-22 Thread Seth W Bigelow
Here is the code for my recent query: The first part just sets up the data. It's the last part titled "individual depth graph" where the actual graphics code comes in Thx --Seth library(lattice) setwd("c:/sethdocs/3 Light and PLAS txs/8 Figures/Fg 6 Soil wetness"

[R] Doing operations by grouping variable

2010-09-20 Thread Seth W Bigelow
, tapply, etc. but that seems awkward and bulky, is there a simpler way? Dr. Seth W. Bigelow Biologist, USDA-FS Pacific Southwest Research Station 1731 Research Park Drive, Davis California [[alternative HTML version deleted]] __ R-help@r-p

Re: [R] Doing operations by grouping variable

2010-09-21 Thread Seth W Bigelow
bundle together in a data frame d$scaled <- d$variable/(with(d,tapply(variable,group,max))) # crash and burn Dr. Seth W. Bigelow Biologist, USDA-FS Pacific Southwest Research Station 1731 Research Park Drive, Davis California 09/20/2010 06:24 PM To , , cc Subject RE

Re: [R] Doing operations by grouping variable

2010-09-21 Thread Seth W Bigelow
Bill, I'd never heard of ave( ) before, but it works like a charm for the purpose outlined below Thanks!! Dr. Seth W. Bigelow Biologist, USDA-FS Pacific Southwest Research Station 1731 Research Park Drive, Davis California "William Dunlap" 09/21/2010 08:52 AM To "

Re: [R] Doing operations by grouping variable

2010-09-21 Thread Seth W Bigelow
Aah, that is the sort of truly elegant solution I have been seeking. And it's wrapped up in a nice programming shortcut to boot (i.e., the within statement). I retract anything I may have said about tapply being clunky. Many thanks --Seth Dr. Seth W. Bigelow Biologist, USDA-FS Pa

[R] R implementation of S-distribution

2011-01-04 Thread Seth W Bigelow
know of any R implementation of this distribution? Dr. Seth W. Bigelow Biologist, USDA-FS Pacific Southwest Research Station 1731 Research Park Drive, Davis California sbige...@fs.fed.us / ph. 530 759 1718 [[alternative HTML version deleted]] ___

  1   2   >