Check out example codes for "r change a single value in a dataframe". It will help you in understanding the concepts better.

Code Example 1

# Basic syntax:
your_dataframe[row_number, column_number] = new_value

Learn ReactJs, React Native from akashmittal.com