[R] Extract data of special character
roslinazairimah zakaria
ro@||n@ump @end|ng |rom gm@||@com
Fri Mar 15 00:33:50 CET 2019
Yes, it does.
table(dd$ATTRIBUTE, dd$TRAIT) #or
xtabs( ~ ATTRIBUTE + TRAIT, dd)
Thank you so much Rui and Ivan.
On Fri, Mar 15, 2019 at 5:51 AM Rui Barradas <ruipbarradas using sapo.pt> wrote:
> Hello,
>
> Or more simple,
>
> xtabs( ~ ATTRIBUTE + TRAIT, dd)
>
>
> Hope this helps,
>
> Rui Barradas
>
> Às 19:27 de 14/03/2019, Ivan Krylov escreveu:
> > On Fri, 15 Mar 2019 03:06:28 +0800
> > roslinazairimah zakaria <roslinaump using gmail.com> wrote:
> >
> >> how many of ATTRIBUTE related to TRAITS.
> >
> > The table() function can be used to count occurrences of each
> > combination of factor levels. Does extracting the two columns by
> > dd[,c('ATTRIBUTE','TRAIT')] and passing the result to table() help?
> >
>
--
*Roslinazairimah Zakaria*
*Tel: +609-5492370; Fax. No.+609-5492766*
*Email: roslinazairimah using ump.edu.my <roslinazairimah using ump.edu.my>;
roslinaump using gmail.com <roslinaump using gmail.com>*
Faculty of Industrial Sciences & Technology
University Malaysia Pahang
Lebuhraya Tun Razak, 26300 Gambang, Pahang, Malaysia
[[alternative HTML version deleted]]
More information about the R-help
mailing list