Hello,
Here is one way...
m <- matrix(1:16, nrow=4)
end <- c(2, 3, 1, 3)
ii <- cbind(sequence(end), rep(1:length(end), end))
sums <- tapply(m[ ii ], ii[ , 2], sum)
And here is another way...
sums <- mapply(function(col, lastrow) sum(m[1:lastrow, col]), 1:ncol(m), end)
Hope this helps,
Michael
So you need to cbind the four vectors together... ?cbind
"saggak" wrote:
>Dear R helpers
>
>I have a data frame as given below
>
>df = data.frame(A = c(776,827,836,995,855,1026,1203,1363,965,1195),
>�� B =
>c(806,953,1049,1056,1243,764,1148,1162,948,1154),
>��
m <- c(1004.1, 1028.3, 1044.3, 861.4)
s <- c(194.5899, 158.7052, 123.3000, 285.8695)
x <- mapply(function(mi, si) rnorm(25, mi, si), m, s)
Hope this helps,
Michael
On 11 January 2011 17:44, saggak wrote:
> Dear R helpers
>
> I have a data frame as given below
>
> df = data.frame(A = c(776,827,
Hello,
I have a xts object, I would like to fill the NA with linear
interpolated data. Can anyone please help.
> str(zz)
An xts object from 2010-11-24 15:59:29 to 2010-11-24 16:00:00 containing:
Data: num [1:23401, 1] 312 312 312 312 312 ...
Indexed by objects of class: [POSIXct,POSI
Hello
Suppose I have a matrix mat=(1:16,2)
[,1] [,2] [,3] [,4]
[1,]159 13
[2,]26 10 14
[3,]37 11 15
[4,]48 12 16
there is a vector end=c(2,3,1,3)
#coerce the 1st 2 numbers of the 1st column to a vector [1] 1 2
#coerce the 1st 3 numbers of
Hello
Suppose I have a matrix mat=(1:16,2)
[,1] [,2] [,3] [,4]
[1,]159 13
[2,]26 10 14
[3,]37 11 15
[4,]48 12 16
I just want to use the "apply" function to the matrix partially
there is a vector end=c(2,3,1,3)
#sum the 1st 2 numbers of
Hi Folks,
I've got a question regarding the 'quantreg' package maintained by Roger
Koenker:
I tried to produce LaTeX tables using the longtable and dcolumn options
as decribed in the manual, but the function latex() doesn't seem to
react on _any_ other options than 'digits' and 'transpose'.
On Sun, Jan 9, 2011 at 9:31 AM, Duncan Mackay wrote:
> Dear All
>
> I have a problem with the height of the boxes in the key in the following.
> (The text is over 2 lines to accentuate the problem of no space between the
> rectangles.)
> Is there an easy way to put a space between the rectangles;
Dear R helpers
I have a data frame as given below
df = data.frame(A = c(776,827,836,995,855,1026,1203,1363,965,1195),
B = c(806,953,1049,1056,1243,764,1148,1162,948,1154),
C = c(959,1155,1193,1163,863,1070,1087,877,1132,944),
D
my dataset looks like :
>df
VIX GLD FAS
12 4 5
28 9 10
356 9 98 .. continued
the dataset has n observations which is fixed and i need to create a
function :
test <- function(variable name, value) -- this function has to insert the
value under the re
Dear All
I have a problem with the height of the boxes in the key in the following.
(The text is over 2 lines to accentuate the problem of no space
between the rectangles.)
Is there an easy way to put a space between the rectangles; size
controls the width but there appears to be nothing for t
On Mon, Jan 10, 2011 at 8:23 PM, analys...@hotmail.com
wrote:
> an example available on the net goes like
>
>> df
> identifier quantity
> 1 1 10
> 2 1 20
> 3 2 30
> 4 1 15
> 5 2 10
> 6 3 20
>> aggregate(df$q
( again top posting since hotmail isn't adding ">" and these comments
apply to whole thread anyway )
I'm not a statistician either but rather an engineer who has had a chance to use
my intro stats/math background to look at some real life situations.
I'm just making comments for conversation, ho
On Mon, 10 Jan 2011, efreeman wrote:
I'm looking for a formula for memory usage in standard regression; that
is, if I have X rows with Y predictors, how much memory is needed? I'm
speccing out a system, and I'd like to be able to get enough memory
that we can do some fairly large regressions.
I am reading the Mining of Massive Datasets Book by Rajaraman and
Ullman. It has a good explanation of Recommendation System at Chapter
9.
But what are the relationship between
1) SVD (Singular Decomposition)
2) UV-Decomposition
3) NMF (Non-negative Matrix Factorization)
In particular, it
an example available on the net goes like
> df
identifier quantity
1 1 10
2 1 20
3 2 30
4 1 15
5 2 10
6 3 20
> aggregate(df$quantity, by=list(df$identifier), sum)
Group.1 x
1 1 45
2 2 40
3
Can you provide an example of your code?
-
Corey Sparks, PhD
Assistant Professor
Department of Demography and Organization Studies
University of Texas at San Antonio
501 West Durango Blvd
Monterey Building 2.270C
San Antonio, TX 78207
210-458-3166
corey.sparks 'at' utsa.edu
https://rowdyspa
Hi Sebastian,
You might also find the proto package useful as a way of restricting
the scope of variables. It provides a more intuitive (at least to me)
way of packaging variables and functions up into environments that can
be related in a hierarchy.
Michael
On 10 January 2011 23:48, Sebastien B
Dear Greg,
first of all thanks for your reply. And I add also many thanks to all of you
guys who are helping me, sorry for the amount of questions I recently posted
;-)
I don´t have a solid statistics background (I am not a statician) and I am
basically learning everything by myself.
So my
That's fine. Am I correct that this is the format you want for the output
file?
nams <- c("fldsampid", "CLP_ID", "sacode", "matrix", "etc.", "CL",
"PO4", "SO4AG", "AL", "AS", "B", "V", "Zn", "etc.", "ALK",
"ALKB", "ALKC", "SOLID", "DOC", "TOC", "NO3")
It seems a bit suspicious as you have et
In view of your further explanation, Robin, the best I can offer
is the following.
[1] Theoretical frame.
*IF* variables (X1,X2,X3) are distributed according to a
mixture of two multivariate normal distributions, i.e. as
two groups, each with a multivariate normal distribution,
*AND* the members o
Dear R-community,
Rwiki is broken (well, some of the syntax is anyway). Anyone have some
insight as to what is needed to fix it?
Sincerely,
KeithC.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the pos
Hi,
I am looking for an Rmpi tutorial. Can someone please point me to a helpful
tutorial?
In particular, I am wanting to use mpi.spawn.Rslaves() function of Rmpi
package. The
difficulty I am having is that I want to use (arbitrary?) node on the local
network. I
am trying hosts argument of
On Jan 10, 2011, at 5:28 PM, efreeman wrote:
I'm looking for a formula for memory usage in standard regression;
that
is, if I have X rows with Y predictors, how much memory is needed? I'm
speccing out a system, and I'd like to be able to get enough memory
that we can do some fairly large regr
The size of the model matrix X can be estimated approximately. It depends on
the kind of data in the model matrix. For instance, floating points require
more memory than integers (which I think is 8 bits per cell). If your model
matrix is sparse, you can use some hidden functions in the matrix p
I'm looking for a formula for memory usage in standard regression; that
is, if I have X rows with Y predictors, how much memory is needed? I'm
speccing out a system, and I'd like to be able to get enough memory
that we can do some fairly large regressions.
==Ed Freeman
[[alternative HTML
Thank you John,
I have put a copy of the dput file below my signature block. I hope that is
what you need as I am unfamiliar with that function. Note that empty cells
need to become "NA".
The "=" character is part of the "PARVALUE" column.
Yours,
Guy
gj...@itsi.com
structure(list(X = c(2268L,
I was actually looking to create a similar type of graph in R.
But I guess I am going to try to approach it by using a stacked column chart
and hiding the 'net' series, while only showing the increases/decreases in
value.
I'll post an update later on what I come up with.
--
View this message i
Hello
I am running a program from value intervals for a set of variables.
I thought I could use Smolyak to get my intervals adding points as I need
them , so instead of running the program for a whole interval I would run
only for the most important points.
I am new to Smolyak algorithm though, a
Hello, I am on a laptop with Win7, running R-2.12.1
if I click on Packages/InstallPackages I get :
> utils:::menuInstallPkgs()
Warning: unable to access index for repository
http://cran.skazkaforyou.com/bin/windows/contrib/2.12
Warning: unable to access index for repository
http://www.stats.ox.a
Hi all,
I performed a simulation study on R for bootstrap, permutation and classic
version of hotelling T^2 test.
I aimed to compare 2 groups to see the performances of these tests for n=
20, 50, 100 and 500. For this reason I investigated type 1 error rates. I
found that for n=20 type I error r
Hi:
This seems to work on the following toy example:
df <- data.frame(gp = rep(LETTERS[1:6], each = 10), y = rnorm(60))
files <- paste('file', 1:6, '.csv', sep = '')
mapply(write.csv, split(df, df$gp), file = files,
MoreArgs = list(quote = FALSE, row.names = FALSE))
mapply() works h
On 2011-01-10 12:56, menno wrote:
Hello,
I am looking for a way to quickly split a data frame containing daily
temperature readings into a series of individual data frames, one for each
year, in order to save them as individual .csv files which will be named
according to Year. I would prefer no
That sample data set is really hard to read. Could you resent it after having
used dput on it?
A file output with dput is easily read into R and makes seeing what you need
much easier. BTW what are the = doing?
Thanks
--- On Mon, 1/10/11, Guy Jett wrote:
> From: Guy Jett
> Subject: [R
?object.size
-- Bert
On Mon, Jan 10, 2011 at 11:16 AM, maddox wrote:
>
> Hi,
>
> I haven't found a way to display the memory location of an object in R.
> Is there one? (I want to see whether some code 'grows' an object, and
> an ever-changing memory location for the object would presumably conf
serialize() and unserialize() in the base package
should do the job also and are usually quite a bit
faster than dput() and dget(). However, the format
is not easily read by other programs.
Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
> -Original Message-
> From: r-help-boun.
Not sure, but one possible candidate problem is that in your simulations one
iteration ended up with fewer levels of a factor than the overall dataset and
that caused the error.
There is no recode function in the default packages, there are at least 6
recode functions in other packages, we cann
Hello,
I am looking for a way to quickly split a data frame containing daily
temperature readings into a series of individual data frames, one for each
year, in order to save them as individual .csv files which will be named
according to Year. I would prefer not to use a series of "subset" comman
On 01/10/2011 11:16 AM, maddox wrote:
>
> Hi,
>
> I haven't found a way to display the memory location of an object in R.
> Is there one? (I want to see whether some code 'grows' an object, and
> an ever-changing memory location for the object would presumably confirm
> this)
For what you ask
Greetings,
I am new to R and am having trouble with parsing a file with the following
characteristics:
* Individual results for a single sample are written to multiple lines.
* First 16 columns are constant from sample to sample.
* Remaining 10 need to be matched up (cro
I am too negligent... thank you very much for pointing out that!
--
View this message in context:
http://r.789695.n4.nabble.com/how-to-run-linear-regression-models-at-once-tp3179256p3207823.html
Sent from the R help mailing list archive at Nabble.com.
___
Dear Ted,
sorry for being unclear. Let me try again.
I indeed have no knowledge about the value of the response variable for
any object.
Instead, I have a data frames of explanatory variables for
each object. For example,
x1 x2 x3
1 4.409974 2.348745 1.9845313
2 3.809249 2
Dear R users,
I am having problems loading the akima package. I use Windows XP, and R
version 2.12.1.
When I try to load the package I get this error message:
Error: package 'akima' is not installed for 'arch=i386'
Any help appreciated and thanks you for your time.
Carlos Montenegro Silva
Magí
Your email client cannot read this email.
To view it online, please go here:
http://email.careermailer.com:2020/display.php?M=161372&C=63b37a209d9dced6e8262a1862c616e4&S=552&L=5&N=559
To stop receiving these
emails:http://email.careermailer.com:2020/unsubscribe.php?M=161372&C=63b37a209d9dced6e826
Hi,
I haven't found a way to display the memory location of an object in R.
Is there one? (I want to see whether some code 'grows' an object, and
an ever-changing memory location for the object would presumably confirm
this)
Thanks
m
--
View this message in context:
http://r.789695.n4.nabble
?approxfun
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of Alaios
> Sent: Monday, January 10, 2011 9:43 AM
>
How about dput and dget in the base package?
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of Rainer M Krug
>
I am trying to model survival data with a Weibull distribution
using survreg. Units are clustered two apiece, sometimes receiving
the same treatment and so
I can't get hotmail to indicate the original text so I'm going to top
post. There seems to be a lot of back and forth here, let me see if these
comment help guide discussion a bit.
I tried to run some histograms of your experiment (prior to a bunch of other
things )
and IIRC in many cases
you h
On Jan 10, 2011, at 1:29 PM, wangwallace wrote:
hey, Dennis,
I applied your syntax into my data frame with different variable
names.
Specifically, I replaced y1 and y2, with ocbi and ocbo. I got the
following
error message. Could you please explain why would this happen? Again,
thanks!
On 1/8/2011 12:29 PM, primozv wrote:
Hello everyone!
I'm working this school project in R and everything was fine until I moved
to other computer.
The problem is that I can't load few libraries like "Snowball" or "openNLP".
Like I said, everything was fine on other computers, but at the moment
hey, Dennis,
I applied your syntax into my data frame with different variable names.
Specifically, I replaced y1 and y2, with ocbi and ocbo. I got the following
error message. Could you please explain why would this happen? Again,
thanks!
> for(i in 1:5){fm1<-as.formula(paste('ocbi',ms[i],sep='
Dear Experts,
We conducted an experiment with 2 within-subject factors. We have very
good reason to use gamlss, which works fine for our dataset, but
unfortunately in the final model the vcov matrix can not be produced. This
possibility is documented in the gamlss manual, but no hint is given how
What is the question you are really trying to find the answer for? Knowing
that may help us give more meaningful answers.
You keep wanting to test the residuals for normality, but it looks like you are
doing it because some outdate recipe suggests it rather than that you
understand why.
It is
I want to make an abstraction of the parameters (assuming that they are
unknown)
for the user-defined function. Is it possible?
In the bar function, if the user doesn't define any function, my.func will be
invoked with known parameters (if part of the code). If the user defines his
own
functi
On 10.01.2011 18:24, carol white wrote:
If it doesn't make sense, how to invoke in the bar function, my.func with
specified parameters with known values and how to invoke my.func.user if the
user defines his own function (without specifying the parameters)?
he arguments must be specified in
On Jan 7, 2011, at 3:33 PM, Terry Therneau wrote:
For any given pre-specified gene or short list of genes, yes the Cox
model works fine. Two important caveats:
1. Remeber the rule of thumb for a Cox model of 20 events per variable
(not n=20). Many microarray studies will have very marginal s
try this:
> f.main <- function(vec){
+ breaks <- seq(-3, by = 1, length = length(vec) + 1L)
+ function(x){
+ indx <- findInterval(x, breaks)
+ vec[indx]
+ }
+ }
> f1 <- f.main(c(3,4,5,1,2,3,4,5))
> f2 <- f.main(c(5,6,2,4,7,3,2,5))
> f3 <- f.main(c(1,2,4,7,3,1,3,5))
>
>
On 2011-01-10 07:38, David A. wrote:
Dear list, havig the following matrix
"Value" "Class"
13.001
12.801
11.781
11.702
11.612
11.952
11.552
12.403
11.401
12.271
12.493
11.394
11.804
12.393
12.723
12.183
11.643
11.504
12.81
On Mon, Jan 10, 2011 at 03:21:18PM +0100, joke R wrote:
> Dear all,
>
> I have a problem with arrays.
> Simplified, I have two arrays:
>
> A =
> [,,1]
> 1 2 3
> 4 5 6
> 7 8 9
>
> [,,2]
> 10 11 12
> 13 14 15
> 16 17 18
>
> B=
> 1 1 2
> 1 1 2
> 3 3 2
>
> Basically,
If it doesn't make sense, how to invoke in the bar function, my.func with
specified parameters with known values and how to invoke my.func.user if the
user defines his own function (without specifying the parameters)?
- Original Message
From: Uwe Ligges
To: carol white
Cc: r-h...@st
On 10.01.2011 16:41, carol white wrote:
Note that I will call my function or user-defined function in bar function to
have the value that my or user-defined function returns. So how can these
function be invoked? Can it be like this?
bar<- function(arglist, foo){
if(missing(foo)) {
Greetings R members.
I have a few vectors that denote the 'steps' of different step functions
v1=c(3,4,5,1,2,3,4,5)
v2=c(5,6,2,4,7,3,2,5)
v3=c(1,2,4,7,3,1,3,5)
Here v1,v2,v3 are considered as the steps for the f1,f2,f3 step functions.
For example f1 looks like that (step size is always same and
Try this:
combn(colnames(asd), 2, function(x)table(asd[x]))
On Mon, Jan 10, 2011 at 2:34 PM, Patrick Hausmann <
patrick.hausm...@uni-bremen.de> wrote:
> Dear list,
>
> I want to apply the "table" function to every pair of variables in df and
> the return should be a list.
>
> setwd(123)
> asd <-
On 2011-01-10 07:34, Rainer M Krug wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 01/10/2011 04:27 PM, Ivan Calandra wrote:
I agree that the R-Core team has better things to do than that, but
since it's already there, why not just add it to the base functions?
Agree completely - and
Dear list,
I want to apply the "table" function to every pair of variables in df
and the return should be a list.
setwd(123)
asd <- data.frame(a1=sample(1:4, 20, replace=TRUE),
a2=sample(1:4, 20, replace=TRUE),
a3=sample(1:4, 20, replace=TRUE),
Dear Terry
thank you very much for this. The number of events in my data is well
above the suggested size. What concerns me is the fact that a very high
proportion of probes comes up as significant when I just randomly select
them. This just seems not be biologically meaningful. Do you know of
Hello
I am running a program from value intervals for a set of variables.
I thought I could use Smolyak to get my intervals adding points as I need
them , so instead of running the program for a whole interval I would run
only for the most important points.
I am new to Smolyak algorithm though, a
On 10 January 2011 16:38, Santosh Srinivas wrote:
> Thanks Baptiste that works but keen to know if there are other ways.
>
> I'm new to ggplot .. just wondering if there is no easy way to overlay the
> new data i.e vol over my Close chart?
Sure, ggplot2 has the concept of layers,
qplot(Date, Clo
Note that I will call my function or user-defined function in bar function to
have the value that my or user-defined function returns. So how can these
function be invoked? Can it be like this?
bar <- function(arglist, foo){
if(missing(foo)) {
foo <- my.func
v = my.func(
Dear list, havig the following matrix
"Value" "Class"
13.001
12.801
11.781
11.702
11.612
11.952
11.552
12.403
11.401
12.271
12.493
11.394
11.804
12.393
12.723
12.183
11.643
11.504
12.814
11.314
11.952
12.652
Thanks Baptiste that works but keen to know if there are other ways.
I'm new to ggplot .. just wondering if there is no easy way to overlay the
new data i.e vol over my Close chart?
-Original Message-
From: baptiste auguie [mailto:baptiste.aug...@googlemail.com]
Sent: 10 January 2011 18
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 01/10/2011 04:27 PM, Ivan Calandra wrote:
> I agree that the R-Core team has better things to do than that, but
> since it's already there, why not just add it to the base functions?
Agree completely - and R.utils is not such an obscure package whi
I agree that the R-Core team has better things to do than that, but
since it's already there, why not just add it to the base functions?
Le 1/10/2011 16:19, Peter Ehlers a écrit :
On 2011-01-10 06:45, Ivan Calandra wrote:
Why isn't it in R base? Good question... I'm definitely not the one able
On 2011-01-10 06:45, Ivan Calandra wrote:
Why isn't it in R base? Good question... I'm definitely not the one able
to answer to it!
Maybe someone more involved in the development can?
Ivan
Well, I suspect that Rainer has been on this list long
enough to know the answer:
Because no has convince
Oops! Good catch. I have been coding in python and R recently and now I'm
mixing conventions ... R's automatic line wrapping and Python's
auto-catenation given a line wrap (via '\').
A better solution would be:
a <- paste("rey lo",
"ong ch
"Jonathan P Daily" wrote in message
news:of588e803b.869e9aff-on85257814.004d298d-85257814.004d4...@usgs.gov...
>a <- "rey lo
>ong charrr"
>
> Although the indentation is just personal preference.
> --
> J
Thanks a lot :)
Feeling embarassed !
Alex
--- On Mon, 1/10/11, Petr PIKAL wrote:
> From: Petr PIKAL
> Subject: Odp: [R] Integration in R
> To: "Alaios"
> Cc: r-help@r-project.org
> Date: Monday, January 10, 2011, 2:45 PM
> Hi
>
> r-help-boun...@r-project.org
> napsal dne 10.01.2011 15:12:33:
You are missing basic algebra skills!
You had:
myfunc<- function(x) {0.25*(9*x^4 + 6*x^2 + 1)}
This should be:
myfunc<- function(x) {0.25*(9*x^4 - 6*x^2 + 1)}
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medici
Why isn't it in R base? Good question... I'm definitely not the one able
to answer to it!
Maybe someone more involved in the development can?
Ivan
Le 1/10/2011 15:42, Rainer M Krug a écrit :
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 01/10/2011 03:35 PM, Ivan Calandra wrote:
Hi,
If I u
Hi
r-help-boun...@r-project.org napsal dne 10.01.2011 15:12:33:
> Dear all,
>
> It has been ages since I studied integration in college. Right now I
> try to recover all this kind of knowledge and then try to understand how
> integration works.
>
>
>
> Thus I am doing some first 'experim
On 2011-01-10 02:36, Tutu2008 wrote:
The guide of R Code style recommends to write script with a maximal
length of 80 characters?
how to break a line longer than 80 characters like
filename_name<- ("/blaaa/"/
blaaa/data.csv")
I would use
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 01/10/2011 03:35 PM, Ivan Calandra wrote:
> Hi,
>
> If I understood you correctly, you can use saveObject()/loadObject()
> from package R.utils, like this:
Correct - thanks - that is what I was looking for.
But why is no such function in R base?
Hi,
If I understood you correctly, you can use saveObject()/loadObject()
from package R.utils, like this:
library(R.utils)
saveObject(x, "x.Rbin")
rm(x)
y <- loadObject("x.Rbin")
HTH,
Ivan
Le 1/10/2011 15:24, Rainer M Krug a écrit :
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi
I am wr
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi
I am writing simulations in R, and quite regularly, I have to save lists
and objects to HDD and load it later again.
So I am wondering: why is there no function to write lists (and S3, S4
objects) onto HDD WITHOUT keeping the name? What I mean is:
Dear all,
I have a problem with arrays.
Simplified, I have two arrays:
A =
[,,1]
1 2 3
4 5 6
7 8 9
[,,2]
10 11 12
13 14 15
16 17 18
B=
1 1 2
1 1 2
3 3 2
Basically, B declares to which cluster the values of A belong to. Now I
want an array C where for each cluster
To elaborate, expressions and any explicit enclosures can also be simply
split between lines. Often, this is done without space issues just for
clarity.
EX:
vec <- c(LETTERS[1:5], 1:5,
letters[1:5])
plot(X, Y, main = "A plot", xlab = "X Values", ylab = "Response",
lty = 1,
Dear Sir/Madam,
I am a PhD student at the dept. of Epidemiology, Biostatistics and HTA
of the Radboud University Nijmegen Medical Centre, Nijmegen, The
Netherlands. My project is about the role of genetic variants in the
prognosis of urinary bladder cancer. For my project, I'm currently
analyzi
Dear all,
It has been ages since I studied integration in college. Right now I
try to recover all this kind of knowledge and then try to understand how
integration works.
Thus I am doing some first 'experiments' and I would like to request your help
and comments.
I have the function:
a <- "rey lo
ong charrr"
Although the indentation is just personal preference.
--
Jonathan P. Daily
Technician - USGS Leetown Science Center
11649 Leetown Road
Kearneysville WV, 25430
(304) 724-4480
"Is the
On 10.01.2011 14:56, carol white wrote:
Let the following definitions:
# my definition
my.func<- function (x,y,z){
return (v)
}
# user-defined definition
my.func<- function (x){
...
return(v)
}
Considering that my.func can have different parameters but always return a
vector, how to us
Hello
I have a data consisting of 245 counties, including the population,
number of illness and the geographical information of each county. Fixing each
county, I want to sort the other county by distance, which can make a 245*245
matrix with each cell is the corresponding index of the c
Nice solution :)
Another one:
m <- matrix(c(T,T,F,T),nr=2)
m
matrix(as.integer(m), dim(m))
-
--
http://djhurio.wordpress.com/
http://twitter.com/djhurio
http://www.linkedin.com/in/martinsliberts
http://www.csb.gov.lv/
--
View this message in context:
http://r.789695.n4.nabble.com/Chang
G'morning
What does the error message "Error in x %*% coef(object) : non-
conformable arguments" indicate when calculating the response values
for
newdata with a model from bigglm (in package biglm), and how can I
debug it? I am attempting to do Monte Carlo simulations, which may
explain the loop
Thanks for everyone's suggestionsI didn't realise it was so
straightforward- thanks for teaching me new tricks!
Emma
--
View this message in context:
http://r.789695.n4.nabble.com/Changing-a-logical-matrix-into-a-numeric-matrix-tp3206797p3206844.html
Sent from the R help mailing list archiv
Isn't Ctrl+a used for "select all" in R GUI (under Windows)? Ctrl+e does not
work for me. What editor are you using?
-
--
http://djhurio.wordpress.com/
http://twitter.com/djhurio
http://www.linkedin.com/in/martinsliberts
http://www.csb.gov.lv/
--
View this message in context:
http://r.7896
djhurio wrote:
>
> Isn't Ctrl+a used for "select all" in R GUI (under Windows)? Ctrl+e does
> not work for me. What editor are you using?
>
The general question seems to refer to the case of running R console
directly from your operating-system's prompt-line (e.g. C:\).
Well, if you are usin
The guide of R Code style recommends to write script with a maximal
length of 80 characters?
how to break a line longer than 80 characters like
filename_name <- ("/blaaa/"/
blaaa/data.csv")
I did not find any answer while googling.
Thank y
Let the following definitions:
# my definition
my.func <- function (x,y,z){
return (v)
}
# user-defined definition
my.func <- function (x){
...
return(v)
}
Considering that my.func can have different parameters but always return a
vector, how to use v in bar by initializing parameters whe
On 10.01.2011 14:39, carol white wrote:
In fact, what the function is returning is the most important. So knowing that
the parameters and the number of parameters of my.func defined by the user could
be different from one definition to another, how to use what my.func returns in
other functions
1 - 100 of 122 matches
Mail list logo