Displaying 20 results from an estimated 2000 matches similar to: "R on Android"
2011 Aug 10
1
Referencing non-CRAN extension from CRAN package
Hi r-devel,
I would like to submit a package to CRAN that makes use of an Omegahat extension, RStem ( http://www.omegahat.org/Rstem/ ). What is the best way to reference it in my package, and ensure compliance with CRAN submission guidelines?
Thank you for your help!
Tim
--
Timothy P. Jurka
Department of Political Science
University of California, Davis
www.timjurka.com
[[alternative HTML
2008 Jul 25
1
Plink bed files
Hi All,
does anyone know how to import binary .bed files generated by Plink (http://pngu.mgh.harvard.edu/~purcell/plink/
) into R? the Plink FAQ explains how to conver other types of files,
not the .bed.
Cheers,
Federico
--
Federico C. F. Calboli
Department of Epidemiology and Public Health
Imperial College, St. Mary's Campus
Norfolk Place, London W2 1PG
Tel +44 (0)20 75941602 Fax
2010 Jun 07
2
r-base-core-dbg update issue
Hello,
I am on the latest Ubuntu 10.04 and I am upgrading R. I get the following error:
r-base-core-dbg:
Depends: r-base-dev (=2.11.1-2lucid0) but 2.11.1-1lucid0 is to be installed
If that helps my CRAN mirror is:
http://stat.ethz.ch/CRAN/bin/linux/ubuntu lucid/
I did check on the archives for any email concerning the problem, I hope I am
not duplicating a thread.
Best,
F
--
Federico
2006 Aug 03
12
More than one has_many :through association between the same 2 models
I wonder if you can have more than one has_many :through association between
2 models.
For example...
I have a model Teacher and a model Class
Now, 1 Teacher works in many Classes, right?. So I need a join model like
class Work < ActiveRecord::Base
belongs_to :teacher
belongs_to :class
end
But I also would like to know if a teacher CAN teach a class before I
2006 Feb 08
2
logical condition in vector operation
HI All,
I have a data frame such as:
> test
x y p d
[1,] 1 0 10 21 0
[2,] 2 3 11 12 0
[3,] 3 4 12 23 0
[4,] 3 5 13 24 0
and I want to perfor some operations on the first two coulums,
conditional on the uneqaulity values on the 3rd and 4th columns.
For instance:
j = 3
test[test[,1] == j, 5] = test[test[,1] == j,2] + test[test[,2] == j,1]
gives me the result:
test:
x y p d
2011 Jul 12
1
applying function to multiple columns of a matrix
Hi,
I want to apply a function to a matrix, taking the columns 3 by 3. I could use a for loop:
for(i in 1:3){ # here I assume my data matrix has 9 columns
j = i*3
set = my.data[,c(j-2,j-1,j)]
my.function(set)
}
which looks cumbersome and possibly slow. I was hoping there is some function in the apply()/lapply() families that could take 3 columns at a time.
I though of turning mydata in a
2004 Oct 15
8
Testing for normality of residuals in a regression model
Hi all,
Is it possible to have a test value for assessing the normality of
residuals from a linear regression model, instead of simply relying on
qqplots?
I've tried to use fitdistr to try and fit the residuals with a normal
distribution, but fitdsitr only returns the parameters of the
distribution and the standard errors, not the p-value. Am I missing
something?
Cheers,
Federico
2009 Jul 07
3
troubles with broken clients (iPhone) - again
The PC (Outlook) is accessing the mailbox via POP3, the iPhone is using
IMAP; please consider we are talking about a user's home setup, so it's
pretty difficult to have a more detailed report on his part (Outlook
version, iPhone OS version, xDSL router type and configuration, etc.). The
mail server 'dovecot -n' output is attached.
The symptoms: when the Mail application is
2006 Sep 26
5
putting stuff into bins...
Hi All,
I have a vector of data, a vector of bin breakpoints and I want to put my data
in the bins and then extract fanciful informations like the mean value of each bin.
I know I can write my own function, but I would have thought that R should have
somewhere a function that took as arguments something like (data, breaks, what
to do with the data in the bins). I surey could not find it
2005 Apr 18
1
Rd.sty problems.
Hi All,
I am trying to build a new R package to submit, but it's failing to
create a tex manual:
R CMD check Biodem
* checking for working latex ... OK
* using log directory
'/home/greatsage/Fede/R-packages/temp/Biodem.Rcheck'
* checking for file 'Biodem/DESCRIPTION' ... OK
* checking if this is a source package ... OK
* Installing *source* package 'Biodem' ...
** R
2006 Feb 28
4
subsetting a list of matrices
Hi All,
I have a list of matrices:
> x
[,1] [,2]
[1,] 1 4
[2,] 2 5
[3,] 3 6
> y
[,1] [,2] [,3] [,4] [,5] [,6]
[1,] 18 21 24 27 30 33
[2,] 19 22 25 28 31 34
[3,] 20 23 26 29 32 35
> z =list(x,y)
I want to create a second list that is has a subset each matrix in the
list subsetting so I get the 2nd and 3rd row of each (and
2011 Jul 08
3
Making a new package: licence
HI All,
I have written and succesfully uploaded a new package. The licence it is under is 'GPL' --no version. My assumption is, since all the code is written in R the licence R used for R would affect the code (hence my "GPL" stands for "whatever version of the GPL R is under")
I am happy with the licencing I used, but I'd like to ask if there is any transitive
2005 Mar 08
5
removing message: [Previously saved workspace restored]
Dear All,
I saved by mistake the environment I was working in after typing q(),
and now I get the annoying message:
[Previously saved workspace restored]
I have already deleted all the objects in the environment, saving it as
an empty environment, so it's just a matter of nitpicking I suppose. The
message does not appear if I start R from any other place in the
directory tree.
I am
2004 Jan 20
4
matrix exponential: M^0
> -----Original Message-----
> From: Federico Calboli
> Sent: Tuesday, January 20, 2004 5:40 PM
> To: r-help
> Subject: [R] matrix exponential: M^0
>
> I would like to ask why the zeroeth power of a matrix gives me a matrix
> of ones rather than the identity matrix:
>
> > D<-rbind(c(0,0,0),c(0,0,0),c(0,0,0))
> > D<-as.matrix(D)
> > D
>
2005 Jun 20
3
vectorisation suggestion
Hi All,
I am counting the number of occurrences of the terms listed in one
vector in another vector.
My code runs:
for( i in 1:length(vector3)){
vector3[i] = sum(1*is.element(vector2, vector1[i]))
}
where
vector1 = vector containing the terms whose occurrences I want to count
vector2 = made up of a number of repetitions of all the elements of
vector1
vector3 = a vector of NAs that is
2023 May 17
4
suprising behaviour of tryCatch()
Hello,
I run a fisher.test() in a loop, with the issue that some of the data will not be useable. To protect the loop I used tryCatch but:
sexsnp = rep(NA, 1750)
for(i in 1:1750){tryCatch(sexsnp[i] = fisher.test(table(data[,3], data[,i + 38]))$p, error = function(e) print(NA))}
Error: unexpected '=' in "for(i in 1:1750){tryCatch(sexsnp[i] ="
But this works:
for(i in
2007 May 04
4
logical or for two vectors or matrices
Hello,
it might be a very simple question but I cannot find the solution (I tried a || b, any(a,b)... but none works). My problem is:
I have two vectors,
a <- c(TRUE,FALSE,FALSE)
b <- c(TRUE,FALSE,TRUE)
and I would like to obtain a vector that indicates if it is TRUE in any of the two vectors. Hence, the desired output would be: TRUE, FALSE, TRUE
Thank you in advance,
Federico
2009 Oct 29
3
x-y plot as an histogram
Hi,
I am investigating a problem for which I found no solution.
I have a matrix with two columns. I have plotted it as an x-y plot
(plot(matrix[,1],matrix[,2])
But this is not apropriate for my purposes. I need to group the data
in matrix[,1] into groups (as an histogram would do). Then I have to
calculate the average of matrix[,2] for each group.
Before starting with loops and loops I
2011 Apr 19
5
Check that my sqlite database populated
Hello guys,
I''ve made a very simple application following the footsteps of
http://guides.rubyonrails.org/getting_started.html.
I managed to insert my objects (i checked the existence of inserted
objects through the rails console with a simple Foo.all ) but if I run
sqlite3 from command line and then run .databases I can''t see any
database created.
I thought I could see the
2007 Nov 26
4
writing summary() to a text file
Hi All,
I would like to output the results of a function into a text file,
legible as a such. The function produces a summary quite like:
summary(lm(x ~ y + w * z))
[for instance]
and I am not clear how to save this summary into a text file
'automagically', because I need to be able to do it in a for() loop.
Cheers,
Federico
--
Federico C. F. Calboli
Department of Epidemiology