Questions tagged [percentage]

Percentage is a ratio or fraction of a quantity that shows the ratio from whole part of quantity. Percentage demonstrates how much is there out of 100.

The ratio or fraction from a quantity that consider out of 100 is called Percentage.

The Percentage is calculate by following formula:

percentage = (part of quantity * 100)/total quantity
2714 questions
0
votes
1 answer

Use dplyr to calculate percentage and frequency of occurrence of two groups

I'm learning dplyr and have searched for solutions from similar posts but found none with this combination of problems. Here is an example data frame: set.seed(1) df <- data.frame(sampleID = c(rep("sample1",2), …
Brian Leo
  • 11
  • 4
0
votes
1 answer

How to create a “stacked bar graph” of different activities for several timeslots in Stata?

I am using Stata to compare the percentage of time spent on 7 different activities (e.g. work, leisure) for 8 different timeslots of the day (3-hours each, ranging from 00:00-03:00 to 21.00-00:00). I would like to make a “stacked bar graph”: where…
Sabine
  • 1
0
votes
1 answer

How to get percentage of occurrences of a column, grouped by another column? Python

I am trying to calculate the percentage of occurrences of a product (with hundreds of different products) according to the related Country. And I would like this % to be shown on another column I managed to do it in a graph, but it is not visually…
Killi Mandjaro
  • 145
  • 2
  • 15
0
votes
1 answer

Symmetric percent change between data frames in R

I have two data frames. It is easy to calculate percent change from t1 to t2 like this: t1 <- data.frame("gene1" = c(1,5,10), "gene2" = c(1,1,1), "gene3" = c(5,5,20)) row.names(t1) <- c("patient1", "patient2", "patient3") t2 <- data.frame("gene1" =…
strugglebus
  • 45
  • 1
  • 9
0
votes
0 answers

Can anyone figure out why I'm receiving the an error for my code? I've installed tidyverse and dplyr so I don't understand

Here's my codes: subins %<>% rename( genus = geNus, family = familyy, weight = weight.of.insect, body_length = body.length.of.insevct, tarsus_width = tarsus.with ) It says it could not find the function %<>% so tried %>%…
belrey
  • 1
  • 2
0
votes
2 answers

How do you compute magnitudes (percentages) that are over and under a specific number in another column?

I have this data set study_ID title experiment question_ID participant_ID estimate_level estimate correct_answer question type category age gender
dampfy
  • 41
  • 5
0
votes
0 answers

Calculating Hits and Misses Percentage in Javascrpt

I am making a Whack a Mole like Zombie themed game in Javascript. I wanted to know the accuracy in percentages, like the hits vs missed ratio in percentages. So, i used this code: let accuracy = (hit / (hit + missed)) * 100 This seems to work and…
Mir
  • 5
  • 2
0
votes
2 answers

Scaled percentage calculator - specific percentages for different number outcomes

We are a group based fitness studio working on a sheet that gives information on expenses and profits, most of the sheet is pretty straight forward, however, we want the sheet to calculate the royalty the investor should get but it is calculated on…
0
votes
1 answer

R: how can I calculate the percentages a variable takes on a certain value by group?

So I'm trying to get r to report the share of a certain variable taking on a specific value in a group. For example: Let`s consider a dataset which consists of groups 1,2 and 3. Now I would like to know the percentage a Variable1 takes on the value…
0
votes
1 answer

Power BI Gauge to show number of times a value appears as a percentage

I'm new to Power BI and I'd like to create a series of Gauges to show the number of times a value appears in a column as a percentage of the number of records that have been received. As a working example: We have officers who go out on-site and…
Rob Morris
  • 137
  • 6
0
votes
0 answers

Calculate a % of a field

Using quicksight, I'd like to create the % of my total revenues vs delta of loss. Basically, I've a field, where inside there are all the economics (so not just revenues but also costs). I'm successfully filtering it to have 2 columns, one for…
S. R.
  • 69
  • 3
0
votes
0 answers

Center label on ggplot R stacked bar chart

this is pretty straightforward but seems to be complicated in other posts that I've read. Posts related to this question are fairly old, so wondering if there is now a more efficient way to go about this. I have created a simple stacked bar chart…
paranormaldist
  • 489
  • 5
  • 16
0
votes
1 answer

Oracle SQL, one big table categorize columns and percentage distribution

I have one big mat view and in that, I want to categorize column A. For this column A I need the percentage distribution of column B. Column A is a string value, column B is a number (length of something). Furthermore, I need only active values for…
Anna
  • 3
  • 2
0
votes
2 answers

Percent C# with decimal places (ex 30.2% or .05%)

I've tried to make my tool display a field into % by doing some math then converting it. Here is my code and what I would like to do is these things. If the result is a value that comes out to a flat % then display the flat % example result of…
0
votes
2 answers

Javascript: Assign percentage of players a random role

Let's say I have these two arrays let players = ["ryan", "austin", "julian", "kelso", "mitch", "adam", "dwight", "edwin", "connor", "george"] let roles = [] I would like to populate roles with, let's say 30% of 'Good' and 70% 'Bad' strings in a…
Ryan
  • 2,144
  • 8
  • 28
  • 39