install lsa package for R on ubuntu 10.04 lts lucid

本文介绍了如何在R语言环境中安装lsa包及其依赖项,并通过示例展示了lsa包中cosine函数的具体用法。此外,针对安装过程中可能出现的问题,如RJava包安装失败的情况,提供了详细的解决方案。

install.packages('lsa',dependencies=T)

library(lsa)

m1<-c(1,2,1,0)

m2<-c(1,1,1,0)

cosine(m1,m2)

http://cran.r-project.org/web/packages/lsa/index.html

problem:

http://stackoverflow.com/questions/7129303/cant-install-rjava-0-9-on-ubuntu-10-04

 


4
down vote accepted

Dah, not long after posting I found the answer here:

http://realshared.com/2011/how-to-install-r-jgr-and-deducer-in-ubuntu-10-04.htm

Although I already had Sun Java installed, the key was to run update-java-alternatives to actually switch to Sun Java first before running javareconf:

sudo update-java-alternatives -s java-6-sun
sudo R CMD javareconf
link | edit | flag
要解决这个问题,还得参考如下的链接

http://www.cnblogs.com/lexus/archive/2011/12/01/2271060.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值