Questions tagged [loops]

1 votes
2 replies
Scanning numbers and adding them to list & scanning answer and adding it to variable
The main point is that I want to add numbers to array while the answer is "y". When I input 1 2 3 4 5 6, it only adds last 3 digits to array (so,...
asked 4 months ago
0 votes
1 replies
Ansible group by a json attribute
I've the below json data. { "images": [ { "id": "79334504-3e48-4411-b602-afe920e32e14", "name": "rhel-7-fac...
asked 4 months ago
-1 votes
1 replies
How to compare 2 dataframes and generate new dataframe
I have 2 similar dataframes that I would like to compare each row of the 1st dataframe with the 2nd based on condition. The dataframe looks like...
asked 4 months ago
0 votes
4 replies
How to make a for-loop more understandable in python?
I am currently teaching some python programming to some fairly young students. One thing I want them to learn is how to write a for-loop. So far...
asked 4 months ago
0 votes
1 replies
How to plot several data points rendered from evaluating a function with newton's method
I am attempting to gather several data points by using newton's method to approximate values of x^y=y^x when x does not equal y. I am having issu...
asked 4 months ago
0 votes
1 replies
How to loop through numbers in dplyr
I have written a query that gives the number of false positives based on a percentage (A). I want to work out how many false positives different...
asked 4 months ago
-2 votes
4 replies
Need help sorting data on date [duplicate]
This question already has an answer here: Sort array of objects by string property value...
asked 4 months ago
0 votes
1 replies
Using loops to compute dice poker outcome [closed]
I have a Dice poker assignment. I have managed to generate an array that holds the frequencies of values rolled, but I can't write a loop to dete...
asked 4 months ago
0 votes
1 replies
Loop inside highchart in R
I have to automatisate the analyse of a dataset on RStudio. My problem is that I don't know how many series are going to be in the dataset. So...
asked 4 months ago
-2 votes
1 replies
Adding variables to array using a loop for DnD dice roller
student here who is new to Java. I'm trying to make a fairly basic stat roller for DnD in android studio. I have rolling and grabbing methods for...
asked 4 months ago
0 votes
0 replies
Loop through a array of numeric ids
In PostgreSQL's SQL, I have a column where the data comes in as an array. This array contains high-dimensional sequences of multivariate events....
asked 4 months ago
0 votes
2 replies
How to check for 2 conditional statements where both must be met, while looping through each row in database array? PHP / MySql
I will do my best to articulate the problem. I am checking for duplicates on an Insert statement by placing the query into an array and using a...
asked 4 months ago
3 votes
4 replies
Convert words to links and replace them in html
I have a string containing names which could be dynamic(1 or more).....i want to convert those names to hyperlinks...and those hyperlinks will co...
asked 4 months ago
2 votes
3 replies
Vectorize Moving Window with Past Iterations
Given a very large data set (>1million observations), and am trying to vectorize my logic but haven't found the R-ified way to solve it. The...
asked 4 months ago
0 votes
1 replies
GUI-button to exit loop, Move-Item Job
I'm struggling to break the while loop when the "Off" button is being pressed. Instead, after starting the moving process, I am running into an...
2 votes
2 replies
Loop Function VBA
im trying to do a loop in my vba project. Without Looping its look like this: varia1 = Sess0.Screen.GetString(8, 59, 22) varia2 = Sess0.Screen.G...
asked 4 months ago
1 votes
1 replies
Loop through a transaction file to derive average prices for products
I am working on a data file which contains sales of products from various store chains ,e.g. supermarkets. (Taken from this dataset in case someo...
asked 4 months ago
-2 votes
1 replies
How to sum the adjacent values around a given location in a 2D Array (Matrix)?
int[][] array = new int[][] { { 1, 2, 3 }, { 5, 6, 7 }, { 9, 0, 1 }...
0 votes
0 replies
How do I make my list code run vertically instead of horizontal in Shopify?
I have created a vendor page for my Shopify store, and it seems to be running fine, however, now I want it to run the list alphabetically across...
-1 votes
1 replies
How to Get back/Return to a loop after catching a exceptional
I have this code that computes an Exponential example 3⁴ = 81.0 and the codes ask the user on how many numbers and exponent he wants to enter and...
asked 4 months ago
1 votes
3 replies
Loop over an shell argument which contains a list of values and write these values to a file
I have a shell script in Linux, which needs as input one argument, which can contains a list of ip adresses. These list needs to be written line...
asked 4 months ago
0 votes
0 replies
Promise in a loop create problem of order [duplicate]
Are there any issues with using async/await in a forEach loop? I'm trying to loop through an array of files and await on the contents of each fil...
asked 4 months ago
-1 votes
2 replies
How to remove the first row from multiple dataframes?
I have multiple dataframes and would like to remove the first row in all of them. I have tried using a for loop but cannot understand what I am...
asked 4 months ago
0 votes
1 replies
The program runs, but the second loops ends regardless of input
I am really new to java and I am having trouble finding what I did wrong here, This program is to ask for sales amounts and then get the average...
asked 4 months ago
-1 votes
0 replies
stepwise remove edges in igraph
I have a large network in R. I use igraph to plot and analyze the graph. Now I want to compute the shortest path distances and the edge betweenne...
asked 4 months ago