<s>[INST] Requirements:

*   To  write  an R  code  that calculates  the  mean  and  standard  deviation  of  a  given  dataset.
*   The  mean  is  calculated  for  a  given  subset  of  the  data  based  on  some  conditions.
*   The  standard  deviation  is  calculated  for  the  full  dataset.
*   The  code  should  also  display  the  summary  statistics  of  the  dataset.
*   Use  the  built-in  mtcars  dataset  in  R  for  this  example.

Here  is  the  example  of  the  dataset:
```r[/INST]