[R] Adding columns to a tibble based on a value in a different tibble

2023-11-04 Thread Alessandro Puglisi
' value is found, it will be included; otherwise, 'NA' will be used. Could you please help me? Thanks, Alessandro [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

[R] Adding column values based on a condition

2019-07-06 Thread Alessandro Puglisi
of the original comment, when parent_id IS NOT NA. I already tried to use mutate + ifelse but my problem is that I have to refer to an author id in a different row than that in which I'm evaluating the if condition... Thanks in advance, Alessandro [[alternative HTML version deleted

[R] Multi step ahead backtest

2019-04-11 Thread Alessandro Vesci
Hi all, this is my first post so sorry if there's something wrong. I'm doing a project for university, and I should have to do the rolling windows forecasting for 2 or more step ahead. Does anyone know a code (or a cycle "for") to overpass the problem of "n.ahead=1"? Thanks a lot for who will

[R] adjusted values

2018-03-22 Thread Cristiano Alessandro
Hi all, I am fitting a linear mixed model with lme4 in R. The model has a single factor (des_days) with 4 levels (-1,1,14,48), and I am using random intercept and slopes. Fixed effects: data ~ des_days Value Std.Error DF t-value p-value (Intercept) 0.8274313 0.007937938

[R] modify additional parameters, glht and summary

2017-03-09 Thread Cristiano Alessandro
Hi all, first of all, thanks a lot in advance for your help. I am running a sequence of post-hoc tests with glht (mutcomp package), but the function summary warns me that the algorithm ends with an error > abseps. $ hr.ph <- glht(hr.lm, linfct = ph_conditional); $ summary(hr.ph) Warning

[R] modify additional parameters, glht and summary

2017-03-07 Thread Cristiano Alessandro
Hi all, first of all, thanks a lot in advance for your help. I am running a sequence of post-hoc tests with glht (mutcomp package), but the function summary warns me that the algorithm ends with an error > abseps. $ hr.ph <- glht(hr.lm, linfct = ph_conditional); $ summary(hr.ph) Warning

[R] regression coefficients

2016-02-17 Thread Cristiano Alessandro
Dear all, I am trying to visualize the regression coefficients of the linear model that the function aov() implicitly fits. Unfortunately the function summary.lm() throws an error I do not understand. Here is a toy example: dv <- c(1,3,4,2,2,3,2,5,6,3,4,4,3,5,6); subject <-

[R] repeated measure with quantitative independent variable

2015-12-14 Thread Cristiano Alessandro
Hi all, I am new to R, and I am trying to set up a repeated measure analysis with a quantitative (as opposed to factorized/categorical) within-subjects variable. For a variety of reasons I am not using linear-mixed models, rather I am trying to fit a General Linear Model (I am aware of

Re: [R] repeated measure with quantitative independent variable

2015-12-14 Thread Cristiano Alessandro
0.05 '.' 0.1 ' ' 1 With just 3 distinct levels, however, you could just make myfactor_nc an ordered factor, not defining the contrasts explicitly, and then you'd get both linear and quadratic contrasts. I hope this helps, John --- John Fox, Professor

[R] tsboot fails on Seasonal Mann-Kendall (seaKen function, wq package)

2011-02-08 Thread Alessandro Bigi
be a 'ts' Any suggestion on how might I change seaKen in order to use it with tsboot? Or how might I write my statistic in tsboot? I am using: R version 2.11.1 (2010-05-31) on a Debian testing x86_64 Thanks, regards, Alessandro -- ~~ Alessandro

Re: [R] R scheduling request

2011-01-19 Thread Alessandro Oggioni
Thanks Greg, work i'm lost a { after function (). Alessandro 2011/1/19 Greg Snow greg.s...@imail.org: You could include a call to the source function that will read and run an R script (I have not tried this, but don't see any reason that it would not work). -- Gregory (Greg) L. Snow Ph.D

Re: [R] R scheduling request

2011-01-18 Thread Alessandro Oggioni
Many thanks Greg! I try to use tcltk2 and tclTaskSchedule function but in argument expr is possible to insert a R script? Have you an example? Alessandro Il 17 gennaio 2011 22.02.51 UTC+1, Greg Snow greg.s...@imail.org ha scritto: You could write a batch file and then have your OS schedule

[R] R scheduling request

2011-01-15 Thread Alessandro Oggioni
Dear all, I have used R.rps to produce a Google API chart (googleVis) with a data request in another server. But i don't understand how is possible to scheduling a request data to the server and after produce a update of the charts. Thanks in advance. Alessandro Oggioni

Re: [R] memory problem on Suse

2009-12-16 Thread Ambrosi Alessandro
Dear all and dear Marc, it seems you hit the target. I checked as you suggested, and... it is a 32 bit version! Now I'm fixing it. Thank you very much. Alessandro From: Marc Schwartz [marc_schwa...@me.com] Sent: 11 December 2009 17:02 To: Ambrosi

[R] memory problem on Suse

