Re: [R] Error when calling (R 4.0.x on Windows) from Python

2021-01-29 Thread Marcel Baumgartner
in another software. Best regards Marcel Le 2021-01-27T23:14:36.000+01:00, Bill Dunlap a écrit : > I tried the following change, that adds quotes if the argument does >  > not include ">".

[R] Error when calling R from Python

2021-01-25 Thread Marcel Baumgartner
-f code.R --args "~/file.txt" 1> "~/log.txt" 2>&1". The issue is that the log.txt file is not created when running R 4.x.x. The same code works perfectly fine with R 3.6.x. Any idea what's going wrong as of version 4? Regards Marcel 

[R] Call to R.exe in a Script fails since the upgrade from R 3.6.1 to R 4.0.2

2020-10-16 Thread Marcel Baumgartner
something has changed in R 4.* that could cause this issue? Thanks for your help. Happy to do a Skype/Teams/Zoom session anytime! Best regards Marcel Baumgartner [[alternative HTML version deleted]] __ R-help@r-project.o

[R] R squared change value for a moderation effect

2015-07-13 Thread Marcel Meyer
squared change value, which gives me the effect size of the interaction effect. Any advice on this would be much appreciated. Best, Marcel Reference: Hayes, A. F., Matthes, J. (2009). Computational procedures for probing interactions in OLS and logistic regression: SPSS and SAS implementations

[R] Output of the probemod package

2015-07-13 Thread Marcel Meyer
would be much appreciated. Best, Marcel [[alternative HTML version deleted]] __ 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

[R] Avoid R shell process echoes of piped inputs from a different programming language on Linux

2015-01-14 Thread marcel Austenfeld
Dear R developers,   i have rather a developer question.   From an external application (different programming language)  i contact R through pipes (process pipes - exec).   On Linux i use the R (bash) script to start the R process which will be available in a custom shell.   If i pipe a

[R] Event after a package is loaded

2014-10-09 Thread marcel Austenfeld
Hello, i would like to call a self defined R function after a package (not a specific one - library (anyAvailablePackage)) has been loaded into the R environment. I there a general method available in R which can be used for that? Any help is appreciated.  

Re: [R] Event after a package is loaded

2014-10-09 Thread marcel Austenfeld
Thank you for the fast reply! Best regards Marcel   Gesendet: Donnerstag, 09. Oktober 2014 um 13:54 Uhr Von: Frederic Ntirenganya ntfr...@gmail.com An: Duncan Murdoch murdoch.dun...@gmail.com Cc: marcel Austenfeld marcel...@web.de, r-help@r-project.org Betreff: Re: [R] Event after a package

[R] Set Conditional Breakpoint with setBreakpoint Function

2014-07-25 Thread marcel Austenfeld
Marcel References 1. http://www.stats.uwo.ca/faculty/murdoch/software/debuggingR/debug.shtml __ 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

[R] Set Conditional Breakpoint with setBreakpoint Function

2014-07-25 Thread marcel Austenfeld
Thank you very much. Exactly the information i needed. I always tried quote(if (x 10) browser()) and not tracer=quote(if (x 10) browser()) as the argument. Now it works. __ R-help@r-project.org mailing list

Re: [R] Performing operations only on selected data

