Posts by user21820 • 66 points
2 posts
-
0
votes2
answers3208
viewsA: Adjust data to exponential model in R
An answer in English https://stackoverflow.com/questions/26560849/exponential-regression-with-nls-in-r basically, uses @Bernardo’s proposal (lm() in the log(head width) - this gives you a linear…
-
5
votes1
answer332
viewsA: Repeating structure in R
cumsum is the easiest in this problem > A=50 > B=c(7,6,7,6,5,6,7,5,6,7) > cumsum(B) [1] 7 13 20 26 31 37 44 49 55 62 > A-cumsum(B) [1] 43 37 30 24 19 13 6 1 -5 -12…