Re: [R] [FORGED] substr gives empty output

2018-01-21 Thread Rolf Turner
On 21/01/18 21:59, Luigi Marongiu wrote: Dear all, I have a string, let's say "testing", and I would like to extract in sequence each letter (character) from it. But when I use substr() I only properly get the first character, the rest is empty (""). What am I getting wrong? What you're

Re: [R] substr gives empty output

2018-01-21 Thread Ek Esawi
The reason you get "" is, as stated on the previous response and on the documentation of substr function, the function "When extracting, if start is larger than the string length then "" is returned.". This is what happens on your function. HTH EK On Sun, Jan 21, 2018 at 3:59 AM, Luigi Marongiu

Re: [R] substr gives empty output

2018-01-21 Thread Ted Harding
On Sun, 2018-01-21 at 09:59 +0100, Luigi Marongiu wrote: > Dear all, > I have a string, let's say "testing", and I would like to extract in > sequence each letter (character) from it. But when I use substr() I only > properly get the first character, the rest is empty (""). What am I getting >

[R] substr gives empty output

2018-01-21 Thread Luigi Marongiu
Dear all, I have a string, let's say "testing", and I would like to extract in sequence each letter (character) from it. But when I use substr() I only properly get the first character, the rest is empty (""). What am I getting wrong? For example, I have this code: >>> x <- "testing" k <-

Re: [R] Manipulating two large dataset differing by date and time

2018-01-21 Thread Jim Lemon
Hi Ogbos, You can just use ISOdate. If you pass more values, it will process them: ISOdate(2018,01,22) [1] "2018-01-22 12:00:00 GMT" > ISOdate(2018,01,22,18,17) [1] "2018-01-22 18:17:00 GMT" Add something like: if(is.null(data$hour),data$hour<-12 then pass data$hour as it will default to the

[R] Manipulating two large dataset differing by date and time

2018-01-21 Thread Ogbos Okike
Dear Members, Compliments of the Season!! Below is a part of a code I use for Fourier analysis of signals. The code handles data with the format 05 01 018628 (year, month, day and count) 05 01 028589 (year, month, day and count) The sample data is attached

Re: [R] Split charts with ggplot2, tidyquant

2018-01-21 Thread Eric Berger
Hi Charlie and Bert, Thank you both for the suggestions and pointers. I will look into them. FYI I repeatedly refer to tidyquant because that package refers to itself as "tidyquant: Tidy Quantitative Financial Analysis" and I am hoping to get the attention of someone who is involved in the

Re: [R] Split charts with ggplot2, tidyquant

2018-01-21 Thread Charlie Redmon
Thanks for the reminder about lattice! I did some searching and there's a good example of manipulating the size of subplots using the `position` argument (see pp. 202-203 in the Trellis Users Guide: http://ml.stat.purdue.edu/stat695t/writings/Trellis.User.pdf). This is not within the paneling

Re: [R-es] API de AEMET con R?

2018-01-21 Thread Jaume Tormo
Muchas gracias a todos. Si consigo algo más os escribo. @paco, muchas gracias por el paquete, os seguiré con interés. Jaume. El 19 de enero de 2018, 15:16, Francisco Rodriguez Sanchez < f.rodriguez.s...@gmail.com> escribió: > Hola Jaume, > > Lo siento, el paquete aemet de SevillaR aún no es