2009-12-11 Thread Ambrosi Alessandro
suppose I have enough resources to manage these objects and data files Any suggestions or hints will be really appreciated! Many thanks in advance. Alessandro __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] compute differences

2009-09-21 Thread alessandro carletti
E-E WHERE CASE IS THE COUPLE OF ELEMENTS CONSIDEREDM AND DIFF IS THE computed DIFFERENCE between their values. Could you give me suggestions? Alessandro Carletti __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] windrose (circular package) odd table and windrose plot

2009-07-03 Thread Alessandro Bigi
for magnitude are not assigned as I was expected (mags are up to 10) Frequency in windrose are .6 for each one of the three non-empty column What am I doing wrong in here? Thanks, Alessandro ~~ Alessandro Bigi E-mail: a.b...@bham.ac.uk Tel: +44 (0)12141 47297 Location: Public Health 209

[R] problem with Power function on a power my result is inf

2009-04-27 Thread Alessandro
Dear user, I have a problem with a power because after a value the result is inf Mydata - data.frame(plot=c(11,12,13,14,15, 16, 21, 22, 23, 24, 25, 26, 31, 32,33, 34), SumH=c(17573.029,22572.162,19659.984,13952.781,6996.924,16049.598,13869.409,

[R] Help to select the raw in a data.frame with the max value

2009-04-26 Thread Alessandro
Dear User, thank for the attention. I have a data.frame with 5 columns (ex:ID, a1,a2,a3,a4) and 1000 rows. I wish to find the absolute max value for all data.frame and save a new data.frame with the row where is that value. Ex: ID: 1,2,3,4,5,6,7,8,9,10 a1:1,2,3,4,5,6,7,8,9,10

[R] HELP to cbind several data.frame with a LOOP

2009-04-09 Thread Alessandro
Dear R users, thank for help. SORRY I am seeing in google a maillist but I didn't find a solution for my problem I have several txt file (with the same number of column and HEADER) to merge together, this is an example: Tableanalysis_firenze_10.txt Tableanalysis_firenze_20.txt

[R] merge 2 txt file

2008-11-04 Thread Alessandro
Hi all, I have two txt file with X,Y,Z column and I need to merge together I tried file_all - merge(file1.txt,file2.txt) but I don't sure about the result. Is It this code correct? Thanks Ale [[alternative HTML version deleted]]

[R] get coordinates to multi file

2008-10-28 Thread Alessandro
Hi All, I need to understand How I could to get coordinate to multi-files in a some code: I import X,Y,Z txt files (=vegetation_2.txt, vegetation_3.txt, vegetation_4.txt, etc etc.) with for(i in 2:4) assign(paste('vegetation',i,sep='_'),read.delim(paste('vegetation_',i,'.txt'

[R] change 3x3 cell size in 1x1 cell size

2008-08-13 Thread Alessandro
Hi All, I wish to change 3x3 pixel size in 1x1 pixel size my grid. I have this fuction: dem.area - ([EMAIL PROTECTED],[EMAIL PROTECTED],1])*([EMAIL PROTECTED],[EMAIL PROTECTED],1]) dem.pixelsize - round(5*sqrt(dem.area/length(ground$Z)),0) dem.pixelsize where is the input to change?

[R] import/export txt file

2008-08-08 Thread Alessandro
Hi All, I have 2 questions: 1. Import: when I import my txt file (X,Y and Z) in R with testground - read.table(file=c:/work_LIDAR_USA/R_kriging/ground26841492694149.txt, header=T), I lost the 4 number after the point (.). does It possible add in the code the possibility to read the 4

[R] read.table question

2008-08-08 Thread Alessandro
Hi All. I have a file txt with 3 columns (X, Y and Z). every rows has 4 decimal place (i.e. x.). I use read.table to import the data in R, but with summary(), I don't see the decimal place after the dot. Is there any way for me to preserve the information? testground - read.table

[R] normal score fuction

2008-08-06 Thread Alessandro
Hi all, is there a Normal score(nscore) function to download? Because when I try: rsam.sc - nscore(rsam) Error: don't find nscorefunction Thanks Ale [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] LIDAR Problem in R (THANKS for HELP)

2008-08-05 Thread Alessandro
Hi All, I am a PhD student in forestry science and I am working with LiDAR data set (huge data set). I am a brand-new in R and geostatistic (SORRY, my background it’s in forestry) but I wish improve my skill for improve myself. I wish to develop a methodology to processing a large data-set

[R] R: [R-sig-Geo] LIDAR Problem in R (THANKS for HELP)

2008-08-05 Thread Alessandro
My notebook is: Hp Pavilion dv6700 notebook PC Intel() Core ™2 Duo CPU T9300 °2.50gHz 2,50GHz RAM: 4.00 GB OS: 32bit Windows (TERRIBLE!) VISTA Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Matt Oliver Inviato: martedì 5 agosto 2008 12.02 A: Alessandro Cc: r

[R] I: R: [R-sig-Geo] R: LIDAR Problem in R (THANKS for HELP)

2008-08-05 Thread Alessandro
¬ 5 agosto 2008 13.24 A: Alessandro Oggetto: Re: R: [R-sig-Geo] R: LIDAR Problem in R (THANKS for HELP) If an extra GB of memory will solve the problem, you might try doing a google search on '3 GB Switch Windows Vista' and see if it's possible to do such a thing (it probably is possible

[R] log and Log Histogram

2008-08-04 Thread Alessandro
Hi All, I have a X,Y and Z text file. I wish modify the X value in a logarithmic value and to plot all log(Z) with Histogram. I try different code but I have a problem to find the solution. Thank you very much Ale [[alternative HTML version deleted]]

[R] R: log and Log Histogram

2008-08-04 Thread Alessandro
logHist(change) Error in hist.default(x, plot = FALSE) : 'x' must be numeric THANK Ale -Messaggio originale- Da: David Scott [mailto:[EMAIL PROTECTED] Inviato: lunedì 4 agosto 2008 16.30 A: Alessandro Cc: r-help@r-project.org Oggetto: Re: [R] log and Log Histogram On Mon, 4 Aug 2008

[R] normalize a data-set

2008-08-04 Thread Alessandro
Dear All, I have a dataset (X,Y and Z) with no-normalize distribution (I saw with qqnorm) but with Gaussian shape. I am a not good statistic and I wish to know a method to normalize Z values. Thanks for help. It's very useful for my PhD ALe [[alternative HTML version

[R] anisotrophy in fit.variogram problem

2008-07-31 Thread Alessandro
Hi All, I wish to create a directional variograms at (0, 45, 90, 135) degrees from north (y-axis). v = variogram(Z~1, subground, cutoff=1800, width=80, alpha=c(0, 45, 90, 135)) 90 and 45 deg. look good but I don't understand in the fit.variogram how to create a ansi=c(X) with 90

[R] anisotropy in vgm model. HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-07-31 Thread Alessandro
, subground, cutoff=1800, width=80, alpha=c(0, 45, 90, 135)) v.fit = fit.variogram(v, vgm(model=Lin, anis=c(?))) Thank you Alessandro [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] Random subset

2008-07-30 Thread Alessandro
Hi all, I wish to do a random subset (i.e. 200 or 300 points) from a dataset, but I don't find the right code in R. Thanks for help alessandro [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] question about krige code in R

2008-07-30 Thread Alessandro
Hi All, I have this question. I wish to create a kriging map with R but I haven't a auxiliary map. I have only one txt file with X, Y and Z records. When I use this code: plot(variogram(Z~sqrt(X+Y), subground, cutoff=1800, width=10)) subground.or - variogram(Z~sqrt(X+Y), subground,

[R] Flexible semivariogram in R (HELP)

2008-07-29 Thread Alessandro
help but I did't find nothing about this model in R. Thank you for Help Alessandro [[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] wave model semivariogram

2008-07-28 Thread Alessandro
Hey All, I have a question about Wave model in R. I have a wave model shape, but I don't know the code in R to fit my semivariogram with wave model. Thanks alessandro [[alternative HTML version deleted]] __ R-help@r-project.org

[R] create multi windows plot at the same time

2008-07-25 Thread Alessandro
Ciao All I'd like to generate 4 windows plot to compare different relationship at the same time in R. Each plot code is : Plot(v1) Plot(v2) Plot(v4) Plot(v4) But I did not find a right code in R. Ale [[alternative HTML version deleted]]

[R] R: create multi windows plot at the same time

2008-07-25 Thread Alessandro
2008 12.13 A: [EMAIL PROTECTED] Cc: Alessandro; r-help@r-project.org Oggetto: Re: [R] create multi windows plot at the same time or quartz() or windows() you could also use par(mfrow=c(2,2)) On Fri, Jul 25, 2008 at 3:05 PM, [EMAIL PROTECTED] wrote: Hi, you only need to add x11() in front

[R] experimental semivariogram

2008-07-21 Thread Alessandro
Hey all, I am a PhD student and I have a points dataset with X, Y and Z (height) to create a Kriging Map. I am finding the code in R to create experimental semivariogram, but I am a brand new in R and I did't find the code. Thank you Alessandro

[R] gstat problem with lidar data

2008-07-16 Thread Alessandro
Hey, I am a PhD student in forestry science, and I am a brand new in R. I am working with lidar data (cloud points with X, Y and Z value). I wish to create a spatial map with kriging form points cloud. My problem is the Big data-set (over 5,000,000.00 points) and I always went out of memory.

[R] R: R: gstat problem with lidar data

2008-07-16 Thread Alessandro
16 luglio 2008 14.23 A: Alessandro Cc: r-help@r-project.org Oggetto: Re: R: [R] gstat problem with lidar data On Wednesday 16 July 2008, Alessandro wrote: Hey Dylan, Thank you. I wish to test for my PhD: TIN (ok, with Arcmap), IDW (ok, with Arcmap) and kriging model (and other if it is possible