Re: [R] check a list that a sublist exists

2015-03-03 Thread Gerrit Eichner
Hello, Alaios, try is.null( Mylist[[i]]$parameters) It returns TRUE if your list doesn't have a component named "parameters" or if that component contains NULL. HtH -- Gerrit On Tue, 3 Mar 2015, Alaios via R-help wrote: Hi all,I have a list that has the following fields. $`80` [1] "Er

[R] check a list that a sublist exists

2015-03-03 Thread Alaios via R-help
Hi all,I have a list that has the following fields. $`80` [1] "Error in if (fitcass1[[2]] == \"Error\") { : \n  Fehlender Wert, wo TRUE/FALSE nötig ist\n" attr(,"class") [1] "try-error" attr(,"condition") $`81` [1] 0 $`9` [1] 0 $`79` $parameters     pi   mu    sigma 1 0.999679