First you have to install the package (once) by typing

> Pkg.add("Clustering")

Then you have the files for the Clustering Package on your computer and to 
load them into your session you have to do either

using Clustering
or
import Clustering

If you use import you will have to prefix all calls to the Clustering 
package by Clustering so that you would use "Clustering.kmeans()"

I tought I would link to 
http://docs.julialang.org/en/release-0.2/manual/packages/, but 
unfortunately this is not explained there. I will try to formulate 
something and submitt a Pull request.

Ivar

kl. 11:41:49 UTC+1 lørdag 28. desember 2013 skrev takabailando følgende:
>
> Hi Julia user,
>
> I am a newbie to Julia and asking you a very very simple question: how to 
> actually load installed packages? I am trying to run a clustering algorithm 
> with the means function available in the Clustering package. But when I 
> type "kmeans", it returned "kmeans not defined". I am guessing installing 
> packages isn't enough to run it. I am an R user. and in R i just typed 
> "library(kmeans)". 
>
> Could you please let me know? 
> Many many many thanks!
>
> Taka
>

Reply via email to