Hello, I am very new in programming, I can't do one thing, I'll need help.
I have a database of 1500 observations, I want to know the productivity of women, I have two variables, sex and productivity, I wish to sum the productivity of women only for the all 1500 obs
You will need to be more specific in formulating your question, as there are multiple approaches possible, depending on the format of your data and tools on your disposal.
Three I can think of
SQL = sum(productivity) from yer_database where sex = 'F';
base R = sum(subset(yer_database, sex == "F")$productivity)