Skip to main content
3 votes
3 answers
64 views

I was working on a one-liner to subtract a constant value (e.g. 100 in this case) from a specific column using awk. So far I can manage to get to where I can print the last iteration only – which ...
Matteo's user avatar
  • 435
1 vote
0 answers
61 views

I am trying to code a jacobi algorithm w/o using matrices on python. The code I came up with looks fine but it stops at 3rd iteration even though the error is still pretty much large. ps. I am not an ...
Amoin Marl Mikko's user avatar
0 votes
0 answers
145 views

I'm currently struggling on an assignment (probability class) which require creating a function (VBA excel) that contains a variable number of sums one inside the other based on a parameter. I'm not ...
Victor's user avatar
  • 1
-1 votes
0 answers
63 views

I am using regular expression to get the filenames and count from a SAS log using Python. Pattern I am using pattern = re.compile(r'filename="([^"]+_\d{8})".*?Note:\s+There were (\d+)', ...
Harneet.Lamba's user avatar
Advice
1 vote
8 replies
133 views

Found this code exercise on W3R. Been trying to figure out the relationship between the outer and inner loop (i and j), but can't seem to wrap my head around it. If anyone could walk me through this ...
Stanislav Matveyevich's user avatar
Best practices
1 vote
0 replies
66 views

How can I manage a mysql_query result when query is looping a list and if each queries iteration returns some rows? I want the results to be stored in a dictionary. Then I will check if each perm is ...
UgaitzG's user avatar
  • 57
Best practices
0 votes
2 replies
125 views

Essentially I am trying to create a dataset that is dependent on prior rows to generate values for any given row. I then would like to run this loop over many IDs for an entire dataset. Current set up ...
triangle_coder's user avatar
0 votes
2 answers
107 views

I am new to making macros and have basically no experience with VBA. However, I have managed to cobble together the code below. The code is supposed to load data from a worksheet (the name of which I ...
Allison Rodgers's user avatar
3 votes
0 answers
98 views

I want to plot all the diagonals of a matrix. In the matrix row 1 contains information of time 1, row 2 of time 2 etc etc. Each diagonal presents the evolution of the number of fishes in a cohort that ...
Claris's user avatar
  • 31
Advice
0 votes
4 replies
75 views

I want to calculate resistance and resilience of the soil microbial community in my experiment. I have an experimental design with 4 treatments: ambient (control), drought, warmed, and warmed & ...
Moriah's user avatar
  • 27
3 votes
1 answer
126 views

At the risk of asking a question with an obvious solution: if I have a function in J that takes two arguments and returns two arguments and I want to accumulate the answer's second argument and to use ...
Shmuel Greenberger's user avatar
0 votes
1 answer
84 views

I used this method to draw squares and triangles on the paint box: procedure squarClick(Sender: TObject); begin  canvas.Pen.Color := clgreen;  canvas.Pen.Style := psSolid;  canvas.Pen.Width :...
Ebrahim's user avatar
  • 25
0 votes
0 answers
81 views

I want to plot several time series (xts) in R in a loop. However, that does not work, I only get "empty" devices. So I wrote a little test: library('xts') testdata <- c(1:100) testdata....
smoff's user avatar
  • 660
1 vote
1 answer
72 views

I wonder whether it is possible to call define-syntax-rule in a loop-like construction like for-each. I explicitly say 'loop-like' because I know that normal Scheme evaluation comes after macro ...
lemzwerg's user avatar
  • 852
-3 votes
1 answer
131 views

I want to loop and ask user if he wants to continue. If no answer for a while, loop anyway. while (true) { Console.WriteLine("\nDo you want to continue? (Type 'no' or 'exit' to break, or wait ...
Doof Warrior's user avatar

15 30 50 per page
1
2 3 4 5
6444