[R] Spm package is updated and available on CRAN again

2021-09-07 Thread Jin Li
Dear spm users and all, I am glad to inform you that the spm package is available on CRAN again. It is an updated version with a few bugs fixed. Please note that some functions in the package are not only for spatial predictive modelling but also for predictive modeling in general. Please feel fr

Re: [R] field significance test

2021-09-07 Thread Jim Lemon
HIi Ani, I think you are going to a lot of trouble to get a fairly simple result. # matrix of logicals for positive stat values possig<-df3 > 0 & df4 < 0.05 # now negative stat values negsig<-df3 < 0 & df4 < 0.05 # very clunky plots of column counts barplot(colSums(possig), names.arg=paste0("S",

Re: [R] 'Double to logical' error

2021-09-07 Thread John Tully
thanks i get a red bar to the left of all of this for (indiv_meta in to_include){ graph_results$estimate[j]=results_list[[indiv_meta]]$b graph_results$lb[j]=results_list[[indiv_meta]]$ci.lb graph_results$ub[j]=results_list[[indiv_meta]]$ci.ub graph_results$p[j]=results_list[[indiv_meta]]$

Re: [R] 'Double to logical' error

2021-09-07 Thread John Tully
I’m afraid I don’t know this. I ran rlang to no avail. Any other suggestion? Get Outlook for iOS From: Duncan Murdoch Sent: Tuesday, September 7, 2021 2:27:55 PM To: John Tully ; r-help@R-project.org Cc: McCutcheon, Robert Subject: Re: [R

Re: [R] 'Double to logical' error

2021-09-07 Thread John Tully
Thank you Duncan we now resolved this However I have run into another problem with the section of script below- I am getting in reply Error in nchar(a) : invalid multibyte string, element 1 Thanks SCRIPT SECTION: # fill data frame with meta results j=1 for (indiv_meta in to_include){ g

Re: [R] 'Double to logical' error

2021-09-07 Thread Bill Dunlap
Thanks. If you can still reproduce the problem, what did rlang::last_trace() report? -Bill On Tue, Sep 7, 2021 at 3:37 AM John Tully wrote: > Thank you > > I ran: > > ```{r} > rlang::last_error() > ``` > > Here is the output: > > > Assigned data `single_study_df` must be compatible with e

Re: [R] 'Double to logical' error

2021-09-07 Thread Duncan Murdoch
And what is in the string that triggers the issue? On 07/09/2021 9:23 a.m., John Tully wrote: Thank you Duncan we now resolved this However I have run into another problem with the section of script below- I am getting in reply Error in nchar(a) : invalid multibyte string, element 1 Thanks

Re: [R] SWATplusR package problems

2021-09-07 Thread Duncan Murdoch
On 07/09/2021 7:00 a.m., Wray, Nicholas M via R-help wrote: I am trying to get to grips with the SWAT+ hydrological model and with the package SWATplusR which is meant instantiate SWAT+ into R. I have going through the code supplied on this website https://github.com/chrisschuerz/SWATplusR/blo

[R] SWATplusR package problems

2021-09-07 Thread Wray, Nicholas M via R-help
I am trying to get to grips with the SWAT+ hydrological model and with the package SWATplusR which is meant instantiate SWAT+ into R. I have going through the code supplied on this website https://github.com/chrisschuerz/SWATplusR/blob/master/vignettes/SWATplusR.Rmd I can get so far, as shown b

Re: [R] 'Double to logical' error

2021-09-07 Thread John Tully
Thank you I ran: ```{r} rlang::last_error() ``` Here is the output: Assigned data `single_study_df` must be compatible with existing data. ℹ Error occurred for column `third_ventricle_mn`. x Can't convert from to due to loss of precision. * Locations: 1, 2. Backtrace: Run `rlang::last_trace(