Is m[[1]]
what you need?
> On 14 Jul 2015, at 07:40, Alex Kim wrote:
>
> Hello,
>
> I am trying to create a matrix that looks like this, using the
> stri_locate_all function.
>
>> x <- "ABCDJAKSLABCDAKJSABCD"
>> m <- stri_locate_all_regex(x, 'ABCD')
>> m
>[[1]]
> start end
>[1,
Hello,
I am trying to create a matrix that looks like this, using the
stri_locate_all function.
> x <- "ABCDJAKSLABCDAKJSABCD"
> m <- stri_locate_all_regex(x, 'ABCD')
> m
[[1]]
start end
[1,] 1 4
[2,]10 13
[3,]18 21
I tried converting m into a
Hello,
I am trying to create a matrix that looks like this, using the
stri_locate_all function.
> x <- "ABCDJAKSLABCDAKJSABCD"
> m <- stri_locate_all_regex(x, 'ABCD')
> m
[[1]]
start end
[1,] 1 4
[2,]10 13
[3,]18 21
I tried converting m into a
Dear all,
I have a strongly balanced panel dataset of 46 entities x11 years.
Observed vars are not normally distributed
How should I simulate the ov ?
I do not know the distribution
Can somebody pl help
--
**
*Deva*
[[alternative HTML version deleted]]
On 7/13/2015 6:02 PM, Lida Zeighami wrote:
Hi Dan,
Thanks for reply,
Sorry the format of matrix is ruiend!
Yes, this matrix is 6×6 but my orginal matrix is so biger than this!!
No, I don't think so your code do that for me!
I want to remove the columns which the sum of their values are equal to
Hello,
Sorry if this has already been addressed before but I could not find any
helpful references.
I would like to create a function that outputs a single element of a list
but stores all elements, similar to 'lm' and many other functions. There
are several answers on how to return multiple obj
I am using MSBVAR package in R, and have used the following codes:
library("MSBVAR")
data(IsraelPalestineConflict)
granger.test.c <- function(x) c(granger.test(x, p = 6))
aa<-rollapplyr(IsraelPalestineConflict, 1275, granger.test.c,
by.column = FALSE )
In rollapply, the width is 1275 (data contai
Hi there,
This is a newbie question, and I'm sure there are simple ways to do this,
but I've spent my entire afternoon and I couldn't get it to work.
Imagine that I got my samples distributed along a transect and my data
refer to the first and last occurrences of each sample. For instance:
> dat
According to "R Graphics" by Paul Murrell, the coordinates that were used for
the
most recent lattics plot can be retrieved with "native" units.
I have difficulties to access these coordinates. The following code
renders the following results:
library(grid)
library(lattice)
pl <- xyplot(1:10
I am sorry for the slow response. Please note that these are better
channels for igraph help: http://igraph.org/r/#help
As for your question, can you please send some R code that
demonstrates your problem?
Gabor
On Tue, May 19, 2015 at 1:50 AM, Aziz, Muhammad Fayez
wrote:
> Dear Gabor,
>
>
>
>
Hi there,
I have a matrix which its elements are 0, 1,2,NA
I want to remove the columns which the colsums are equal to 0 or NA and
drop these columns from the original matrix and create the new matrix for
the nonzero and NA value?
(I think I have consider na.rm=True and remove the colums with col
Hello,
I want to test a regression model with neuroticism as focal predictor,
agreeableness as moderator and RT variability as dependent measure (covariates:
attentional control and mean RT). Previously, I have used the modprobe macro in
SPSS by Andrew Hayes for this (for full reference see end
Hello,
I am trying to follow up a significant moderation effect in my data, using the
pick-a-point (pap) and Johnson-Neyman (J-N) techniques. I have found the
probemod package for this, which is very useful. Working with it over the last
few weeks, 3 minor queries about the output have come up
Dear all,
I have a strongly balanced panel dataset of 46 entities x11 years.
Observed vars are not normally distributed
How should I simulate the ov ?
I do not know the distribution
Can somebody pl help
--T&R ... Deva,
[[alternative HTML version deleted]]
On Jul 13, 2015, at 8:36 AM, Sarah Goslee wrote:
> On Mon, Jul 13, 2015 at 11:19 AM, Bert Gunter wrote:
>> No, Sarah.
>>
>> na.action must be a function, not a character string. But you're
>> close: there is no na.include function, as the message says. It
>> should be na.exclude .
>
> My apol
On Mon, Jul 13, 2015 at 11:19 AM, Bert Gunter wrote:
> No, Sarah.
>
> na.action must be a function, not a character string. But you're
> close: there is no na.include function, as the message says. It
> should be na.exclude .
My apologies: I was assuming it worked like options():
> class(option
On Jul 13, 2015, at 12:04 AM, Patty Haaem via R-help wrote:
> Dear All,I am trying to fit one compartment IV bolus model on pharmacokinetic
> data using phenoModel function in nlme package, based on a tutorial entitled
> "Development of population PK model using R- Case study I". The codes are
No, Sarah.
na.action must be a function, not a character string. But you're
close: there is no na.include function, as the message says. It
should be na.exclude .
Cheers,
Bert
Bert Gunter
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
-- Cli
On Mon, Jul 13, 2015 at 3:04 AM, Patty Haaem via R-help
wrote:
> Dear All,I am trying to fit one compartment IV bolus model on pharmacokinetic
> data using phenoModel function in nlme package, based on a tutorial entitled
> "Development of population PK model using R- Case study I". The codes a
Thank you Jeff,
Your solutions have two great aspects: a) you provide a different
approach by using reshape2 syntax / tidyr, and b) the concern that it is
better to update x.HHu.map with y.HHo.map, without overwriting x.HHu.map
with NA from y.HHo.map, thus keeping intact the old value(s). That i
just to correct something :
in your test1 call, you are not supplying arguments for what should
be used for the innovations associated with start.innov which is used
for the burn in period. So, arima.sim uses the defaults of mean = 0
and sd = 1.0.
> set.seed(123);
> test1 <- arima.sim(model
Hi Mark,
Thanks for your message and sorry for the delay but it took me some time
to understand your message and to try few things.
I think one would say that that is not a bug. I looked at the details
of arima.sim ( using debug(arima.sim) )
and there are two different series that are created i
Dear All,I am trying to fit one compartment IV bolus model on pharmacokinetic
data using phenoModel function in nlme package, based on a tutorial entitled
"Development of population PK model using R- Case study I". The codes are as
fallowing:
library(nlme)mydata.grp <- groupedData(CONC~TIME|CID
Thank you Ista,
Your solution is smart, by sub-setting from x.HHu.map data only "HHid",
"position" as indices (because they are unique) for the merge, and any
extra columns in x.HHu.map that are not present in y.HHo,map, thus when
the merge is done with option all=T, will work among the two sets
Interesting thoughts about the partial-word matches, and speed On
another real data set, about 73,000 records and 6 columns to search
through for matches (one column of which contains very long character
strings--several paragraphs each), I ran both John's and Bert's
solutions. John's was noticea
Hello,
I'm following previous threads on the use of varimp in the R "party" package.
I'm running up against similar problems to that described here (and the thread
referenced therein):
https://stat.ethz.ch/pipermail/r-help/2011-October/292897.html
Specifically, I'm running cforest and then varim
26 matches
Mail list logo