[R] Identification of Turning Points in a Signal

2020-02-09 Thread Ogbos Okike
Dear Friends, Wishing you the best of the day. I have a data (Cosmic Ray) which exhibit flow patterns of a sine/cosine wave, i.e. decreasing/increasing and registering crests (points maximal increases) and troughs/pits (points maximal decreases). These turning points are of interest to me. With pa

Re: [R] Value Labels: SPSS Dataset to R

2020-02-09 Thread Gregory Demin
Hi, With 'expss' package code for your task looks like this: library(haven) library(expss) # it is important to load expss after haven # CatsDogs = read_spss("path_to_file") CatsDogs = structure( list( Animal = structure( c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0),