I would like to performs some statistical analysis in a definite zone of a very big table created with hist2d function of R. Is there any elegant way to cut a definite zone of the 2-d histogram and to put it in a table with R? thanx
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not entirely clear on what you mean by “cut a definite zone”, but as per the documentation on
hist2d, the function returns the counts for each cell in a matrix. So you can easily extract the specific cells you want by subsetting:So just take the appropriate subset of
tmp$counts.