Relative Content

Tag Archive for rdataframelistvectorconcatenation

How is a vector name and gender connected?

> Name <- c(“anu”, “ashok”, “kavin”, “tharun”) > genderr <- c(“F”, “M”, “M”) > Name[genderr == “M”] [1] “ashok” “kavin” The data Name and genderr are not connected using a data frame. But when I try to retrieve names of males, I’m able to retrieve the names. Is it internally connected? I was expecting that […]

How is a vector name and gender connected in R?

> Name<-c(“anu”,”ashok”,”kavin”,”tharun”) > genderr<-c(“F”,”M”,”M”) > Name[genderr==”M”] [1] “ashok” “kavin” The data Name and genderr are not connected using a data frame. But when I try to retrieve names of males, I’m able to retrieve the names. Is it internally connected? I was expecting that the two objects must be connected using a data frame, to […]