[R-br] Seleção de um vetor em um list

Benilton Carvalho beniltoncarvalho em gmail.com
Segunda Dezembro 23 19:08:21 BRST 2013


usando seu exemplo nao-reprodutivel, eu chutaria algo como:

syn.ppp$markformat$x

b


Em 23 de dezembro de 2013 16:54, ASANTOS
<alexandresantosbr em yahoo.com.br>escreveu:

> Boa tarde pessoal,
>
>      Estou quebrando a cabeça com um list criado com o pacote spatstat,
> gostaria de selecionar o vetor $ x : num [1:906] dentro do - attr(*,
> "class")= chr "owin" no objeto syn.ppp abaixo, porém fiz str() e names() em
> vários níveis, como syn.ppp$window$units e vários outros e não consegui
> achar este vetor, alguém poderia me dar um help?
>
> Obrigado
>
> > str(syn.ppp)
> List of 5
>  $ window    :List of 11
>   ..$ type    : chr "mask"
>   ..$ xrange  : num [1:2] 368178 371550
>   ..$ yrange  : num [1:2] 8246348 8249244
>   ..$ dim     : int [1:2] 128 128
>   ..$ xstep   : num 26.3
>   ..$ ystep   : num 22.6
>   ..$ warnings: chr [1:3] "Row index corresponds to increasing y
> coordinate; column to increasing x" "Transpose matrices to get the standard
> presentation in R" "Example: image(result$xcol,result$yrow,t(result$d))"
>   ..$ xcol    : num [1:128] 368191 368218 368244 368270 368297 ...
>   ..$ yrow    : num [1:128] 8246359 8246382 8246405 8246427 8246450 ...
>   ..$ m       : logi [1:128, 1:128] FALSE FALSE FALSE FALSE FALSE FALSE ...
>   ..$ units   :List of 3
>   .. ..$ singular  : chr "unit"
>   .. ..$ plural    : chr "units"
>   .. ..$ multiplier: num 1
>   .. ..- attr(*, "class")= chr "units"
>   ..- attr(*, "class")= chr "owin"
>  $ n         : int 74
>  $ x         : num [1:74] 368987 371068 368638 368800 368424 ...
>  $ y         : num [1:74] 8248993 8246965 8248866 8249077 8248739 ...
>  $ markformat: chr "none"
>  - attr(*, "class")= chr "ppp"
>  - attr(*, "rejects")=List of 5
>   ..$ window    :List of 5
>   .. ..$ type  : chr "polygonal"
>   .. ..$ xrange: num [1:2] 368167 371564
>   .. ..$ yrange: num [1:2] 8246335 8249255
>   .. ..$ bdry  :List of 1
>   .. .. ..$ :List of 2
>   .. .. .. ..$ x: num [1:17] 371564 371520 371370 371087 368410 ...
>   .. .. .. ..$ y: num [1:17] 8248172 8249235 8249252 8249255 8249248 ...
>   .. ..$ units :List of 3
>   .. .. ..$ singular  : chr "unit"
>   .. .. ..$ plural    : chr "units"
>   .. .. ..$ multiplier: num 1
>   .. .. ..- attr(*, "class")= chr "units"
>   .. ..- attr(*, "class")= chr "owin"
>   ..$ n         : int 906
>   ..$ x         : num [1:906] 370662 368804 370729 370616 369597 ...
>   ..$ y         : num [1:906] 8246749 8246960 8247257 8247999 8248656 ...
>   ..$ markformat: chr "none"
>   ..- attr(*, "class")= chr "ppp"
>
> --
> ======================================================================
> Alexandre dos Santos
> Proteção Florestal
> IFMT - Instituto Federal de Educação, Ciência e Tecnologia de Mato Grosso
> Campus Cáceres
> Caixa Postal 244
> Avenida dos Ramires, s/n
> Bairro: Distrito Industrial
> Cáceres - MT                      CEP: 78.200-000
> Fone: (+55) 65 8132-8112 (TIM)   (+55) 65 9686-6970 (VIVO)
> e-mails:alexandresantosbr em yahoo.com.br
>         alexandre.santos em cas.ifmt.edu.br
> Lattes: http://lattes.cnpq.br/1360403201088680
> ======================================================================
>
> _______________________________________________
> R-br mailing list
> R-br em listas.c3sl.ufpr.br
> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
> código mínimo reproduzível.
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listas.inf.ufpr.br/pipermail/r-br/attachments/20131223/f078b26c/attachment.html>


Mais detalhes sobre a lista de discussão R-br