Hello,

I'm working on a code about crude oil tank contents on Rstudio. In the first part of the code, I need to select two tanks that are open for charging from the data frame of "sarjacikunitelistesi(opentankforcharging)" and write a condition.For example;
For ( opentanks=TK110&TK112) { (conditions)

But I couldnt how can i do this loop ?

A for loop is probably not a good way to do what you want to do. Can you explain how you want to change the column TK110 and TK112? Can you post your data or a small part of it? The command

dput(head(sarjacikunitelistesi))

will give output that will allow other people to work with the first six rows of your data (if sarjacikunitelistesi is the name of your data frame). Please paste the output of that function between lines with three back ticks.
```
Your output
```

You didn't post your a sample of your data as suggested. You won't get much help unless you do. Have a read:

We dont have sarjaacikunitelistesi. You don't have to share all your code. Only a sample.

No. Read the article. Code, not screenshots.

We don't have this file.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.