[R] Using random effects on gamm4

2020-05-16 Thread Ramiro Barrantes
My basic question is, how do I specify random effects in gamm4 properly? Reproducible example: library(gamm4) library(ggplot2) residualNoise <- 20 blockNoise<- 10 nBlocks <- 3 n<-100 df <- data.frame(x=rep(1:n,nBlocks),y=rep(0.01*(1:n)^2,nBlocks)) df$block <- rep(1:nBlocks,each=n) blockNoise <-

Re: [R] Classification of wind events

2020-05-16 Thread Jeff Newmiller
Please run your code before posting it... you forgot the quotes in your main_dir column. first_day_POSIX <- as.POSIXct("2020-02-19-00-00", format="%Y-%m-%d-%H-%M") last_day_POSIX <- as.POSIXct("2020-02-20-00-00", format="%Y-%m-%d-%H-%M") mydf <- data.frame(data_POSIX=seq(first_day_POSIX, last_day

Re: [R] Extracting files per types of data file

2020-05-16 Thread Pedro páramo
Its perfect¡¡¡ Many thanks to all. El sáb., 16 may. 2020 a las 12:46, Jim Lemon () escribió: > Hi Pedro, > Will this be sufficient? > > ppdf<-read.table(text="Name ; Surname; Code; age; CP; \r\n > Oscar ; example ; 1; 42; 4857; \r\n > Maria; Ex3; 2; 33; 879;\r\n > Luz; pruve; 1; 42; 4785; \r\n",

[R] Recall: facets

2020-05-16 Thread Jeff Reichman
Jeff Reichman would like to recall the message, "facets". __ 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-project.org/posting-guide.html and pr

[R] facets

2020-05-16 Thread Jeff Reichman
__ 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-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible cod

Re: [R] Extracting files per types of data file

2020-05-16 Thread Jim Lemon
Hi Pedro, Will this be sufficient? ppdf<-read.table(text="Name ; Surname; Code; age; CP; \r\n Oscar ; example ; 1; 42; 4857; \r\n Maria; Ex3; 2; 33; 879;\r\n Luz; pruve; 1; 42; 4785; \r\n", header=TRUE,sep=";",stringsAsFactors=FALSE) write.csv(ppdf[ppdf$age==1,1:5],file="ppdf1.csv") write.csv(ppdf

[R] Extracting files per types of data file

2020-05-16 Thread Pedro páramo
Hi all, For many years I have left R in my daily task but I have returned. I write to try to get your help on what function look for to program the next: My data file is a csv file with lots of data and at the end it ends with \r\n Imagine Name ; Surname; Code; age; CP; \r\n Oscar ; example ;

Re: [R] Classification of wind events

2020-05-16 Thread Stefano Sofia
Dear Jim and Jeff, thank you for your comments. You are right, it is quite difficult to detect this process through a single observation point, I am awre of it. I need to set up an automatic algorithm to filter 20 years of data, and I have to find an easy way to do it. I know quite well my automa

[R] Compilation error with Intel compiler & Ubuntu 18.04 related to matherr feature detection

2020-05-16 Thread Roland Denis
Hello, while compiling R (tested with version 4.0.0 and 3.6.2) with Intel compiler (version 19) under Ubuntu 18.04, I get the following error: icc -I../../src/extra  -I. -I../../src/include -I../../src/include -I/usr/local/include -I../../src/nmath -DHAVE_CONFIG_H   -fopenmp -g -O2 -std=c9

[R] Compilation error with Intel compiler & Ubuntu 18.04 related to matherr feature detection

2020-05-16 Thread Roland Denis
Hello, while compiling R (tested with version 4.0.0 and 3.6.2) with Intel compiler (version 19) under Ubuntu 18.04, I get the following error: icc -I../../src/extra  -I. -I../../src/include -I../../src/include -I/usr/local/include -I../../src/nmath -DHAVE_CONFIG_H   -fopenmp -g -O2 -std=c9