So in Rstudio I have the following code:
DMSO_TNFa_Gaussian_fit_DF<-ddply(kek, c("Well_m",'cell'), function(x)Gaussian_fit(x,a1=0.06460553,m1=42,s1=3,a2=0.04731144,m2=150,s2=3,a3=0.04174895,m3=243,s3=3,a4=0.045,m4=350,s4=3))
The ddply function fits every cell per Well using the Gaussian fit function.
Some cells cant be fitted by the function, thus it stops running. I want it to continue to/with the next cell if a cell cant be fitted.
How do I achieve this?