R programming language resources › Forums › Statistical analyses › grouping records sequentiallyThis topic has 0 replies, 1 voice, and was last updated 11 years, 6 months ago by bigdataguy.Viewing 1 post (of 1 total)AuthorPosts March 25, 2013 at 5:43 pm #898 bigdataguyMemberHello All,I have a dataframe that contains two columns (id (number), has_data(boolean)). Is there a way in R where I can take each 10 records at a time and calculate the percentage of those records containing has_data=true?For example,records 0,10 contain 3 false , 7 true or 70%records 11,21 contain 5 false , 5 true or 50%thanks in advance. AuthorPostsViewing 1 post (of 1 total)You must be logged in to reply to this topic.Log In Username: Password: Keep me signed in Log In