2012-11-25 Thread Marcel Curlin
Thank you, this works very well. My only remaining question about this is about how ifelse is working; I understand the basic syntax (df$condition2 gets assigned the value *runif(nrow(df1[df1$condition1=1,]),0,1)* or the value *df$condition1* depending on whether or not df$condition1 meets the

[R] Performing operations only on selected data

2012-11-24 Thread Marcel Curlin
I spent some time on this simple question, also searched the forum, eventually hacked my way to an ugly solution for my particular problem but I would like to improve my coding: I have data of the form: df - expand.grid(group=c('copper', 'zinc', 'aluminum', 'nickel'), condition1=c(1:4)) I would

[R] Calculating number of elapsed days from starting date

2012-09-27 Thread Marcel Curlin
Hi I have data for events in rows, with columns for person and date. Each person may have more than one event; tC - textConnection( Person date bob 1/1/00 bob 1/2/00 bob 1/3/00 dave1/7/00 dave1/8/00 dave1/10/00 kevin 1/2/00 kevin 1/3/00 kevin 1/4/00 ) data -

Re: [R] Loop for multiple plots in figure

2012-06-27 Thread Marcel Curlin
/legend for the subplots. It seems that the title is called for each datapoint, and then printed one below the other in the plot. Is there any way at all to get a specific legend/title/text on each subplot? Marcel -- View this message in context: http://r.789695.n4.nabble.com/Loop-for-multiple-plots

Re: [R] Loop for multiple plots in figure

2012-06-26 Thread Marcel Curlin
This solution works really nicely I learned much by working through it. However but I am having trouble with subplot formatting; setting main=d$Subject results in the correct title over each plot but repeated multiple times. Also I can't seem to format the axis labels and numbers to reduce the

[R] Loop for multiple plots in figure

2012-06-25 Thread Marcel Curlin
Hello, I have longitudinal data of the form below from N subjects; I am trying to create figure with N small subplots on a single page, in which each plot is from only one subject, and in each plot there is a separate curve for each value of param1. So in this case, there would be four plots on

Re: [R] HOW TO PASS MY JAVA ARGUMENT INTO RSCRIPT FILE

2011-10-10 Thread Marcel.
Hello, use the rJava library to execute R code from Java or transfer values from Java to R: http://www.rforge.net/rJava/ http://www.rforge.net/rJava/ -- View this message in context: http://r.789695.n4.nabble.com/HOW-TO-PASS-MY-JAVA-ARGUMENT-INTO-RSCRIPT-FILE-tp3889327p3889457.html Sent

Re: [R] experimenting (like Weka Experimenter)

2011-10-05 Thread Marcel.
Hello, i think you are speaking of a general workflow environment which can execute R methods and arrange different statistical methods in a flow (graph). Here is a list of links of such (OpenSource) programms. *Knime:* http://www.knime.org/ http://www.knime.org/ *RapidMiner*

[R] regression on data subsets in datafile

2011-09-12 Thread marcel
in order to have the first day for each person be time = 0, and the remaining dates to be handled as days since time 0. Also, is there a way to add the resulting slopes to the data set as a new column? Thanks, Marcel -- View this message in context: http://r.789695.n4.nabble.com/regression-on-data

[R] Plot Frame color and linewidth

2011-07-31 Thread marcel
I have a figure with a lattice plot and a basic plot. Is there a way to select the color and line width of the surrounding boxes? # Data tC - textConnection( Time Type1 Type2 Type3 1.3 .50 .10 .40 4.5 .45 .20 .35 5.2 .40 .30 .30 ) data1 - read.table(header=TRUE, tC) data2 -

Re: [R] Lattice: choice of symbol and symbol position in legend

2011-07-29 Thread marcel
This solution worked well, and the key section under ?xyplot was very helpful in adjusting lots of details in the key, including position and even the distance between text and key symbols, using between. One thing I didn't see described very well was how to toggle from a transparent key symbol to

Re: [R] Lattice: distance of tick labels from axis line

2011-07-26 Thread marcel
Thank you, this works well - overall, I now have pretty good control over the appearance of the L-hand side of the plot and relative distance between axis line, ticks, tick labels and axis title by adjusting pad1, pad2 and the plot position in the print statement. I am sure it is not the best

[R] Lattice: choice of symbol and symbol position in legend

2011-07-26 Thread marcel
I am making final adjustments to a multi-plot figure using basic and lattice. In the lattice plot, I would like to include a legend that matches the format of the legends in the other plots, which consist of appropriately colored squares (pch 22) followed by text. In lattice, I was able to get a

[R] Lattice: distance of tick labels from axis line

2011-07-25 Thread marcel
Hi, I am doing fine editing on a lattice plot, now have the Y-axis title in the correct position, but the tick labels are too far from the axis line. I looked at the help documentation but could not find how to change this. This seems to be easy to do in basic plots with at=c(value1, value2,

Re: [R] Lattice: place ticks only on y-axis

2011-07-23 Thread marcel
Working! Many thanks, good solutions -- View this message in context: http://r.789695.n4.nabble.com/Lattice-place-ticks-only-on-y-axis-tp3684094p3688167.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

Re: [R] Lattice: distance of Y-axis label from plot

2011-07-23 Thread marcel
Got it working using layout.widths = list(ylab.axis.padding = 0.5))) and adjusting the print position in print(plot1, position=c(-0.018,0.221,0.741,0.466)). Thx -- View this message in context: http://r.789695.n4.nabble.com/Lattice-distance-of-Y-axis-label-from-plot-tp3686855p3688172.html

