[R] I need help with extracting data :(

massmatics 2hanl2da at naver.com
Fri Sep 11 12:53:09 CEST 2015

So this is the question that I need help on. :(
4.) ‘Warpbreaks’ is a built-in dataset in R. Load it using the function
**data(warpbreaks)**. It consists of the number of warp breaks per loom,
where a loom corresponds to a fixed length of yarn. It has three variables
namely, breaks, wool, and tension.
a.)	Write a code (Hint: a logical expression) that extracts the observations
with wool type A and tension level M. Assign it to the object
b.)	For the ‘AM.warpbreaks’ dataset, compute for the mean and the standard
deviation of the breaks variable for those observations with **breaks value
not exceeding 30**. 

My code for 4a) (However, it didn't work. Can somebody help me how to solve
this problem?) :(
>warpbreak <- data(warpbreaks("breaks", "wool", "tension"))

>AM.warpbreaks <- c('','type A','level M')

Thanks! :)

View this message in context: http://r.789695.n4.nabble.com/I-need-help-with-extracting-data-tp4712128.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list