search for: catdog

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

Did you mean: catdoc
2012 Nov 24
2
Building factors across two columns, is this possible?
I am trying to make it so two columns with similar data use the same internal numbers for same factors, here is the example: > read.csv("test.csv",header =FALSE,sep=",") V1 V2 V3 1 sun moon stars 2 stars moon sun 3 cat dog catdog 4 dog moon sun 5 bird plane superman 6 1000 dog 2000 > data <- read.csv("test.csv",header =FALSE,sep=",") > str(data) 'data.frame': 6 obs. of 3 variables: $ V1: Factor w/ 6 levels "1000","bird",..: 6 5 3 4 2 1 $ V2: Factor...