Have still some problems

match("name", names(object))
[1] NA

which(names(object)=="Iname")
integer(0)


TestDist = object[-"name",]
Fehler in -"name" : ungültiges Argument für unären Operator
Error in -"name": invalid argument for unären (don`t know what this means)
operator

Thanks

Birgit



mel-10 wrote:
> 
> Birgitle a écrit :
>> Many thanks.
>> Is there a way to give me the number of the row, if I have the row name?
>> B.
> 
> a= object
> 'w' = name
> 
>  > match('w', names(a))
> 
> # or
> 
>  > which(names(a)=='w')
> 
> # or
> 
> but deletion should work with the number and/or with the name.
> 
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> 


-----
The art of living is more like wrestling than dancing.
(Marcus Aurelius)
-- 
View this message in context: 
http://www.nabble.com/Delete-NA-from-a-dist-object-tp17670016p17671297.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to