Hi,
Try:
df2 <- df
df2[] <- lapply(df2,function(x)
as.character(as.numeric(factor(x,levels=unique(df$G1)
A.K.
On Sunday, April 13, 2014 3:36 PM, Sergio.pv wrote:
I have a data.frame of two vectors.
df <- data.frame(G1=c("b","a","e","d","c"),
G2=c("c","d","e","b","a"))
I recently had an issue while trying to use the package tm.plugin.webmining.
I was able to get a hack to work for me and I wanted to share the diff and
bring this to someones attention.
Or what is the proper way to report a bug for third party code?
Cheers
# error I get when using the plugin
I am trying to create a function that will allow me to determine the number of
components to retain based on the results of the broken stick criterion. In
order to do so I know I need to compare the initial eigen values to the broken
stick eigen values. The initial eigen value which becomes lo
On 4/13/2014 7:41 PM, Gabor Grothendieck wrote:
On Sun, Apr 13, 2014 at 1:26 PM, John Fox wrote:
I've attached the most recent data I have, which are from mid-2012. My
package counts came from
https://svn.r-project.org/R/branches/R-*-branch/tests/internet.Rout.save
(where the * is the R version
(minor correct)
On 4/13/2014 7:41 PM, Gabor Grothendieck wrote:
On Sun, Apr 13, 2014 at 1:26 PM, John Fox wrote:
I've attached the most recent data I have, which are from mid-2012. My
package counts came from
https://svn.r-project.org/R/branches/R-*-branch/tests/internet.Rout.save
(where the
I am quite new to R and I am having trouble figuring out how to select
variables in a multivariate linear regression in R. My google-fu also
did not find anything.
Pretend I have the following formulas:
P = aX + bY
Q = cZ + bY
I have a data frame with column P, Q, X, Y, Z and I need to find a, b
Thanks, I did not realize it was deleting rows! I was afraid to try
"pairwise.complete.obs" because it said something about resulting in a
matrix which is not "positive semi-definite" (and googling that term
just confused me more). But I ran the dataset through JMP and got the
same answers so I t
On Sun, Apr 13, 2014 at 1:26 PM, John Fox wrote:
> I've attached the most recent data I have, which are from mid-2012. My
> package counts came from
> https://svn.r-project.org/R/branches/R-*-branch/tests/internet.Rout.save
> (where the * is the R version).
>
It seems that the growth is exponent
Hi,
I think in this case, when you use "na.or.complete", all the NA rows are
removed for the full dataset.
cor(swM[-1,1:2])
# FrtltyAgrclt
#Frtlty 1.000 0.3920289
#Agrclt 0.3920289 1.000
cor(swM[-1,])[1:2,1:2]
#FrtltyAgrclt
#Frtlty 1.000 0.3920289
#Agrclt 0
Please post in plain text per the Posting Guide.
Read ?cor, particularly the part about "complete.cases". Your two cases have
different effective input rows.
---
Jeff NewmillerThe . .
Hi,
I can't seem to figure out why this gives me different answers. Probably
something obvious, but I thought they would be the same.
This is an minimal example from the help page of cor() :
> ## swM := "swiss" with 3 "missing"s :
> swM <- swiss
> colnames(swM) <- abbreviate(colnames(swiss), min
Hello,
I would like to probe a significant 2-way, cross-level interaction effect
from a linear mixed effects model that I ran using nlme.
My model is as follows:
mlmmodel <- lme(fixed = RegDiseng ~ Happy + TraitHAPPYmean +
Happy*TraitHAPPYmean,
random = ~ Happy | ID, data = data, na.
I am quite new to R and I am having trouble figuring out how to select
variables in a multivariate linear regression in R. My google-foo also did
not find anything.
Pretend I have the following formulas:
P = aX + bY
Q = cZ + bY
I have a data frame with column P, Q, X, Y, Z and I need to find a,
Hi AK,
I must admit that you did an excellent job.
Thanks very much.
My analysis is manageable now.
Regards,
Atem.
On Sunday, April 13, 2014 8:54 AM, arun wrote:
Hi,
I am formatting the codes using library(formatR). Hopefully, it will not be
mangled in the email.
dir.create("final")
lst1 <- s
Dear John:
Thanks very much.
CRANpackages is now available via SVN checkout of Ecdat from
R-Forge. After it passes R-Forge tests, it will be available via
install.packages("Ecdat", repos="http://R-Forge.R-project.org";).
Best Wishes,
Spencer
On 4/13/2014 10:26 A
Karina Charest Castro gmail.com> writes:
>
> Hi!
This question is more appropriate for r-sig-mixed-mod...@r-project.org.
Please repost there (I will add a few questions/comments below that
you should probably address when you repost)
> I am trying to do a glmer.nb but get this error:
> Error
John Kane inbox.com> writes:
>
> Can you resend the information in plain text?
> It looks like you sent it in html format and it is very close to
> completely unreadable.
>
> John Kane
> Kingston ON Canada
You've also posted this question at CrossValidated:
http://stats.stackexchange.com/
Dear Spencer,
I've attached the most recent data I have, which are from mid-2012. My
package counts came from
https://svn.r-project.org/R/branches/R-*-branch/tests/internet.Rout.save
(where the * is the R version).
I hope this helps,
John
> -Original Message-
> From: r-help-boun...@r-pr
What data exist on the growth of CRAN?
John Fox published some data on it in 2009 ("Aspects of the
Social Organization and Trajectory of the R Project", R Journal,
http://journal.r-project.org/archive/2009-2/RJournal_2009-2_Fox.pdf).
Below please find those numbers plus some addit
Hi,
I am formatting the codes using library(formatR). Hopefully, it will not be
mangled in the email.
dir.create("final")
lst1 <- split(list.files(pattern = ".csv"), gsub("\\_.*", "",
list.files(pattern = ".csv")))
lst2 <- lapply(lst1, function(x1) lapply(x1, function(x2) { lines1 <-
readLine
Thank you very much!!
You saved me a lot of time now!
When you look for the key for hours
Many thank again
André
*De :* arun kirshna [via R]
*Envoyé :* 13 avril 2014 11:23
*Ã :* andre.zacha...@gmail.com
*Objet :* Re: mean calculations from a dframe column
Hi André,
Your codes we
On 04/12/2014 07:03 PM, Duncan Murdoch wrote:
> I think you could hack something like that (see the description in
> ?par3d of how rendering is accomplished), but there's currently no
> support for it, and it wouldn't be easy, as currently P and M in that
> description are read-only quantities comp
On 13.04.2014 01:30, Alpesh Pandya wrote:
@Uwe I tried the same steps from office as well as home network with same
results. Are you using windows 7 with R 3.0.3?
I have seen same question being asked by others without any resolution. Is
anything special about XML package? I am OK use older ve
Can you resend the information in plain text? It looks like you sent it in
html format and it is very close to completely unreadable.
John Kane
Kingston ON Canada
> -Original Message-
> From: rut...@hotmail.co.uk
> Sent: Sun, 13 Apr 2014 00:28:43 +
> To: r-help@r-project.org
> Subj
On 04/13/2014 10:04 AM, drunkenphd wrote:
Jim thx,
Can you please provide me an example how to use my csv data with plotrix
float.pie???
x11(height=10)
map(xlim=c(19,21),ylim=c(39.5,42.5))
for(pp in 1:36) floating.pie(sampledf[pp,1],sampledf[pp,2],
unlist(sampledf[pp,3:4]),radius=0.1)
Jim
__
Hi André,
Your codes were missing in some information. If your code looks like this:
Measure <- function(a, b) { a <- as.matrix(a) b <- as.matrix(b) Mean <-
apply(a, 2, mean, na.rm = TRUE) somme <- c() for (i in seq_along(b)) somme[i]
<- divide(Mean, b[i]) somme <- as.data.frame(somme) return(
26 matches
Mail list logo