When selecting an item in a datra frame, I obtain the item and the Levels R -
i have data frame , when select item, obtain next result, levels available in column.
is there command desactivate this? or how should call element?
this doing @ moment:
a<-data$column[1]
and obtain:
[1] 1 1256 levels: 1 10 100 1000 ... 1000000
if want a
number use:
a <- as.numeric(paste(data$column[1])) [1] 1
if want a
string use:
a <- as.character(data$column[1]) [1] "1"
Comments
Post a Comment