Displaying 20 results from an estimated 140 matches similar to: "Group by"
2012 Jan 22
1
how to load R data file into a structure?
Hi all,
I have already some important variables in the current R session;
and I wanted to load some rData file which was saved during the last R
session using "save.image"...
But how do I avoid the newly loaded data/variables messing with my existing
data/variables?
In Matlab, I can do:
mynewdata=load("imagefromlastRsession.rData")
and then I can access the variables
2011 Feb 12
2
Predictions with missing inputs
Dear users,
I'll appreciate your help with this (hopefully) simple problem.
I have a model object which was fitted to inputs X1, X2, X3. Now, I'd like
to use this object to make predictions on a new data set where only X1 and
X2 are available (just use the estimated coefficients for these variables in
making predictions and ignoring the coefficient on X3). Here's my attempt
but, of
2009 Apr 26
2
RWeka prediction
Dear All,I encountered a problem when I use RWeka for prediction.
Specifically, I use the following:
res=J48(X1~.,data=mydata);
predict(res), #it worked fine
but when I tried to use a different data set,
i.e. predict(res,newdata=mynewdata);
all the predictions I get is 0, which apparently is problematic.
What is weird is, if I use the old data, but use the newdata option,
i.e.
2011 Aug 18
1
Loop trouble with Excel Serial Numbers!
Hi All!
I'm trying to convert serial numbers in Excel to dates in R. For each
single "thedate" entry, I get a correct answer. But if I try using the for
loop, I get bizarre numbers in "mynewdata".
thedate<-as.matrix(40548:40759,ncol=1)
exdate<-function(){
mynewdate<-NULL
for(i in 1:nrow(thedate)){
2009 May 06
1
Add trend line to XYPlot using a subset of the original data
I've created an xyplot that I want to add a trend line to using a subset of
the data.
The xyplot is
xyplot(X9444500~WY,data=mynewdata,xlim=c(1900,2020),ylab="TEST",
xlab="",ylim=c(100,100000),scales=list(x=list(at=c(1900,1920,1940,1960,1980,2000,2020),axs="r",tck=-1),y=list(log=TRUE,tck=-100,at=c(100,1000,10000,100000))),
panel=function(x,y,...) {
2019 Jan 02
7
Solr
The real main differecne seems coming from "diffconfig.xml"
When I put yours, Solr delete (!) schema.xml and create a
"manage-schema" and starts complaining about useless types (tdates,
booleans, etc..) that are not needed for Mail fileds
When I put mine (from standard distribution of Arch), it keeps things as
they are (yeah !), does not complains about those useless types
2018 Dec 31
3
Solr
On 12/29/2018 4:49 PM, Joan Moreau wrote:
>
> Also :
>
> - Java is 10.0.2
>
Same as me.
>
> - If i delete schema.xml but create only managed-schema, the solr
> refuses to start with a java error "schema.xml missing"
>
Ok...so we need to do some more digging.
How did you install Solr? (I downloaded a "binary" installation and
unpacked it)
How did
2019 Jan 02
2
Solr
The first result show "no results" in dovecot for any search by header (I
typed an email add in RoundCube search box, using Dovecot as back end,
using Solr as own backend)
So many efforts for crappy results.
Can't we really revive Squat ? It is 2 lines of config, and no single problems
On January 2, 2019 08:16:33 Joan Moreau via dovecot <dovecot at dovecot.org>
wrote:
2007 Sep 17
1
How can I write routines and scripts in the R environment ?
*I would like to plot some semi-periodic signals as a function of the phase
expressed as a value in [0,2PI]*
*The problem is that the phase data is reported as the residual of the
division by 2PI.*
*For instance if the phase is 10.359 rd then:*
*15.359 / 6.283185 = 2*6.283185 + 2.79263*
*then only the residual 2.79263 is stored. *
*In order to plot a number of consecutive cycles I have to add
2012 Oct 19
4
Creating a new by variable in a dataframe
Hello,
I have a dataframe w/ 3 variables of interest: transaction,date(tdate) &
time(event_tim).
How could I create a 4th variable (last_trans) that would flag the last
transaction of the day for each day?
In SAS I use:
proc sort data=all6;
by tdate event_tim;
run;
/*Create last transaction flag per day*/
data all6;
set all6;
by tdate event_tim;
last_trans=last.tdate;
Thanks
2012 Oct 10
3
How to replicate SAS by group processing in R
Hello,
I am trying to re-code all my programs from SAS into R.
In SAS I use the following code:
proc sort data=upper;
by tdate stock_symbol expire strike;
run;
data upper1;
set upper;
by tdate stock_symbol expire strike;
if first.expire then output;
rename strike=astrike;
run;
on the following data set:
tdate stock_symbol expiration strike
9/11/2012 C 9/16/2012
2010 Sep 17
7
removing specific rows from array
I'm attempting to create an array of treatment comparisons for modelling data generation. This involves comparison of one treatment (c2) with another (c3), relative to a common comparator (c1).
Attached code gives me the correct array but need to remove duplicates. Duplicates relate only to c2 and c3
such that I need to remove
r3 because c2 and c3 are same as r1 with c2 and c3 swapped
r5
2010 Mar 09
8
Deltas or changes
How can I generate a vector of differences between each elemtn of an vector?
i.e. a[i]=x[i]/x[i-1]
--
View this message in context: http://n4.nabble.com/Deltas-or-changes-tp1585960p1585960.html
Sent from the R help mailing list archive at Nabble.com.
2012 Aug 31
2
Conditional merging in R & if then statement
1)I am wandering how the following SQL statement can be written in R language
w/o using sqldf:
create table detail2 as
select a.*
from detail a,
pdetail b
where a.TDATE=b.TDATE
and (a.STIM >= b.STIM and a.STIM <=b.MAXTIM)
2) when try if then in R it only applies to the 1st row & not to whole
dataset like in SAS. How do you get round that?
in SAS:
data summary;
set all1;
2018 Apr 15
4
Adding a new conditional column to a list of dataframes
Hi all ..,
I have a list of 7000 dataframes with similar column headers and I wanted to add a new column to each dataframe based on a certain condition which is the same for all dataframes.
When I extract one dataframe and apply my code it works very well as follows :-
First suppose this is my first dataframe in the list
> OneDF <- Mylist[[1]]
> OneDF
ID Pdate
2018 Mar 29
1
Problem with my function using as.POSIXct
Hello all:
I wrote a function:
my.bastimeToSynoptic <- function(x) {
f<-unlist(strsplit(as.character(x), " "))
hr<-unlist(strsplit(f[2], ":"))
if(as.numeric(hr[1])<6) {
synoptic<-"00"
}
else {
synoptic<-as.integer(as.numeric(hr[1])/6)*6
}
tdate<-paste(c(f[1],"
2015 Nov 06
2
(sin asunto)
Hola a tod en s,
sigo intentando representar una variable en función de meses. En la columna
Mesos tengo los meses de la siguiente manera:
01/08/1996, 01/09/1996 etc.
He probado con el siguiente comando:
plot(Mesos, Serie01)
obteniendo
y tendría que obtener:
[image: Imágenes integradas 2]
Pero donde pone Observation Index, me gustaria tener los meses (para esta
grafica he usado
2012 Aug 29
2
Deduping in R by multiple variables
I have a dataset w/ 184K obs & 16 variables. In SAS I proc sort nodupkey it
in seconds by 11 variables.
I tried to do the same thing in R using both the unique & then the
!duplicated functions but it just hangs there & I get no output. Does
anyone know how to solve this?
This is how I tried to do it in R:
detail3 <-
2018 Apr 15
0
Adding a new conditional column to a list of dataframes
> On Apr 15, 2018, at 4:08 AM, Allaisone 1 <Allaisone1 at hotmail.com> wrote:
>
>
> Hi all ..,
>
>
> I have a list of 7000 dataframes with similar column headers and I wanted to add a new column to each dataframe based on a certain condition which is the same for all dataframes.
>
>
> When I extract one dataframe and apply my code it works very well as
2010 Mar 11
6
tm[,-1]
This does what I was hoping it would:
aggregate(tm[,-1],by=list(tm[,10]),FUN="mean")
but I don't know what "tm[,-1]" means (well - the -1 bit anyway.
Does it somehow means the whole matrix?
Please don't tell me to check the manual - I tried and failed dismally...
--
View this message in context: http://n4.nabble.com/tm-1-tp1588804p1588804.html
Sent from the R