Displaying 1 result from an estimated 1 matches for "t_safety_scor".
Did you mean:
t_safety_score
2012 Nov 03
1
Logical vector-based extraction
...uot;,"Tennessee","Texas",
"Utah", "Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"),
p_fatal = sample(200:500,51,replace=TRUE),
t_safety_score = sample(1:10,51,replace=TRUE)
)
options (width=120)
# The following logical variable does not get created - Don't understand what I am doing wrong
state_pflt200 <- df$p_fatal <200
df[state_pflt200, c("state.name","p_fatal")]
# The following wor...