[R] Matrix - remove [,1] from top row
ruipb@rr@d@s m@iii@g oii s@po@pt
ruipb@rr@d@s m@iii@g oii s@po@pt
Tue Jul 2 23:09:05 CEST 2019
Hello,
That is not a row, what you seem to have is an object of class
"matrix" and when it's printed it prints the column names or [,1]
[,2] etc if there aren't any colnames. So your matrix has just one
column and 4 rows with rownames 'date', 'Peeps', 'days', 'worn'.
Hope this helps,
Rui Barradas
Citando Nicola Cecchino <ncecchino using gmail.com>:
> Hello,
>
> I am simply trying to remove the [,1] row from a matrix. I tried to
> search Google to see if I could find how that is removed, but could
> not find a way to do it.
>
> So I have the following:
>
> [,1]
> date 2019-7-01
> Peeps 5
> days 7
> worn 9
>
> this is what I want:
>
> date 2019-7-01
> Peeps 5
> days 7
> worn 9
>
> Any ideas?
>
> Nic
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
More information about the R-help
mailing list