Re: [R] Lattice: place ticks only on y-axis

2011-07-22 Thread marcel
I notice that with this solution there are still y-axis tick marks on both sides of the plot. Is there a way to remove the ones on the right side? -- View this message in context: http://r.789695.n4.nabble.com/Lattice-place-ticks-only-on-y-axis-tp3684094p3686638.html Sent from the R help mailing

[R] Lattice: distance of Y-axis label from plot

2011-07-22 Thread marcel
Basic question: I looked around quite a bit, still having a little trouble manipulating the distance between the Y-axis label and the plot. In this case, I would like to move the Y axis title closer to the plot. # Data tC - textConnection( Time Type1 Type2 Type3 1.3 .50 .10 .40 4.5 .45 .20 .35

[R] Lattice: place ticks only on y-axis

2011-07-21 Thread marcel
I am using lattice for a bar plot, having a little trouble removing ticks, tick labels from x-axis, but keeping them on the y-axis. I looked around quite a bit (http://tolstoy.newcastle.edu.au/R/e7/help/09/06/1733.html, help pages, etc), tried variations of scales = list(alternating = c(0,0),

Re: [R] Lattice: place ticks only on y-axis

2011-07-21 Thread marcel
Works perfectly, thank you. -- View this message in context: http://r.789695.n4.nabble.com/Lattice-place-ticks-only-on-y-axis-tp3684094p3685625.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] Stacked bar plot of frequency vs time

2011-07-15 Thread marcel
for all of your thoughts. Marcel Marcel -- View this message in context: http://r.789695.n4.nabble.com/Stacked-bar-plot-of-frequency-vs-time-tp3659715p3669311.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

Re: [R] Plot command overwrites existing plot in multiple figure plot

2011-07-13 Thread marcel
lviewport(x=unit(1, npc) - unit(1, inches), y=0.5, width=0.2, height=0.5, just=c(right, centre))) print(plot3, position=c(0.01, 0, 1, 0.5)) Any thoughts about how to put the last pieces together would be very much appreciated. Marcel -- View this message in context: http://r.789695.n4

[R] Stacked bar plot of frequency vs time

2011-07-11 Thread marcel
on the x-axis is irregular. Is this possible in R? Many thanks, Marcel -- View this message in context: http://r.789695.n4.nabble.com/Stacked-bar-plot-of-frequency-vs-time-tp3659715p3659715.html Sent from the R help mailing list archive at Nabble.com. __ R

[R] Plot command overwrites existing plot in multiple figure plot

2011-07-11 Thread marcel
, panel=panel.barchart, ylim=c(-0.05,1.05), xlim=c(0,6))) Is there any way around this problem? Marcel -- View this message in context: http://r.789695.n4.nabble.com/Plot-command-overwrites-existing-plot-in-multiple-figure-plot-tp3661245p3661245.html Sent from the R help mailing list archive

[R] linear regression in a ragged array

2011-03-21 Thread Marcel Curlin
subject separately. It seems like I should be able to use the tapply function as you do for simple operations (like finding a mean of var1 for each subject), but I am not sure of the correct syntax for this. Is there a way to do this? Many thanks, Marcel -- View this message in context: http://r

[R] Change panel background color in spplot()

2011-03-05 Thread Marcel J.
Hi! How does one change the background color of the map-panel in spplot()? Example: library(sp) data(meuse.grid) gridded(meuse.grid) = ~x+y spplot(meuse.grid, part.a) How would I get another background-color for the map-panel (but not for the whole plot) here? Thank you! Marcel

Re: [R] Change panel background color in spplot()

2011-03-05 Thread Marcel J.
, Marcel Am 2011-03-05 15:23, schrieb Jannis: I would guess it works the same as for standard trellis graphs. Googleing: trellis R change panel background gives you links to some discussions about these issues. HTH Jannis On 03/05/2011 01:06 PM, Marcel J. wrote: Hi! How does one change

[R] make an own (different) color legend with spplot()

2011-03-04 Thread Marcel J.
factors, I want just a few ticks in the legend (and also just a few labels). How can this be achieved? Thank you! Marcel __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] make an own (different) color legend with spplot()

