search for: male_rta

Displaying 1 result from an estimated 1 matches for "male_rta".

Did you mean: alerta
2007 Feb 09
1
Using variable names in for loops - Generating plots semi-automatically from a series of variables Partly solved
Hi, This code is trying to produce a series of graphics files, with plots of male and female disease rates by age, one plot per disease. The dataframe contains a variable 'Age' and a set of variables called 'Male_CVD, Female_CVD,Male_RTA,Female_RTA, and so on. For each disease, I want to pull out the column of data containing the word 'Male' and plot this against age, and then add a line to the plot for the corresponding column containing 'Female'. -- attach(data) Diseases <- c("Cardiovascular disease"...