There is also a way to do this without a loop:
> strsplit(x, "")
[[1]]
[1] "t" "e" "s" "t" "i" "n" "g"
# Or if you just want the vector
> strsplit(x, "")[[1]]
[1] "t" "e" "s" "t" "i" "n" "g"
David L Carlson
Department of Anthropology
Texas A&M University
C
Probably not without knowing the structure of your data.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Jan 22, 2018 at 2:55 AM, Sharada Ramadas
In
y <- substr(x, i, 1)
your third integer needs to be the location not the number of digits, so change
it to
y <- substr(x, i, i)
and you should get what you want.
Cheers,
Tim
> Date: Sun, 21 Jan 2018 10:50:31 -0500
> From: Ek Esawi
> To: Luigi Marongiu , r-help@r-project.org
> Subjec
I am trying to use varcomp to obtain the variance partitioning across
different nested levels of random effects (say x,y and z). I get the
three variance components (for each of my along with an additional one
called 'within' from varcomp output. I am using the 'scale total
variance to 1' option an
Thanks again, David.
I am trying to figure out a way to convert the lists into a data.frame.
Any hint?
The usual ways (do.call, etc) do not seem to work...
Thanks
Ilio
Da: David Jankoski
Inviato: venerd� 19 gennaio 2018 15:58
A: iliofornas...@hotmail.com; r-h
Hello Jim,
Thank you so much for your attention. It handled the hourly data with ease.
Best wishes
Ogbos
On Mon, Jan 22, 2018 at 8:21 AM, Jim Lemon wrote:
> 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 GM
6 matches
Mail list logo