Skip to content

ns knn function #3

@PierreScl

Description

@PierreScl

Hey,

As you are transposing data_miss before computing the distances I understand that samples should be in columns of data_miss (It is consitent with the computation of minimums of the rows in minVals = apply(data_miss, 1, min, na.rm=TRUE) ).
However, in the scaling part at the very beginning the scale function is applied on non-transposed data_miss thus on the samples.

I was wondering if it was not an error ? Because when we use the scale argument of the function, the results we get are weird.

Thanks,

Pierre

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions