I think I am getting crazy.
In the following computations, I need to make sure that my proportions equals 100.
I need
sum(res$percBas, res$percInt, res$percTop) == 100
R returns FALSE and I have no clue why! They have the same class and the value of the sum is 100 from the data I provided below. The proportion are calculated as follows:
res$percBas = (res$nBas/res$S)*100
res$percTop = (res$nTop/res$S)*100
res$percInt = (res$nInt/res$S)*100
Is it because nTop, nBas, nInt are integers? Though the proportions are numeric...
Output stored for now in a list:
res = list(S = 43L, L = 252, Z = 5.86046511627907, C = 0.136289886425095,
G = 6.81081081081081, GenSD = 1.10870900316409, V = 6.14634146341463,
VulSD = 0.87450656075054, path = 3, dist = 1.41414141414141,
degc.tot = 0.259353741496599, cloc.tot = 0.502648845059257,
betc = 0.0103169994284977, MxSim = 0.565777991877899, meanTL = 2.31254748158818,
maxTL = 3.46153846153846, nBas = 6L, percBas = 13.953488372093,
nTop = 2L, percTop = 4.65116279069767, nInt = 35L, percInt = 81.3953488372093)