Posts by Evandro Dalbem • 181 points
4 posts
-
4
votes2
answers202
viewsA: data.frame hierarchy for nested list in R
Most of the process you’ve done. It only lacks some structure that allows doing this recursively to the penultimate column (and the latter would be a result vector, I understand). This one seemed…
ranswered Evandro Dalbem 181 -
1
votes1
answer60
viewsA: How to know the fonts supported by commonality.cloud?
The only sources supported by commonality.cloud (just like wordclouds) are the sources of the Hershey family, which has the main advantage that each character is described as a set of points (are…
-
5
votes2
answers138
viewsA: Use "NA" for logical operation on R
Actually doing a[i] == "NA", you are testing whether a[i] is equal to string 'NA'. To make the comparison, you should use the function is.na(a[i]). a = c(1,2,3, NA, 5, 6, NA) b = 99 for(i in 1: 7) {…
ranswered Evandro Dalbem 181 -
5
votes4
answers16549
viewsA: How to include columns in a data.frame?
You can also use the Transform function. df <- transform(df, z=c(1,2), w=c(3,4)) x y z w 1 a 1 1 3 2 b 2 2 4
ranswered Evandro Dalbem 181