Sent off-list
Thanks Bill and Duncan. I only asked for advice but I got an education too.
Michael
On 03/08/2021 21:24, Bill Dunlap wrote:
In maximum likelihood problems, even when the individual density values
are fairly far from zero, their product may underflow to zero.
Optimizers have pro
Perfect!
thank you
On Fri, Aug 6, 2021 at 4:17 PM Bill Dunlap wrote:
>
> unlist(strsplit(vect, "\n"))
>
> On Fri, Aug 6, 2021 at 7:13 AM Luigi Marongiu
> wrote:
>>
>> Hello,
>> I have a vector that contains some elements with concatenated values, such
>> as:
>> ```
>> > vect
>> [1] "name_1"
>>
unlist(strsplit(vect, "\n"))
On Fri, Aug 6, 2021 at 7:13 AM Luigi Marongiu
wrote:
> Hello,
> I have a vector that contains some elements with concatenated values, such
> as:
> ```
> > vect
> [1] "name_1"
> [2] "name_2"
> [3] "name_3\nsurname_3"
> [4] "some other text\netc"
> ```
> How can I crea
Hello,
I have a vector that contains some elements with concatenated values, such as:
```
> vect
[1] "name_1"
[2] "name_2"
[3] "name_3\nsurname_3"
[4] "some other text\netc"
```
How can I create a new vector where each component is an element, such as:
```
> vect
[1] "name_1"
[2] "name_2"
[3] "name
... but remove the which() and use logical indexing ... ;-)
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 Fri, Aug 6, 2021 at 12:57 AM PIKAL Petr wrote:
>
OK, thank you.
On Fri, Aug 6, 2021 at 9:56 AM PIKAL Petr wrote:
>
> Hi
>
> You already got answer from Avi. I often use dim(data) to inspect how many
> rows/columns I have.
> After that I check if some columns contain all or many NA values.
>
> colSums(is.na(data))
> keep <- which(colSums(is.na(d
Hi
You already got answer from Avi. I often use dim(data) to inspect how many
rows/columns I have.
After that I check if some columns contain all or many NA values.
colSums(is.na(data))
keep <- which(colSums(is.na(data)) -Original Message-
> From: R-help On Behalf Of Luigi Marongiu
> Se
7 matches
Mail list logo