[R] interpret a p-value result as a significance of a linear regression in terms of sigmas

2018-06-20 Thread jean-philippe
so, as extension, for a multivariate linear regression for which the p-value associated to F statistics is not the same as the p-value for each variable of the regression. Thanks in advance, Best Regards Jean-Philippe Fontaine -- Jean-Philippe Fontaine PhD Student in Astroparticle Physics

Re: [R] problem with the behaviour of dashed lines in R plots

2017-12-04 Thread jean-philippe
hi Sarah, Thanks a lot for having taken time to answer me and for your reply. I wonder how I missed this solution. Indeed plotting the line with the 2 extreme data points works perfectly. Best, Jean-Philippe Fontaine On 04/12/2017 18:30, Sarah Goslee wrote: It's because yo

[R] problem with the behaviour of dashed lines in R plots

2017-12-04 Thread jean-philippe
ype="p", col="black", mgp=c(2,0.5,0),cex.lab=1.6,cex=2, xlab = "", ylab = "",xlim=range(c(1.2,1.7)),ylim=rev(range(c(-19,-8))),pch=17) box(lwd=3) dev.off() Thanks in advance, best regards Jean-Philippe Fontaine -- Jean-Philippe Fontaine PhD Student in

Re: [R] R basic

2017-11-09 Thread jean-philippe
Hi, Since you didn't provide us any detail of what you tried to do so far, I can point you out to the dplyr library. It will make your life easier while dealing with dataframes (well at least it makes mine easier). Cheers Jean-Philippe On 09/11/2017 16:05, Hye Joon Yoon wrote: Can a

Re: [R] dealing with a messy dataset

2017-10-05 Thread jean-philippe
l now I know how to deal with fixed-width files :) Cheers Jean-Philippe On 05/10/2017 18:42, jim holtman wrote: You should be able to use that header information to create the correct parameters to the read_fwf function to read in the data. Jim Holtman Data Munger Guru What is the problem tha

Re: [R] dealing with a messy dataset

2017-10-05 Thread jean-philippe
. 4 MESSIER031 2 4 1.75 Cheers, thanks again Jean-Philippe On 05/10/2017 16:49, jim holtman wrote: start <- c(1, 20, 35, 41, 44, 48, 53, 59, 64, 69, 75, 77, 82, 87, +92, 114, 121, 127) > read_fwf(input, fwf_widths(diff(start))) -- Jean-Philippe Fontaine PhD S

Re: [R] dealing with a messy dataset

2017-10-05 Thread jean-philippe
Jean-Philippe On 05/10/2017 16:19, Boris Steipe wrote: Is this a fixed width format? If so, read.fwf() in base, or read_fwf() in the readr package will solve the problem. You may need to trim trailing spaces though. B. On Oct 5, 2017, at 10:12 AM, jean-philippe wrote: dear R-users,

[R] dealing with a messy dataset

2017-10-05 Thread jean-philippe
s since R splits the name of the galaxies into 2 columns because of the space. Best Regards, thanks in advance Jean-Philippe Fontaine -- Jean-Philippe Fontaine PhD Student in Astroparticle Physics, Gran Sasso Science Institute (GSSI), Viale Francesco Crispi 7, 67100 L'Aquila, Italy Mobile: +

Re: [R] draw stripes in a circle in R

2017-06-15 Thread jean-philippe
as I wanted (so as a scalar), I don't see any difference in the result when I call this function draw.circle2, the stripes are not drawn inside the circle. I don't know if it is normal. Thanks, best Jean-Philippe On 14/06/2017 19:29, David Winsemius wrote: On Jun 14, 2017, at

[R] draw stripes in a circle in R

2017-06-14 Thread jean-philippe
off() It looks a bit ugly since they are not real data, but it is the simplest MWE example that I found. Thanks, best Jean-Philippe -- Jean-Philippe Fontaine PhD Student in Astroparticle Physics, Gran Sasso Science Institute (GSSI), Viale Francesco Crispi 7, 67100 L'Aquila, Italy Mobile: +3

[R] reshaping a large dataframe in R

2016-11-28 Thread jean-philippe
on the net). In python, we can do this with a simple command numpy.array(dataGaus[[1]]).reshape(-1,4). For some reasons, I am doing my analysis in R, and I would like to know if there is a function which does the same thing as the reshape(-1,4) of numpy in Python? Thanks in advance, best Jea

[R] Question on RData and Rhistory extentions

2011-01-19 Thread Jean-Philippe Puyravaud
Hi, It seems simple but I could not find the solution on the R site. I can't save properly ".RData" and ".Rhistory" in Windows 7 folders. I get files with no extension. Thanks in advance for your help. JP Jean-Philippe Puyravaud 9A Frederic O