Re: [R] input string ... cannot be translated to UTF-8, is it valid in 'ANSI_X3.4-1968'?

2021-04-22 Thread Duncan Murdoch
On 22/04/2021 9:25 p.m., Spencer Graves wrote: Hello: What if anything should I do regarding notes from either "load" or "attach" that, "input string ... cannot be translated to UTF-8, is it valid in 'ANSI_X3.4-1968'?"? First, ANSI_X3.4-1968 is an official name for for a version

[R] input string ... cannot be translated to UTF-8, is it valid in 'ANSI_X3.4-1968'?

2021-04-22 Thread Spencer Graves
Hello: What if anything should I do regarding notes from either "load" or "attach" that, "input string ... cannot be translated to UTF-8, is it valid in 'ANSI_X3.4-1968'?"? I'm running R 4.0.5 under macOS 11.2.3; see "sessionInfo()" and detailed instructions below on the precise

Re: [R] Conditional extraction of values in a data.frame in r

2021-04-22 Thread Jim Lemon
Hi Marna, This may be what you want: get_latest<-function(x,format="%m/%d/%Y") { x<-unlist(x) x[nchar(x)==0]<-NA if(all(is.na(x))) return(NA) else return(format(max(as.Date(x,format),na.rm=TRUE),format)) } daT$output1<-apply(daT[,2:4],1,get_latest) The empty value in daT gave a bit of

Re: [R] Occurrence by season

2021-04-22 Thread ani jaya
Thank you very much Mr. Eric and Mr. Bert. It was really helpful. Best, Ani On Thu, Apr 22, 2021 at 3:36 AM Bert Gunter wrote: > > Simpler, and no loops needed per column: > ## this makes the idea clear > > x <- 1:12 > > (x %% 12) %/% 3 ## first modulo, then integer divide > [1] 0 0 1 1 1 2 2

[R] Conditional extraction of values in a data.frame in r

2021-04-22 Thread Marna Wagley
Hi R Users, I have been struggling to extract the data based on conditional values in different columns. I have a very big dataset (rows) and a couple of columns. here an example of the dataset is: daT<-structure(list(ID = c("id1", "id2", "id3", "id4", "id5", "id6", "id7"), First_detectiondate =

Re: [R-es] Fechas

2021-04-22 Thread Javier Marcuzzi
Estimada Jaqueline La fecha y hora estarían correctas, por lo menos en apariencia, el problema puede ser UTC y no UTC, me refiero al pasar la hora UTC a la hora local, entre las 14 y las 18 horas está la diferencia horaria, por ejemplo +1, +5, -7, habría que ver la configuración de horario en

Re: [R] Fwd: Create new polygon from a polygon

2021-04-22 Thread Greg Minshall
Javad, you might think of asking in the r-sig-geo e-mail list? : r-sig-...@r-project.org cheers. __ 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

[R] [R-pkgs] gmgm: Gaussian Mixture Graphical Model Learning and Inference

2021-04-22 Thread jeremy.roos
Dear R users, I am happy to announce that gmgm 1.0.2 is available on CRAN: https://cran.r-project.org/package=gmgm gmgm provides a complete framework to create, manipulate, learn the structure and the parameters, and perform inference in Gaussian mixture graphical models, which include