search for: vallab

Displaying 3 results from an estimated 3 matches for "vallab".

Did you mean: hallab
2006 Mar 05
0
Wishlist: xtabs and table to optionally use attribute value labels (PR#8659)
...l make it to the list of wishes fulfilled some day. With kind regards, Ulrike ----------------------------------------------------------------- data1 <- data.frame(id=c("Id1","Id2","Id3","Id4","Id5","Id6"), time=c(3,4,3,5,9,4)) vallab <- c(3,4,5,9) names(vallab) <- c("day","night","twilight","unknown") attr(data1$time,"value.labels")<-vallab str(data1) ## gives the output: ## `data.frame': 6 obs. of 2 variables: ## $ id : Factor w/ 6 levels "Id1",&quot...
2006 Mar 05
2
Wishlist: merge and subset to keep attributes (PR#8658)
...t would be very helpful, if this could be changed. With kind regards, Ulrike ----------------------------------------------------------------- data1 <- data.frame(id=c("Id1","Id2","Id3","Id4","Id5","Id6"), time=c(3,4,3,5,9,4)) vallab <- c(3,4,5,9) names(vallab) <- c("day","night","twilight","unknown") attr(data1$time,"value.labels")<-vallab str(data1) ## gives the output: ## `data.frame': 6 obs. of 2 variables: ## $ id : Factor w/ 6 levels "Id1",&quot...
2006 May 23
4
How to call a value labels attribute?
...here is no standard way in R to label values of a numerical variable. Since this would be useful for me I intend to create such an attribute, at the moment for my personal use. Still I would like to choose a name which does not conflict with names of commonly used attributes. Would value.labels or vallabs create conflicts? The attribute should be structured as data.frame with two columns, levels (numeric) and labels (character). These could then also be used to transform from numeric to factor. If the attribute is copied to the factor variable it could also serve to retransform the factor to the o...