## How to reset a sequence in a R dataframe's column, based on the levels of a different column

How to reset a sequence in a R dataframe's column, based on the levels of a different column Problem Description: I have data that logs subject and session information in columns like so: > Subject <- c(rep("A", 6), rep("B", 7)) > Session <- c(rep(1, 3), rep(2, 3), rep(8, 4), rep(9, 3)) > df <- data.frame(Subject, … Read more

## How to make a loop that changes values in specific rows from a dictionary

How to make a loop that changes values in specific rows from a dictionary Problem Description: I’m new and can’t figure it out how to solve this problem. I have a data.frame = schedule Week_number Start End 1 09:00 15:00 1 09:00 15:00 1 09:00 15:00 1 09:00 15:00 1 09:00 15:00 1 NA NA … Read more

## How do I use a for loop to flash a single LED on and off? (c++) (Mbed Studio) (Nucleo Board)

How do I use a for loop to flash a single LED on and off? (c++) (Mbed Studio) (Nucleo Board) Problem Description: I am a complete coding noob but I am trying to get all LED’s to flash on and off 5 times while specifically using a for loop (it has to be a for … Read more

## Removing Duplicates of an Array in an Array That Has the Possible Sums of a Number

Removing Duplicates of an Array in an Array That Has the Possible Sums of a Number Problem Description: The sum Function Problem A beginner JS programmer here. This question was created out of curiosity: I’ve created a function called sum in which takes value, a number, as an argument and returns the possible sums of … Read more

## Removing Duplicates of an Array in an Array That Has the Possible Sums of a Number

Removing Duplicates of an Array in an Array That Has the Possible Sums of a Number Problem Description: The sum Function Problem A beginner JS programmer here. This question was created out of curiosity: I’ve created a function called sum in which takes value, a number, as an argument and returns the possible sums of … Read more

## Removing Duplicates of an Array in an Array That Has the Possible Sums of a Number

Removing Duplicates of an Array in an Array That Has the Possible Sums of a Number Problem Description: The sum Function Problem A beginner JS programmer here. This question was created out of curiosity: I’ve created a function called sum in which takes value, a number, as an argument and returns the possible sums of … Read more

## Saving result from for loop to different columns

Saving result from for loop to different columns Problem Description: I am trying to run a nested loop in which I want the output to be saved in four different columns. Let C1R1 be the value I want in the first column first row, C2R2 the one I want in the second column second row, … Read more

## Saving result from for loop to different columns

Saving result from for loop to different columns Problem Description: I am trying to run a nested loop in which I want the output to be saved in four different columns. Let C1R1 be the value I want in the first column first row, C2R2 the one I want in the second column second row, … Read more

## how to solve this nested loop?

how to solve this nested loop? Problem Description: I want to make the code in action2 to be connected with Elif attack. but I don’t know how. any solutions? I tried to copy pasted all the codes below (even after the else’s break) but it takes too much space and it ended up failed. Solution … Read more

## How to print only elements that are larger than the previous ones in 2D array in C

How to print only elements that are larger than the previous ones in 2D array in C Problem Description: John is in a big city and he sees an area of buildings. make a program that will print the number of buildings that are visible by John if he is seeing from the west. The … Read more

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.