Adding a column to a csv file

No.11282177 ViewReplyOriginalReport
Hi /sci/

I need to analyze data for an upcoming exam, and I may be in a pickle.

I have a data with 1000 students and I want to see if the studens' different attributes (gender,etc) have an effect on their final testscore.

I want to use the Pearson's Chi-squared test to determine whether or not the two things I'm examining have an effect on eachother or not ( sorry for my retarded english)

If I'm not mistaken, then for that I'm going to have to use two " yes or no" "1 and 2" type of data (category-like data?)

The problem is that one of my datas is not like that, those are just numbers, because they are the actual scores.

To fix my problem I thought I would add a column named "success", which would only have "yes" or "no" values in them, but I'm working with a CSV file in Rstudio and I have no idea how to fix my problem.

I managed to add a column titled "success", but it has no data.