How to set all the column value by a single TRUE value in the data frame

R Programming Language Data Frames in R Language (Article) Data Frames in R Language (Program)

350

Program:

<span class="typ">Student$PassOrFail</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> TRUE</span>

Output:

data frame, r language

Explanation:

You can also use the above code like below

Student$PassOrFail = FALSE

This Particular section is dedicated to Programs only. If you want learn more about R Programming Language. Then you can visit below links to get more depth on this subject.