Thank you, I did not even think of wrapping in ( ) for the ':=" scenario.
Feeling a bit silly about that.
Just fooling around I did discover that dt[, "new.var" := fun(var), by =
something] does work.
For some reason I had been wrapping that (go figure), i.e. dt[, .("new.var"
:= fun(var)), by
Hi Yasir,
For now, I am trying to run the script as identical as possible as the way
Madon and her colleagues ran it in her paper. When I removed the
function(data=data) it did not change anything to the results, hence why I
just left it as it is.
Cheers, Tim
On Fri, Apr 1, 2016 at 4:35 PM,
Why don't you just simply read the CSV with read.csv instead of that
function in the beginning?
Le ven. 1 avr. 2016 7:36 PM, TimvdStap a écrit :
> Hi everyone,
>
> I'm working on estimating the population size of Risso's dolphins in the
> Azores using mark-recapture
Hi everyone,
I'm working on estimating the population size of Risso's dolphins in the
Azores using mark-recapture data, whereby I take transient individuals into
account (i.e., I estimate a transience-corrected population size). For this,
I use an R script, as used in Madon et al (2013) (see link
I am at the moment using prediction.strength{fpc} to test how well my kmeans
clustered data classifies using knn.
I do that by calling this function.
prediction.strength(training, Gmax = 10, M = 5, classification = "knn",
count = TRUE,nnk = 20)
Is it possible to provide a separate test set to