Re: [R] package mgcv - predict with bam: Error in X[ind, ] : subscript out of bounds

2014-02-03 Thread Katharina May
to zero. On 02/02/14 17:52, Katharina May wrote: Hi Simon, thank you for your reply, I really appreciate any help to understand the problem here... Unluckily the package upgrade didn't help with this issue. An example reproducing the error, and a current sessionInfo() Output can be found

Re: [R] package mgcv - predict with bam: Error in X[ind, ] : subscript out of bounds

2014-02-02 Thread Katharina May
Hi Simon, thank you for your reply, I really appreciate any help to understand the problem here... Unluckily the package upgrade didn't help with this issue. An example reproducing the error, and a current sessionInfo() Output can be found below. Many thanks once again, Katharina R

[R] package mgcv - predict with bam: Error in X[ind, ] : subscript out of bounds

2014-01-30 Thread Katharina May
Dear R-Community, I`m trying to apply the mgcv package to fill gaps in sensor data from different sites (9 sites, 2 sensors per site) and do the filling on a site-wise level. Based on http://r.789695.n4.nabble.com/mgcv-gamm-predict-to-reflect-random-s-effects-td3622738.html my model looks like

[R] Package zoo - na.rm ignored?

2013-06-17 Thread Katharina May
Dear R Users, I've got a strange problem, which I do not really understand: when I use na.spline from the zoo package, the option na.rm is just being ignored, see this adjusted example from the na.spline help page: d0 - as.Date(2000-01-01) z - zoo(c(NA, 11, 13, NA, 15,

Re: [R] Package zoo - na.rm ignored?

2013-06-17 Thread Katharina May
many thanks for the enlightenment - I guess I completely misunderstood the na.rm option here... On 18 June 2013 00:50, Gabor Grothendieck ggrothendi...@gmail.com wrote: On Mon, Jun 17, 2013 at 6:23 PM, Katharina May may.kathar...@googlemail.com wrote: Dear R Users, I've got a strange

[R] round Date object to 10 minutes intervals?

2011-12-12 Thread Katharina May
Hello *, I'm trying to round time stamps, consisting of a date and time part, to 10 minutes intervals The timestamps have the following format: %d.%m.%Y %H:%M *timeStamp - c(31.03.2011 09:30, 31.03.2011 09:41, 31.03.2011 10:04, 31.03.2011 10:10, 31.03.2011 10:28, 31.03.2011 10:35, 31.03.2011

Re: [R] linear model: Test difference between coefficients and given values (t.test?)

2009-08-09 Thread Katharina May
: I struggling with the data analysis of my bachelor thesis and just want to compare the coefficients of my linear regression to published ones... a method often used I guess, but still I cannot find any appropriate documentations. Thanks, Katharina On Aug 8, 2009, Katharina May

[R] linear model: Test difference between coefficients and given values (t.test?)

2009-08-08 Thread Katharina May
Hi there, I've got a question which is really trivial for sure but still I have to ask as I'm not making any progress solving it by myself (please be patient with an undergraduate student): I've got a linear model (lm and lmer fitted with method=ML). Now I want to compare the coefficients

[R] package lmodel2: p-value RMA fitting?

2009-07-20 Thread Katharina May
Hi *, is there a way to obtain some kind of p-value for a model fitted with RMA using the lmodel2 package? I know that p-values are discussed and criticized a lot and as you can image from my question I'm not very much of a statistican (only writing my bachelor thesis). As fare as I understood

Re: [R] package lmodel2: p-value RMA fitting?

2009-07-20 Thread Katharina May
Katharina May may.kathar...@googlemail.com Hi *, is there a way to obtain some kind of p-value for a model fitted with RMA using the lmodel2 package? I know that p-values are discussed and criticized a lot and as you can image from my question I'm not very much of a statistican (only writing my

[R] distinguish regression lines in grouped, black and white lattice xyplot

2009-06-24 Thread Katharina May
Hi, I've got the following problem which I cannot think of a solution right now: if got a lattice xyplot in black and white and a grouping variable with many (more than 8 values) and I plot it as regression lines (type=r), just like this one (not reproducable but that's I guess not the point

Re: [R] distinguish regression lines in grouped, black and white lattice xyplot

2009-06-24 Thread Katharina May
how to make a more meaningful display to provide viewers interpretable information. Bert Gunter Genentech Nonclinical Biostatistics -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Katharina May Sent: Wednesday, June 24, 2009

Re: [R] lattice logaritmic scale (basis e ), rewriting labels using xscale.component

2009-06-22 Thread Katharina May
thanks Deepayan, that works great! 2009/6/19 Deepayan Sarkar deepayan.sar...@gmail.com: On 6/18/09, Katharina May may.kathar...@googlemail.com wrote: Hi there,  sorry for troubling everybody once again, I've got a problem rewriting  Sarkar's function for  rewriting the tick locations

Re: [R] lattice: axis ticks, axis alignment and remove axis from plot

2009-06-18 Thread Katharina May
- *Katharina May may.kathar...@googlemail.com* Sent by: r-help-boun...@r-project.org 17/06/2009 07:24 PM To r-help@r-project.org cc Subject [R] lattice: axis ticks, axis alignment and remove axis from plot Hi there, I'm a bit confused concerning the axis tck setting

[R] lattice logaritmic scale (basis e ), rewriting labels using xscale.component

2009-06-18 Thread Katharina May
Hi there, sorry for troubling everybody once again, I've got a problem rewriting Sarkar's function for rewriting the tick locations in a logaritmic way (s. http://lmdvr.r-forge.r-project.org/code/Chapter08.R): His example works for log 2 but I need log e (natural logarithm). My problem is that

Re: [R] lattice: axis ticks, axis alignment and remove axis from plot

2009-06-18 Thread Katharina May
, Katharina 2009/6/18 Jim Lemon j...@bitwrit.com.au: Katharina May wrote: What I sort of looking for is a xyplot with both the x axis at the bottom and y axis at the left going through 0, but continuing  in the positive and negative area (forming a kind of cross like e.g. http

[R] lattice: axis ticks, axis alignment and remove axis from plot

2009-06-17 Thread Katharina May
Hi there, I'm a bit confused concerning the axis tck setting in the lattice package as the ticks on left sided axis aren't drawn at all with the following setting: dados - data.frame(varsep = factor(rep(1:2,10)), i = runif(20)) library(lattice) my.theme - list(

[R] color in grouped lattice xyplot plot

2009-06-11 Thread Katharina May
Hi, I've got a data.frame object which I would like to plot in a lattice xyplot grouped by a variable and using a value for the color of each point which is stored in a variable in the same data.frame. I tried the following code: my.panel.xy - function(x, y, ...){ panel.xyplot(x, y, ...)

[R] wrong labels and colors of points in graph/plot

2009-06-04 Thread Katharina May
Hi there, I trying to solve this problem for the whole day not going anywhere, so I really hope maybe somebody can help me in this community... I've got an object coefficient2 which I want to plot in differerent ways, with colors and labels added to the points, but somehow there seems to be a

[R] write values of points beside points in plot

2009-06-01 Thread Katharina May
Hi everyone, is it possible to write a certain value beside a point in a plot? I'm plotting the following: plot(coefficient$intercept ~ coefficient$average_BM_leaves_needles, main=intercepts ::: BM_leaves_needles, ylab=intercepts, xlab=average BM_leaves_needles per site [kg]) and I want to

[R] remove empty objects from workspace

2009-05-19 Thread Katharina May
Hi, how can I remove all empty objects (which are NA or have zero rows) from my workspace? Thanks, Katharina __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Remove objects names like character String

2009-05-19 Thread Katharina May
Hi, how can I use rm() on objects named like: paste(site,i,_data,sep=) while looping through i? I tried rm(paste(site,i,_data,sep=)) but I get the error that rm() must contain names or text strings which is confusing me as I thought paste() would create something like that...? Thanks,

Re: [R] remove empty objects from workspace

2009-05-19 Thread Katharina May
]) || dim((get(object)))[1] == 0) rm(list=object) Thanks a lot! 2009/5/19 Jim Lemon j...@bitwrit.com.au: Katharina May wrote: Hi, how can I remove all empty objects (which are NA or have zero rows) from my workspace? Hi Katharina, To remove objects that are all NA: for(object in objects

Re: [R] Remove objects names like character String

2009-05-19 Thread Katharina May
thanks to all your solutions, works out perfectly! 2009/5/19 Henrique Dallazuanna www...@gmail.com: Try this: rm(list=ls(patt=site[0-9]$)) On Tue, May 19, 2009 at 7:47 AM, Katharina May may.kathar...@googlemail.com wrote: Hi, how can I use rm() on objects named like: paste(site,i

[R] create string of comma-separated content of vector

2009-05-19 Thread Katharina May
Hi, how do I create a string of the comma-separated content of a vector? I've got the vector i with several numeric values as content: str(i) num 99 and want to create a SQL statement to look like the following where the part '(2, 4, 6, 7)' should be the content of the vector i: select * from

Re: [R] create objects in a loop and adding sqlQuery content to them

2009-04-21 Thread Katharina May
site_no = ,i,sep=))) } /snap Thanks for all your solution proposals! Katharina On 21.04.2009, at 02:43, David Winsemius wrote: On Apr 20, 2009, at 8:04 PM, Katharina May wrote: Hi there, I've got a database or rather spreadsheet with several columns and rows. For one column named sites

[R] create objects in a loop and adding sqlQuery content to them

2009-04-20 Thread Katharina May
Hi there, I've got a database or rather spreadsheet with several columns and rows. For one column named sites I want to loop through all possible values and retrieve all data out of the database where site = x and write it into an object named 'sitex_data'. Somehow I'm really missing