Hi R-listers,
I am trying to group my HTL data, this is a column of data of "Distances to
the HTL" data = turtlehatch. I would like to create an Index of distances
(0-5m, 6-10, 11-15, 16-20... up to 60). And then create a new file with this
HTLIndex in a column.
So far I have gotten this far:
Hi R-listers,
I am trying to group my HTL data, this is a column of data of "Distances to
the HTL" data = turtlehatch. I would like to create an Index of distances
(0-5m, 6-10, 11-15, 16-20... up to 60). And then create a new file with this
HTLIndex in a column.
So far I have gotten this far:
On 06/11/2012 11:47 AM, analys...@hotmail.com wrote:
I have a data set whose rows look like
Item date variable_1 variable_2 variable_3 variable_4
Different items may occur over different dates.
During any single study, I might select a subset of the four variables
or some function of them to
wdGet()
Error in if (wdapp[["Documents"]][["Count"]] == 0)
wdapp[["Documents"]]$Add() :
argument is of length zero
Not sure what your error means without more context, you should see:
Loading required package: rcom
Loading required package: rscproxy
Do you have RDCOMClient installed and worki
Dear Andrew,
latextable function under the R package miscFuncs might help you preparing a
LATEX table in R.
For the usage, see an example on the webpage of the author of the package at
http://www.lancs.ac.uk/staff/taylorb1/
Best
Ozgur
--
View this message in context:
http://r.789695.n4.nabble
Dear "codecat"
You can get the most recent version of psych from CRAN. The current version is
1.2.4.
Then, the help page for omega should be of use
library(psych)
?omega
In addition, try the vignette for the psych package.
Or, as of today, there is a more detailed instruction for newbies on
On Jun 10, 2012, at 9:47 PM, analys...@hotmail.com wrote:
I have a data set whose rows look like
Item date variable_1 variable_2 variable_3 variable_4
Different items may occur over different dates.
During any single study, I might select a subset of the four variables
or some function of t
I have a data set whose rows look like
Item date variable_1 variable_2 variable_3 variable_4
Different items may occur over different dates.
During any single study, I might select a subset of the four variables
or some function of them to be plotted against time (date).
For each item, I would
Sorry, but I have no idea then. I run it on a win64, without error message.
Best Regards.
- Mail original -
De : RobMusk
À : r-help@r-project.org
Cc :
Envoyé le : Dimanche 10 juin 2012 8h56
Objet : Re: [R] Re : Matrix package loading problem "Error : object
‘kronecker’ is not export
Agreed...this is much needed!
--
View this message in context:
http://r.789695.n4.nabble.com/Tutorial-for-ff-package-tp4602635p4632964.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.
Hi Andrew,
Have you tried mtable from package "memisc"? This link
(http://leftcensored.skepsi.net/2011/03/13/code-latex-tables-for-lme4-models/)
might be helpful for you.
A.K.
- Original Message -
From: drewmac
To: r-help@r-project.org
Cc:
Sent: Sunday, June 10, 2012 7:57 PM
Subjec
Hi Bert,
I tried the code.
dat2<-data.frame(dat1)
> do.call(order,dat2)
[1] 3 6 1 10 2 5 7 9 8 4
Here, I get the order of 1st column as a list. Is there anything I am missing
here?
Thanks,
A.K.
- Original Message -
From: Bert Gunter
To: arun
Cc: Trying To learn again
I see now the configurations required for ffsave and ffload to work properly,
allowing the ff-package to do what it was designed to do:
1) file permanence
ff objects are stored in a temp directory and are deleted on exiting R.
This is true of both standard and ff objects (so dont blame the packag
Thank you very much, Thomas!
As I need to estimate the variance components, I will most probably have to
switch from R to HLM or Mplus to apply different weights to different
levels.
Although I prefer R in general.
--
View this message in context:
http://r.789695.n4.nabble.com/sampling-weights-
Hello forum,
I want to find in survey how to test V-cramer and coefficient Goodman-Kruskal
gamma, to test the collinearity between varibles to enter a model.
For the V-Cramer function is used with the package vcd assocstats but without
considering the survey package.
I appreciate the cooper
On Mon, Jun 11, 2012 at 10:09 AM, Diana Marcela Martinez Ruiz
wrote:
> Hello forum,
>
> I want to find in survey how to test V-cramer and
> coefficient Goodman-Kruskal gamma, to test the collinearity between varibles
> to enter a model.
>
> For the V-Cramer function is used with the package vcd as
Hello,
Try 'SuppDists' package.
Best Regards
ps: it took less than 2 minutes for me by using a web search engine..
- Mail original -
De : shirin nezampour
À : "r-help@r-project.org"
Cc :
Envoyé le : Lundi 11 juin 2012 1h37
Objet : [R] generating random samples of IG distribution
Hi all,
I would like to print the results of my lmer model (lme4) into a table that
can be sweaved into Latex. I am aware that xtable does not support lme
objects. I have tried the suggestions in the following thread:
https://stat.ethz.ch/pipermail/r-help/2010-February/229002.html:
I have succes
CRAN (and crantastic) updates this week
New packages
* complex.surv.dat.sim (1.0)
Maintainer: David Moriña
Author(s): David Moriña, Centre Tecnològic de Nutrició i Salut and Albert
Navarro, Universitat Autònoma de Barcelona
License: GPL (>= 2)
http://crantastic.o
On Sun, Jun 10, 2012 at 2:22 PM, arun wrote:
> Hi Bert,
>
> I tried the code.
>
> dat2<-data.frame(dat1)
>> do.call(order,dat2)
> [1] 3 6 1 10 2 5 7 9 8 4
>
>
> Here, I get the order of 1st column as a list. Is there anything I am
> missing here?
No you don't. You get a vector of row
On Jun 10, 2012, at 12:37 PM, shirin nezampour wrote:
Dear R users,
I want to generating random samples from Inverse Gaussian
distribution . How can I do? and what package should I install?
When you 4 hours earlier posted a misdirected message to the moderator
mailbox, I suggested you us
Dear all
I am a newbie to R and I would appreciate it very much if someone can
give me some advice on this.
Please note that I am not a programmer so some of the questions might
sound really stupid.
I would like to compute McDonald's omega calculation using R, I'm
aware I can use the omega func
Hi,
I'd like to add a world map (equirectangular projection) in the
background of a normal R-plot and the world map should be shifted (the
center of the map should be c(163.87,23.581) where the center of the
plot is c(180,35)):
plot(c(0,360),c(0,70),type="n",main="My worldmap")
m=map("world", proj
Thank you very much, Rui!
But I am afraid that I won't be able to use this function for multilevel
analysis, as unfortunately I don't see how exactly I will combine it with
functions in the R packages for multilevel analysis .
--
View this message in context:
http://r.789695.n4.nabble.com/samplin
On Sun, Jun 10, 2012 at 11:44:33AM -0700, t_o_b_y wrote:
> Dear R users:
>
>
>
> I want to convert some character vectors into numeric vectors.
>
> > head(price)
> [1] "15450 EUR" "7900 EUR" "13800 EUR" "3990 EUR" "4500 EUR"
> [6] "4250 EUR"
>
> >head(mileage)
> [1] "21000 km" "119000 km"
Inline ...
-- Bert
On Sun, Jun 10, 2012 at 10:46 AM, arun wrote:
> Hi,
>
> If your intention is to order the first column by ascending, then by 2nd and
> so on..
> Try this.
>
> set.seed(1)
> dat1<-cbind(x=rnorm(10,5,0.5),y=runif(10,0.4),z=rnorm(10,15,0.2))
> dat1
> x y
On Mon, Jun 11, 2012 at 7:00 AM, Tamara wrote:
> Dear all,
>
> I am struggling with a problem which I have been reading on the forums about
> and it did not seem to me that there is a precise answer to my question.
> However, I still hope there is one.
>
> I am working with http://timss.bc.edu/ P
An update ...
I did a bit more search on the internet and got some ideas
i set the start month for the series to the same date. That didn't help.
Then I tried
.index(x2)==.index(msci.m)
FALSE
i was able to fix the problem with :
index(x2) <- as.Date(index(x2))
index(msci.m) <- as.Date(index(ms
Hello,
The link you've posted is to a page that does NOT have a dataset, it has
links to other pages. The proper way of posting a data example would be
# paste the output of this in a post
dput(head(yourdata, 20)) # or 30
Now, if I understand your question, function sample() does have a
we
Hello,
Works with me.
x <- c("21000 km", "119000 km", "36600 km", "92000 km", "140200 km",
"9 km")
sub("[[:blank:]]*km", "", x)
as.numeric(sub("km", "", x)) # for numeric, don't worry with blanks
Hope this helps,
Rui Barradas
Em 10-06-2012 19:44, t_o_b_y escreveu:
Dear R users:
I w
Dear all,
I am struggling with a problem which I have been reading on the forums about
and it did not seem to me that there is a precise answer to my question.
However, I still hope there is one.
I am working with http://timss.bc.edu/ PIRLS data and trying to conduct
multilevel analysis. Ther
Hi,
If your intention is to order the first column by ascending, then by 2nd and so
on..
Try this.
set.seed(1)
dat1<-cbind(x=rnorm(10,5,0.5),y=runif(10,0.4),z=rnorm(10,15,0.2))
dat1
x y z
[1,] 4.686773 0.9608231 14.99101
[2,] 5.091822 0.5272855 14.99676
[3,] 4.
I use the ff-package for large data and have good success in session. To
ensure my data is available for the next R session, I save my workspace and
use the /ffsave/ command to archive my large data objects. Syntax is
simple:
> ffsave(file="~/path/archiveName", list="objectName")
when I have mu
Dear R users,
I want to generating random samples from Inverse Gaussian distribution . How
can I do? and what package should I install?
Thanks.
Shirin
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz
Dear R users:
I want to convert some character vectors into numeric vectors.
> head(price)
[1] "15450 EUR" "7900 EUR" "13800 EUR" "3990 EUR" "4500 EUR"
[6] "4250 EUR"
>head(mileage)
[1] "21000 km" "119000 km" "36600 km" "92000 km" "140200 km"
[6] "9 km"
in the first example I can us
Looking for a little help figuring out what's driving gaps in data after
merging two xts objects (msci.m and x2). The merge statement I'm using is
... y <-merge(x2,msci.m, all=FALSE). Here's info on the output , y:
head(y)
t-bill msci
Sep 1985 7.310 316.963
Mar 1986 6.560 463.47
Thank Rui,
as always your posts did the trick. Thanks, m
--
View this message in context:
http://r.789695.n4.nabble.com/importing-multiple-file-form-folder-tp4631637p4632948.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-pro
Hello,
Try
x <- "channel 1 20120601 003507 1.ddf"
search <- "^channel [0-9]+ ([0-9]+ [0-9]+) .+$"
replace <- "\\1"
as.POSIXct(sub(search, replace, x), format="%Y%m%d %H%M%S")
If this doesn't make it, use 'gsub', not 'sub'.
Note that as.POSIXct makes use of time zones. See ?as.POSIXct and s
Hi again all,
@Rui, melt did the trick. Thanks!
I managed to make this thing work somehow. ABellow is the script for this :
setwd("C:/Users/mpavlic/Desktop/HE Krsko/HEK/FOC/Data/Jun/DDF")
library(reshape2)
library(sqldf)
Dear R users,
I'm estimating a hedonic land price model at the parcel level, basically a
linear regression model with land price as the dependent variable. I'm
wondering if there is a function in R that I can use to control
spatial auto-correlation among parcels that are adjacent to each other. I
Hello,
What you need is to have your function return a list, not a vector. Like
this
testfun <- function (x, y) list(seq(x, y, 1))
testframe<-data.frame(xvalues=c(2,3),yvalues=c(4,5))
testframe$newcolumn <- apply(testframe, 1, function(x) testfun(x[1], x[2]))
class(testframe$newcolumn) # [1
Perhaps it's an S4 object? You can test that with isS4() and, if it is, try
showMethods("show")
showMethods(class = "datation")
getMethod("show", "datation")
Note that it's also entirely possible that your object doesn't have a
print method and instead falls back on print.default or some other
On 12-06-10 7:29 AM, Onur Uncu wrote:
Thank you Duncan. A follow-up question is, how can I achieve the
desired result in the earlier email? (i.e. Add the resulting vectors
as a new column to the existing data.frame?) I tried the following:
testframe$newcolumn<-apply(testframe,1,function(x)test
Hello,
Try the following example.
#install.packages("reshape2")
library(reshape2)
d <- data.frame(D=Sys.Date()+1:5, Temp1=1:5, Temp2=6:10, Temp3=11:15)
d
dm <- melt(d, id=("D"))
dm
If this seems familiar, then in your it should be id=c("Length", "Date")
if "Date" already is a data.frame c
Thank you Duncan. A follow-up question is, how can I achieve the
desired result in the earlier email? (i.e. Add the resulting vectors
as a new column to the existing data.frame?) I tried the following:
testframe$newcolumn<-apply(testframe,1,function(x)testfun(x[1],x[2]))
but I am getting the fo
On 12-06-10 6:41 AM, Onur Uncu wrote:
R-Help community,
I understand that data.frames can hold elements of type double, string
etc but NOT objects (such as a matrix etc).
That is incorrect. Dataframes can hold list vectors. For example:
A <- data.frame(x = 1:3)
A$y <- list(matrix(1, 2,2), m
R-Help community,
I understand that data.frames can hold elements of type double, string
etc but NOT objects (such as a matrix etc). This is not convenient for
me in the following situation. I have a function that takes 2 inputs
and returns a vector:
testfun <- function (x,y) seq(x,y,1)
I have a
I am very sorry, but i dont know how it got posted three times!
--
View this message in context:
http://r.789695.n4.nabble.com/importing-multiple-file-form-folder-tp4631637p4632931.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help
Thanks for reply Rui,
this is not exactly what i need. The way you proposed i get the data
structured like this :
Length, TempAtLocation1, TempAtLocation2TempAtLocationN
What i'd like is to actuall get the data from each file in Columns, but they
should be binded in rows in one tab
Thanks for reply Rui,
this is not exactly what i need. The way you proposed i get the data
structured like this :
Length, TempAtLocation1, TempAtLocation2TempAtLocationN
What i'd like is to actuall get the data from each file in Columns, but they
should be binded in rows in one tab
Dear Andras,
More to the point, the distribution might not be multivariate normal.
Ozgur
--
View this message in context:
http://r.789695.n4.nabble.com/mvrnorm-limits-tp4632913p4632930.html
Sent from the R help mailing list archive at Nabble.com.
__
Thanks for reply Rui,
this is not exactly what i need. The way you proposed i get the data
structured like this :
Length, TempAtLocation1, TempAtLocation2TempAtLocationN
What i'd like is to actuall get the data from each file in Columns, but they
should be binded in rows in one tab
Try
apply(b,2,sort)
best
ozgur
--
View this message in context:
http://r.789695.n4.nabble.com/Order-all-the-columns-ascending-elements-on-a-matrix-or-a-data-frame-tp4632922p4632924.html
Sent from the R help mailing list archive at Nabble.com.
__
R-he
Imagine I have a csv KT.csv
I want to create a new dataframe o convert KT in a matrix and create a new
matrix with each column of KT ordered by ascending order.
I have tried to make this
b<-read.csv("KT.csv")
for(i in 1:ncol(b)){
b[,i]<-sort(b[,i])
}
But it puts a message that the number of
Gary Dong gmail.com> writes:
> I'm estimating a two-level regresion model but having difficuly in finding
> a good R syntax example.
>
> Let me use an example to explain what I'm doing. The dependent variable is
> math score (mathscore). Predictors are at two levels. At the student level,
> they
55 matches
Mail list logo