Questions tagged [frequency]

The rate at which a thing occurs or is found.

The rate at which a thing occurs or is found.

2858 questions
0
votes
1 answer

Creating 4 yes/no bar charts on a single plot from frequency tables in R

I have four variables as columns in my data set: whether the person had free school meals when they were younger whether the person's parents attended university whether the person studied A-level drama at school whether their school offered…
Jess
  • 11
  • 2
0
votes
2 answers

How to add frequency % to tables

I am working on making a baseline characteristic table for a study and I am wondering if there is a way to show the percent of patients in which a baseline demographic occurs? I can make a table and then calculate in r as a separate code but there…
0
votes
1 answer

Return the frequency of counts of a condition, leaving other conditions intact

Given the data.frame below, I would like to return the frequency of obs based on condition session and leaving the other conditions (cond 1, cond 2, cond 3) intact > session obs cond1 cond2 cond3 1 A close 30 0 1 A …
Sofia
  • 1
  • 1
0
votes
1 answer

Javascript Audiocontext Oscillator Not Working on Windows Edge or Android Browsers

The code is complete. No sound produced. Tried on Windows Edge Version 109.0.1518.70 (Official build) (64-bit) Fresh reinstall of Andriod OS and also Windows Install and Upgraded. I have tried old Audiocontext Oscillator app code that worked on my…
0
votes
1 answer

What is better from an energy-saving perspective to run task minimum energy consumption

The CPU frequency and CPU usage are the main factors that impact energy consumption (as far as I know). however what is better from an energy-saving perspective to run task minimum energy consumption: Option 1: Maximum CPU frequency with minimum…
sako
  • 29
  • 5
0
votes
0 answers

While loop not taking two conditions, need to count frequencies as well

I'm having problems with this while loop. It's not running, I keep getting 0's for all my frequencies. Clearly I'm not implementing it correctly and I'm just getting frustrated. It's supposed to run until I have at least one boy and one girl, then…
0
votes
1 answer

Creating multiple frequency count tibbles at once in R

I have data on 30 people that includes ethnicity, gender, school type, whether they received free school meals, etc. I want to produce frequency counts for all of these features. Currently my code looks like this: df <- read.csv("~file") df %>%…
Jess
  • 11
  • 2
0
votes
1 answer

How do I compare the relative frequencies in R?

I ran a study asking participants to choose between options A, B, and C based on various parameters. For example: Which of the following did you find to be most inspirational? My data looks something like…
0
votes
0 answers

Frequency of numeric values by group at different times

I'm trying to calculate the frequency of a certain event occurring by combining the data from several groups with the same name but at different time points. I also need to collate data from a range of groups in one group. It sounds a bit confusing,…
Vvvvvv
  • 1
0
votes
0 answers

Is there a library that have an implementation of EXTRACT algorithm for frequent itemset? Or does anyone have an implementation?

I need to implement an algorithm for extracting frequent itemsets for a school project. I have chosen the EXTRACT algorithm from the paper "EXTRACT: New extraction algorithm of association rules from frequent itemsets". The paper provides an…
0
votes
0 answers

How to know if a certain sound frequency is being played out of speakers in Python?

How would I go about getting the sound data from the speakers and checking to see if a very certain frequency is being played? (like see if the 440Hz frequency is playing) Would I use pyaudio? I dont know much about audio files or audio data so…
0
votes
2 answers

Produce multiple stratified frequency tables using a for-loop in R

I am trying to produce multiple frequency tables that are stratified by multiple independent variables. I can get this to work for one variable and one stratification variable, but my for-loop is broken. library(tidyverse) # Create example dataframe…
Quinterpret
  • 133
  • 6
0
votes
1 answer

How to loop the days from frequency until the end of the month for Python?

Let's imagine this is my table (better view here in google sheets): index frequency start_execution_date end_month 0 Weekly 2022-11-06 22:15:00 07-02-2023 1 Daily 2022-11-06 22:15:00 07-02-2023 2 Monthly …
0
votes
2 answers

How to visualize frequency of a survey answer with circles/bubbles of different sizes in R

What is this type of data visualization plot called and how do I recreate it in R? Image Source:…
marina
  • 11
  • 3
0
votes
2 answers

Combining two tables/arrays in R

Using my Data, I was wondering if there is a way to achieve my Desired_output (an object of class table or matrix)? I tried the following without success: with(Data, table(group, task_type, time.)) Data = data.frame(group=rep(c("Sim","Com"),…
Simon Harmel
  • 927
  • 2
  • 9