2011-03-04 Thread Marcel J.
factors, I want just a few ticks in the legend (and also just a few labels). How can this be achieved? Thank you! Marcel __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] Modeling Binary x Binary Interactions with mlogit (and interpretation)

2011-01-27 Thread Marcel Gerds
the changing sign of the coefficients when I change the reference level. This would imply that females always prefer the opposite of males. Clearly, this cannot be. I imagine that I am misinterpreting this issue and I would be grateful for any help on this. Best regards, Marcel -- Marcel Gerds, M.Sc

[R] Recoding -- test whether number begins with a certain number

2010-11-03 Thread Marcel Gerds
with a 6 is labeled as agri. My problem is that I cannot find a test which I can use for that purpose. I would really appreciate any help on that subject. Thank you. Best regards Marcel Gerds __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] trouble with histograms

2010-10-26 Thread Marcel Curlin
have to use hist to get the frequencies of each, and I have figured out how to use breaks to make bins; bins=seq(0.5,6.5,by=1) hist(data$A, header=T, sep=\t, breaks=bins) Lots of trouble from then on, though, and I just can't get this into a usable plot. Any help appreciated. Marcel -- View

[R] R code output issues

2010-09-03 Thread Marcel Curlin
of the data, or why the write commands are ignored when embedded in the code and called by source(etc CODE rm(list = ls(all = TRUE)) alldata -read.table(/Users/marcel/Desktop/V1V2TransmAnalysis/3_transmissiondata, header=T) #sink(/Users/marcel/Desktop/V1V2TransmAnalysis/4_output) data

Re: [R] R code output issues

2010-09-03 Thread Marcel Curlin
Thanks for the input Adding print took care of the first problem. The output looks like what I would expect, so I think the code is doing what I would like it to for the first 44 observations. print(results.df) DR D.1 R.1 V1V2dif V1V4dif 1 68.92500

[R] while loop until end of file

2010-08-29 Thread Marcel Curlin
this out with the manual and forum searches. Any suggestions appreciated. Marcel -- View this message in context: http://r.789695.n4.nabble.com/while-loop-until-end-of-file-tp2399544p2399544.html Sent from the R help mailing list archive at Nabble.com. __ R

[R] Choice Design -- partial profile

2010-08-11 Thread Marcel Gerds
with the R packages I checked so far. Does any of you know about a package which provide such a functionality or can give some hints about programming it? Thanks in adavance. Regards Marcel -- __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] Formatting numerical output

2010-04-24 Thread MARCEL CURLIN
a lot but could not find much on this. Any help on these specifics or general comments on formatting numerical output greatly appreciated. thanks, Marcel __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] Optim and hessian

2009-04-29 Thread Marcel Rodrigues Lopes
Hi, my name is Marcel R. Lopes. My problem is, I made a code to calculate the estimates of a Cox model with random effects. Used to optimize the R command for this. The estimates were calculated correctly, but the Hessian matrix does not have good values. The same thing was done in SAS and gave

[R] Influence of subdataset

2007-11-29 Thread Marcel Sandow
of the whole dataset with the slope of a subdataset consisting of the maximum values of 10 equal x-axis classes. any suggestions? Thanks Marcel __ Marcel Sandow Leibniz Institute of Marine Sciences - IFM-Geomar

[R] axis title on two lines

2007-10-30 Thread Marcel Sandow
  __ Marcel Sandow Leibniz Institute of Marine Sciences - IFM-Geomar Experimental Ecology: Foodwebs Düsternbrooker Weg 20 24105 Kiel Germany Fon: +49-431-600-4404 Fax: +49-431-600-1515 Homepage: http://www.ifm-geomar.de E-mail: [EMAIL PROTECTED

Re: [R] axis title on two lines

2007-10-30 Thread Marcel Sandow
] axis title on two linesAn: Marcel Sandow , [EMAIL PROTECTED] You might want to replace the xlab with mtext? aa - 1:10 plot(aa, xlab='') mtext(label one \n label number two , side=1, line=3) --- Marcel Sandow wrote: Hello,I am searching for the possibility to make a two lines axis title

Re: [R] extract year or month from date

2007-10-09 Thread Marcel Sandow
guide http://www.R- project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ Marcel Sandow Leibniz Institute of Marine Sciences - IFM-Geomar Experimental Ecology: Foodwebs