[R] Creating 250 submatrices from a large single matrix with 2500 variables using loops

2012-03-14 Thread Lazarus Mramba
Dear all, I have a large matrix with about 2500 variables, and 100 rows. I would like to calculate the means of the every 10 variables starting from 1:2500 and saving the results as a vector or matrix. How can I do that? Alternatively, How can I create 250 subset matrices in the order of variabl

[R] Setting a mirror "permanently" on R on ubuntu

2009-10-09 Thread Lazarus Mramba
Dear all, I seem to have many problems as I run R on my ubuntu system. want to set a mirror so that anytime I use the command "install.packages", it does not ask me for which mirror to use but go direct. This is because of the error I keep on getting below and I dont know how to solve it. Please

[R] rJava downloads but cannot load, when I run R as root

2009-10-09 Thread Lazarus Mramba
> library(rJava) Error in library(rJava) : there is no package called 'rJava' > install.packages("rJava") Warning in install.packages("rJava") : argument 'lib' is missing: using '/usr/local/lib/R/site-library' --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ..

[R] Errors in installing package "rJava" on Ubuntu

2009-10-09 Thread Lazarus Mramba
*Hello, I have had this serious problem while trying to install package rJava. It is a requirement by the package JGR and it cannot be downloaded due to the error indicated below. I have googled and looked at the FAQ but no solution yet. Please advise. Kind regards, Lazarus > install.packages("r

Re: [R] getting R 2.9.1 from the tar.gz file

2009-08-20 Thread Lazarus Mramba
lmramba/R/R-2.9.1# make make: *** No targets specified and no makefile found. Stop. Kind regards, Lazarus Mramba Junior Statistician P.O Box 986, 80108, Kilifi, Kenya Mobile No. +254721292370 Tel: +254 41 522063 Tel: +254 41 522390 (office extension : 419) >>> Jakson Alves de Aquino 08/2

[R] unable to load library rJava on my Ubuntu 9.04

2009-08-18 Thread Lazarus Mramba
Problem 2: I have tried in vain to get the newer R version of 2.9.1. I keep on getting the 2.8.1. I have read the instructions from the R site but I seem not to be there. What do I do? Kind regards, Lazarus Mramba, KEMRI/Wellcome trust research Institute,Kilifi, Kenya This e-mail (including a

[R] Dropping rows conditionally

2009-03-04 Thread Lazarus Mramba
C.1 C.2 C.3 row1 1 2 3 row2 4 5 6 row3 7 8 9 row4 10 11 12 row5 13 14 15 row6 16 17 18 row7 19 20 21 I want to say drop row if value=1 or value =11 or value =20 How do I do that? Kind regards, Lazarus Mramba Junior Statistician P.O Box 986, 80108, Kilifi, Kenya Mo

Re: [R] Help in running Stata dataset in R

2008-08-06 Thread Lazarus Mramba
cannot call the data. library(epicalc) > use("maltreat.dta") Error in fromchar(x) : character string is not in a standard unambiguous format use("malvac.dta") Error in fromchar(x) : character string is not in a standard unambiguous format ## I have attached the two datas

[R] Help in running Stata dataset in R

2008-08-06 Thread Lazarus Mramba
lem is. Please help me. Kind regards, Lazarus Mramba Junior Statistician P.O Box 986, 80108, Kilifi, Kenya Mobile No. +254721292370 Tel: +254 41 522063 Tel: +254 41 522390 (office extension : 419) __ R-help@r-project.org mailing list https://stat.ethz.ch/

[R] Errror in running R2.7.1 version to R2.6.2 version

2008-07-25 Thread Lazarus Mramba
sets) herein. Kind regards, Lazarus Mramba Junior Statistician P.O Box 986, 80108, Kilifi, Kenya Mobile No. +254721292370 Tel: +254 41 522063 Tel: +254 41 522390 (office extension : 419) __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

[R] Error in installing packages

2008-07-22 Thread Lazarus Mramba
detected at all leave alone connecting to the internet. I am using Atheros AR5007EG wireless network adapter, Marvel Yukon 88E8040T PCI-E Fat Ethernrt Controller. Internet works fine under the windows Vista system but not on the Ubuntu side Anyhelp will be appreciated. Kind regards, Lazarus Mramba Junio