Hi,
Is there a plotmath symbol like LaTeX's \mapsto?
I need this comparably often, for example if you want to plot a
two-place function in one variable (and thus would like to have
ylab="t \mapsto f(t,s)", for example). If there is such a symbol, I'd
be great to have it as an example on ?plotmath.
On Dec 11, 2014, at 4:38 PM, Kathryn Lord wrote:
> Dear R users,
>
> I'd like to make 4 by 7 matrices as many as possible with natural numbers 1
> through 28 such that each matrix have different elements of each column.
I was tempted to respond:
We're very sorry. The Soduko Challenge Contest w
Dear R users,
I'd like to make 4 by 7 matrices as many as possible with natural numbers 1
through 28 such that each matrix have different elements of each column.
For example,
simply here is one
> a1 <- matrix(1:28, 4,7)
> a1
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,]159 13 17
Thank you so much Phil,
I will try that.
Best
On Wed, Dec 10, 2014 at 9:42 PM, Phil Chalmers
wrote:
> As well, the mirt package contains a function for DIF using likelihood
> ratio tests via multiple-group estimation methods (the multiple group
> estimation generally goes beyond simply testing f
Your query is incoherent, at least to me. If others are similarly
flummoxed and you receive no useful reply, read and follow the posting
guide (link below) to provide code, data, etc. for a minimal example
to explain what you wish to do. In PLAIN TEXT -- no HTML.
Cheers,
Bert
Bert Gunter
Genen
I am trying to write a script to run occupancy analysis for very large
sets of data for multiple species. I have in the past used PRESENCE but
would like to use R. I am having trouble getting the ObsCov into the
data frame. I get the following error message:
data1=unmarkedFrameOccu(y=y,siteCovs
Thank you Karim,
I'll try that.
Thanks!
Raff
Sent from my iPhone
> On Dec 10, 2014, at 1:48 PM, "Karim Mezhoud" wrote:
>
> Hi,
> Could you try rbind.na.R function.
> karim
>
> Ô__
> c/ /'_;kmezhoud
> (*) \(*) ⴽⴰⵔⵉⵎ ⵎⴻⵣⵀⵓⴷ
> http://bioinformatics.tn/
>
>
>
>> On Wed, Dec 10, 2014
Sun Shine wrote
> with(MHP.def, {plot(as.integer(MHP.def$Names),cH.E, axes=FALSE,
xlab='Area') axis(side=2) axis(side=1, at=seq_along(levels(MHP.def$Names)),
lab=levels(MHP.def$Names))})
Error: unexpected symbol in "with(MHP.def, {plot(as.integer(MHP.def$Names),
MHP.def$cH.E, axes=FALSE, xlab='Are
Ggplot2 also depends on factors, so learn about them asap. It does have some
support for automatically converting strings to factors in some cases, but it
doesn't always work the way you want it to.
---
Jeff Newmiller
Hello William, Ivan and Jim
I appreciate your replies.
I did suppress the factors using stringsAsFactors=FALSE and in that way
was able to progress some more on getting a sense of the data set, so
thanks for that suggestion. I had previously overlooked it.
Also thanks William, I never understo
Here is an example of converting the 'date' your dataframe to 'time'
(POSIXct) and then taking the first 'time' and creating the 5 previous days
from that date:
id date case
1 1 27apr19931
2 2 13feb20051
3 3 29may20021
4 4 22sep20051
5 5 18dec19911
6 6 07jun
The sample data you provided has the variable 'date'. Since the type of
this variable is 'factor', you may try to convert type of variable from
'factor' to 'date' as shown in the below:
> x$rval <- as.Date(x$date, format="%d%b%Y")-5
> x
id date case rval
1 1 27apr19931 1993
Hi
I have stumbled upon a problem when using gregexpr and regmatches, with the
following error-message:
Error in iconv(x, "latin1", "ASCII") :
'x' must be a list of NULL or raw vectors
The data:
(1)
I have two journal articles and after some regex manipulation I am at the
following situ
Here is a reproducible example
> d <- read.csv(text="Name,Age\nBob,2\nXavier,25\nAdam,1")
> str(d)
'data.frame': 3 obs. of 2 variables:
$ Name: Factor w/ 3 levels "Adam","Bob","Xavier": 2 3 1
$ Age : int 2 25 1
Do you get something similar? If not, show us what you have (you
could
Dear R Community,
I wish to create 5 preceding dates from the date variable by ID. How
could I create such dates? The code should consider leap year.
Thanks
Sample data follows:
structure(list(id = 1:12, date = structure(c(9L, 6L, 11L, 8L,
7L, 5L, 4L, 3L, 12L, 1L, 10L, 2L), .Label = c("01feb20
If you are using 'read.csv' (or 'read.table') to input, then use the 'as.is
= TRUE' parameter to prevent the conversion to factors of the data.
You can also do "as.character(df$col_with_factors)" to get the character
values back.
Jim Holtman
Data Munger Guru
What is the problem that you are try
Hi,
I have a very simple Cox regression model in which I need to include a
nested random effect: individual nested in treatment. I know how to pass a
single random effect - e.g. frailty(id)- but how can I specify the nested
random (id nested in treatment) effect using frailty?
The equivalent in lme
Hi Sun,
If I understood correctly (a reproducible example would be of great
help), it seems you're struggling with factors. Read on this topic to
better understand how it works.
For your plots, you would need to set the labels with the argument
'xlab' for plot(). To access the names of the f
Hello
I am struggling with data frames and would appreciate some help please.
I have a data set of 13 observations and 80 variables. The first column
is the names of different political area boundaries (e.g. MHad, LBNW,
etc), the first row is a vector of variable names concerning various
cens
Hi Michel,
What about
rep(1:10, each=43)
If you need to have characters, you could do something like:
as.character(1:10)
HTH,
Ivan
--
Ivan Calandra, ATER
University of Reims Champagne-Ardenne
GEGENA² - EA 3795
CREA - 2 esplanade Roland Garros
51100 Reims, France
+33(0)3 26 77 36 89
ivan.cala
Hello,
Try the following.
unlist(lapply(1:10, function(n) rep(as.character(n), 43)))
Hope this helps,
Rui Barradas
Em 11-12-2014 10:12, Arnaud Michel escreveu:
Hello
I would like to find an elegant way of calculating
c(rep("1", 43), rep("2",43),, rep("10",43))
Any idea ?
Thank you
__
Hello
I would like to find an elegant way of calculating
c(rep("1", 43), rep("2",43),, rep("10",43))
Any idea ?
Thank you
--
Michel ARNAUD
DGDRD-Drh - TA 174/04
tel : 04.67.61.75.38
port: 06.47.43.55.31
__
R-help@r-project.org mailing list -- To U
Thanks for all the help! Ill give them a shot and compare the results.
On Thu, Dec 11, 2014 at 12:29 AM, Rolf Turner
wrote:
> On 11/12/14 20:09, Michael Selevan wrote:
>
>> This makes sense, thank you for the thorough response!
>>
>> One follow up question though. Would your #2 option be the sam
On 11/12/14 20:09, Michael Selevan wrote:
This makes sense, thank you for the thorough response!
One follow up question though. Would your #2 option be the same as, say,
not using the rand.gen at all and providing the following parameters
instead?
y3 <- arima.sim(n=10, list(ar=0.8), innov=rnorm
24 matches
Mail list logo