Re: [R] add trailing dates with rbind

2020-08-12 Thread Frederik Feys
Thank you so much Eric! Wonderful to have an R community helping out so quickly! > Op 12 aug. 2020, om 14:10 heeft Eric Berger het > volgende geschreven: > > Hi Frederik, > (short answer) modify the assignment statement to > agg_d_h <- rbind( agg_d_h, data.frame(Gro

[R] add trailing dates with rbind

2020-08-12 Thread Frederik Feys
supplied Thank you for your time to help me! Frederik Feys __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and

Re: [R] how to summarize results from studies?

2020-07-01 Thread Frederik Feys
Thank you Michael! > Op 1 jul. 2020, om 19:07 heeft Michael Dewey het > volgende geschreven: > > Dear Frederik > > There is also a mailing list dedicated to meta-analysis in R > > https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis// > > Michael >

Re: [R] how to summarize results from studies?

2020-07-01 Thread Frederik Feys
roach. > > That being said, the details of specific methodologies and conceptual > assistance would be beyond the scope of this list. You should consider > consulting a local statistician for assistance with that, if needed. > > Regards, > > Marc Schwartz > >> On Jul

[R] how to summarize results from studies?

2020-07-01 Thread Frederik Feys
Hello everyone I have some studies with results from the same outcome scale. I want to merge them into 1 summarised estimated result and its standard deviation. How do I do that in R? Thank you very much for your help! Frederik __ R-help@r

Re: [R] how to combine uncertainty and weighting in spearman correlation?

2020-06-22 Thread Frederik Feys
of the Ys are from exactly the same uniform >> distribution. >> By "combine"-ing both approaches, are you wanting to weight each pair? >> >> w1(X1, X1) + w2(X2, Y2) + ... + wn(Xn, Yn) >> >> I note that you haven't told us much about your data. >

[R] how to combine uncertainty and weighting in spearman correlation?

2020-06-21 Thread Frederik Feys
function: https://www.r-bloggers.com/finding-correlations-in-data-with-uncertainty/ weighted: I do weighted correlations with the wCorr package. Now I want to combine both approaches in one approach for a final analysis. How would you do that? Thanks for the help! Frederik Feys PhD Medical

Re: [R] [Rd] italic font on cairo devices in R 3.4

2017-07-07 Thread frederik
st the cairo devices (both pdf and svg) that have the issue. > Unfortunately I need to use cairo_pdf due to unicode characters in axis > labels. > > Cheers, Ilia > > > Original Message > Subject: Re: [Rd] italic font on cairo devices in R 3.4 > Date: 20

Re: [R] [Rd] italic font on cairo devices in R 3.4

2017-07-07 Thread frederik
Hi Ilia, I'm running Arch Linux, R 3.4.0. Here's my test.pdf from your minimal example: https://ptpb.pw/HxsA.pdf It doesn't look pixelated to me... Here's a post that I wrote when I solved my last font problem in R, almost 2 years ago: https://stackoverflow.com/a/40940331/5087283 I had to ins

Re: [R] how do I define a function which is equivalent to `deparse(substitute(x))`?

2016-12-12 Thread frederik
Thank you, John and David. Yes someone already came up with that one on Stack Overflow. Although I don't quite understand how it works - it would be nice to see a step-by-step explanation of what is getting substituted and evaluated in which environment. I guess 'eval.parent' must do its own subs

[R] [RE: [Rd] why does parent.frame() cycle when called from inside capture.output()?]

2016-12-12 Thread frederik
T_SPF_TEMPERROR autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Level: X-My-Tags: inbox r-devel Hi Frederik [ I'm replying off-list in case you, or the rest of R-devel, don't find this reply useful... please fwd to the list if it does help you ] I'm the author of the 'deb

[R] why does parent.frame() cycle when called from inside capture.output()?

2016-12-12 Thread frederik
Hello R devel/help, I ran into this strange behavior: # showstack is supposed to walk through the stack of parent # environments when it is called: showstack = function() { env = environment() for(i in 1:12) { env = do.call(parent.frame, list(), env=env) pr

Re: [R] how do I define a function which is equivalent to `deparse(substitute(x))`?

2016-12-12 Thread frederik
Thank you, that made me laugh :) On Sun, Dec 11, 2016 at 08:53:42PM -0800, David Winsemius wrote: > > > On Dec 11, 2016, at 5:35 PM, frede...@ofb.net wrote: > > > > Dear R-Help, > > > > I was going to ask Jeff to read the entire works of William > > Shakespeare to learn why his reply was not he

Re: [R] how do I define a function which is equivalent to `deparse(substitute(x))`?

2016-12-11 Thread frederik
Dear R-Help, I was going to ask Jeff to read the entire works of William Shakespeare to learn why his reply was not helpful to me... Then I realized that the answer, as always, lies within... desub <- function(y) { e1=substitute(y, environment()) e2=do.call(substitute,list(e1), e

[R] how do I define a function which is equivalent to `deparse(substitute(x))`?

2016-12-10 Thread frederik
Dear R-Help, I asked this question on StackOverflow, http://stackoverflow.com/questions/41083293/in-r-how-do-i-define-a-function-which-is-equivalent-to-deparsesubstitutex but thought perhaps R-help would be more appropriate. I want to write a function in R which grabs the name of a variable fro

Re: [R] Creating a box plot with whiskers when I only have mean, sd and n

2014-03-14 Thread Frederik Borup
Thanks for very quick reply Cheers Frederik Borup On Fri, Mar 14, 2014 at 6:09 AM, Jim Lemon wrote: > On 03/14/2014 06:52 AM, Frederik Borup wrote: > >> Dear all, >> >> I want to create a boxplot with whiskers. I want to compare several >> studies. For each

[R] Creating a box plot with whiskers when I only have mean, sd and n

2014-03-13 Thread Frederik Borup
when I only know mean and sd -- Frederik Borup MD, Ph.D.-stud. Accident Analysis Group (UAG) The Department of Orthopaedic Surgery, Odense University Hospital (OUH) The Department of Orthopaedic Surgery, SLB Kolding University of Southern Denmark (SDU) [[alternative HTML version d

[R] R minimal calculation error

2012-08-24 Thread Frederik Bertling
t this? Or is this behaviour desired? Thank you very much! Burtan -- Frederik Bertling Steinhausenstr. 37, 45147 Essen, Deutschland Mobil: 017661103480* * [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.et

[R] sqldf and not converting integers to floating point in SQLite

2012-01-03 Thread Frederik Vanrenterghem
. In SQLite, this results in the computed value also not being a float - so it gets rounded up or down. In this case, I'm getting 24 for A & B instead of 24.5. Is there a way to take care of this using other R concepts, avoiding that problem (for instance using melt & cast)? Thanks,

[R] plotting 2 Y-axes, aligning the 0 value

2011-12-13 Thread Frederik Vanrenterghem
ot;,col.axis="red") # Draw the time axis axis(1,pretty(range(time),10)) mtext("Time (Hours)",side=1,col="black",line=2.5) # Add Legend legend(5,7000,legend=c("Beta Gal","Cell Density"),text.col=c("black","red"),pch=c(16,15),col=c(

Re: [R] Replacing values in matrix/dataframe according to changing criteria

2011-11-21 Thread Frederik Lyngsaa Lang
ode is part of? I know they can maximally be part of, say 8 cliques in the large files. I really appreciate your help. Thanks, Frederik * * On Wed, Nov 16, 2011 at 6:39 PM, R. Michael Weylandt < michael.weyla...@gmail.com> wrote: > This is a little ugly, but I think it should

[R] Replacing values in matrix/dataframe according to changing criteria

2011-11-16 Thread Frederik Lyngsaa Lang
ow for each time period and the k-cliques change. I have tried using a loop that references to a table of the values but it does not work. I am sure there is an easy way, however. Hope to get some help, Kind regards, Frederik [[alternative HTML vers

[R] How to check if a value of a variable is in a list

2011-04-19 Thread Frederik Lang
f2 f3 f4 f5* ID1 ID5NAID6ID2 ID53 ID2 ID1ID4ID17 NANA I thought I could check if for each entry, the value goes again in a list of the respondents. How do I do this? Kind rega

Re: [R] Incremental ReadLines

2011-04-17 Thread Frederik Lang
thout looping through for next time I have to parse a large file. Many thanks for your help! Frederik On Thu, Apr 14, 2011 at 4:58 PM, William Dunlap wrote: > [see below] > > From: Frederik Lang [mailto:frederikl...@gmail.com] > Sent: Thursday, April 14, 2011 12:56 PM > To: Wi

Re: [R] Incremental ReadLines

2011-04-14 Thread Frederik Lang
Var2: 6 Var3: 8 Id: 2 missing Id: 3 Var1: true 3 4 5 Var2: 7 Var3: 3 Doing it without looping through I thought my data had to quite systematic, which it is not. I might be wrong though. Thanks again, Frederik On Thu, Apr 14, 2011 at 12:56 PM, William Dunlap wrote: > I have two suggesti

Re: [R] Incremental ReadLines

2011-04-14 Thread Frederik Lang
blocks of observations are of varying length. Thanks again, Frederik On Thu, Apr 14, 2011 at 6:19 AM, Mike Marchywka wrote: > > > > > > > > Date: Wed, 13 Apr 2011 10:57:58 -0700 > > From: frederikl...@gmail.com > > To: r-he

[R] error in R

2010-03-03 Thread frederik vanhaelst
t; n<-5 > for(i in 1:n){ + a2<-1 + for(k in 1: n-1){ + a2<-a2*sin(m[i,k]) + } + b[i,n]<-a2 + } Error in b[i, n] <- a2 : replacement has length zero Is there someone who see the problem? Thanks a lot, Frederik [[alternative HTML version deleted]] __

[R] Random real numbers

2010-03-02 Thread frederik vanhaelst
Hi, How could i generate random real numbers between 0 en 2*pi? Thanks, Frederik [[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

[R] sort columns

2010-02-26 Thread frederik vanhaelst
Hello, i have a 50*100 matrix, with real numbers. How do i sort each column? Now i sort it with a for-loop but this take a lot of time... Thank you, Frederik [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] memisc/mtable: show only estimates (one line)

2009-08-29 Thread Frederik Elwert
2, coef.style="simple") Error in dim(ans) <- newdims : dims [product 1] do not match the length of object [2] Did I make a mistake? Or is it not possible to show only estimates (or, rather, have only one element in a template) with memisc? Thanks, Frederik 8< library(

Re: [R] teaching R

2009-08-27 Thread Frederik Elwert
elpful. JGR[1] is quite good at code completion and shows function signatures as a tooltip. (At least in the Console, I’m not sure this still works in the editor component.) But I’m also quite pleased with R’s readline support, so a plain terminal window gives you quite good code completion. :-) Ch

Re: [R] Issues with factors with duplicate (empty) levels

2009-08-27 Thread Frederik Elwert
Hello again, Just for your information, I think I found a way to work around the problem described below. I don’t know if it’s the most elegant way, but it seems to work. Am Mittwoch, den 26.08.2009, 11:55 +0200 schrieb Frederik Elwert: > Hello! > > I imported a DJI survey[1] from an

[R] Issues with factors with duplicate (empty) levels

2009-08-26 Thread Frederik Elwert
string as the level, which leads to duplicates. I hope the code and output below illustrates the problem. Is it possible to prevent this? I’d still like to use the labels, so using numeric vectors instead of factors is not the best solution. Regards, Frederik > library(foreign) > Data <-

[R] optimal control, maximization with several variables?

2009-02-05 Thread Frederik Noack
Dear all, I would like to solve the following problem, which can be done with optimal control theory or dynamic programming: max(x,y) a*u1+b*u2+c*f1(u2) s.t. 0http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a __ R-help@r-project.org mailing list https:/