Displaying 20 results from an estimated 11000 matches similar to: "Re : Save result in a For Loop"
2004 Nov 21
3
RE : Create sequence for dataset
Dear members,
I want to create a sequence of numbers for the multiple records of
individual animal in my dataset. The SAS code below will do the trick, but
I want to learn to do it in R. Can anyone help ?
data ht&ssn;
set ht&ssn;
by anml_key;
if first.anml_key then do;
seq_ht_rslt=0;
end;
seq_ht_rslt+1;
Thanks in advance.
Stella
2004 Dec 06
2
Re : LOOPS
Dear lists,
I want to construct a loop in R, but don't know how to do it. I can do it
in SAS, but I prefer in R (which I am hoping I will off SAS for good
soon). Could anyone help me to convert the SAS codes to equivalent R codes.
Basically, the following codes were written to establish the sire gametes
or phases for daughter design for one markers two alleles.
Here are the SAS code:
do
2005 Oct 18
1
Re : Seperate timestamp data into date and time
Dear R list,
I am reading in text file data prepared in Access database by someone. One
of the field contains timestamp data, how can I separate the timestamp data
into two varaibles: date and time. Can I specify the field is in timestamp
format when I first reading in ?
My reading in data are as below:
449 LWT 22/10/2003 15:43:00 441 143
449 LWT 17/11/2003 15:25:00 421 169
449 LWT
2005 Jan 04
4
Re : Frequency count
Dear list,
I have a dataset as follow and I would like to count the frequencies for
the combination of the two variables (f1 and f2) for each id. I know it is
should be straight forward, but I just don't know how to do it in R. Here
is the SAS code I will use to get the output I want :
proc means nway;
class id f1 f2;
var flag
output out=temp;
Dataset:
id f1 f2 flag
798 1 2
2000 Feb 03
1
Passwords issues with samba 2.0.6
In my pursuit of integrating samba password authentication with our own
stuff, I've been looking at ways on synchronizing the two. And here are
the two problems for which I hope to get either solution:
a) smbpasswd will not pass down spaces to whatever is called for
synchronization. Barely looking at the synchronization routine, it
scans as a string, which would skip anything after a space.
2018 Nov 14
2
Building LLVM with VisualStudio 2017
Hey Bjorn,
Were you able to figure this out or is it still broken for you?
Our scenario is a little bit different, but I have a theory as to what may be going wrong. What linker are you using when you compile your project with clang-cl? I am wondering whether the version of the linker and/or the libraries that you are using is too old in comparison to the one used for the clang compilation.
2008 Dec 01
1
Attempting to get a STELLA model into R
To whomever may be of help,
I am a student in a graduate modeling class at the University of North Carolina at Wilmington. I am trying to get a STELLA model converted into R. I am in the process of trying to 're-write' the script into R, but I seem to be missing pieces (i.e. parm values) that are keeping me from being able to replicate this model into R. Does anyone have an idea of a
2005 Jan 11
5
global objects not overwritten within function
Dear useRs,
I have a function that creates several global objects with
assign("obj",obj,.GlobalEnv), and which I need to run iteratively in
another function. The code is similar to
f <- function(...) {
assign("obj",obj,.GlobalEnv)
}
fct <- function(...) {
for (i in 1:1000)
{
...
f(...)
...obj...
rm(obj) #code fails without this line
}
}
I don't understand
2010 Jun 01
2
Help on aggregate method
Dear R experts,
I would really appreciate if you had an idea on how to use more
efficiently the aggregate method:
More specifically, I would like to calculate the mean of certain
values on a data frame,? grouped by various attributes, and then
create a new column in the data frame that will have the corresponding
mean for every row. I attach part of my code:
matchMean <-
2011 Feb 09
3
Loop in variable names
Hello!
I would like to do some tables for several variables and I would like to write a loop that does the table for each variable. I should also point out that my data set has several missing observations and sometimes the observations that are missing are not the same for all my variables.
What I would like to do:
table(StoreData$CompanyID,
!is.na(StoreData$P2))
2012 Jan 29
1
A desktop Centos remix
Hello Centos users!
I'm doing a Centos 6 desktop oriented remix called Stella.
This has been brewing since the summer and it's starting to get ready. :-)
I've backported a lot of packages from Fedora and Rpmfusion and I
bundle several other repos, too, resulting in a big range of software
available, including but not limited to:
LibreOffice, VLC, MPlayer, Shutter, Arista, Java,
2005 May 11
1
rank (PR#7850)
Full_Name: Stella David
Version: 2.1.0
OS: mingw32
Submission from: (NULL) (137.250.161.136)
It seems that rank doesn't work right on vectors containing negative values.
If the negative value is the first component or there are only two components,
it works, but if the negative value is somewhere in the middle there's a
problem.
Here are my examples:
> # wrong:
> x<-
2005 Apr 06
3
looking for a plot function
Dear useRs,
I have a data frame and I want to plot all rows. Each row is
represented as a line that links the values in each column. The plot
looks like this:
dfr <- data.frame(A=sample(1:50,10),B=sample(1:50,10),
C=sample(1:50,10),D=sample(1:50,10))
xa <- 10*1:4
plot(c(10,40),c(0,50))
for (i in 1:nrow(dfr)) {
lines(xa,dfr[i,],pch=20,type="o")
}
Things get more complicated
2010 Apr 19
2
Huge data sets and RAM problems
Dear all,
This is the first time I am sending mail to the mailing list, so I
hope I do not make a mistake...
The last months I have been working on my MSc thesis project on
performing data mining techniques on user logs of a
software-as-a-service application. The main problem I am experiencing
is how to process the huge amount of data. More specifically:
I am using R 2.10.1 in a laptop with
2004 Nov 09
0
Re: QTL interval mapping in outbred populations
On Mon, 8 Nov 2004 ssim at lic.co.nz wrote:
>
> Is there an add-on package in R for QTL interval mapping for outbred
> population, eg. Haley-Knott regression method ?
>
> Stella
I believe Karl Broman's R/QTL (http://biosun01.biostat.jhsph.edu/~kbroman/software/)
and Brian Yandell's bim (http://www.stat.wisc.edu/~yandell/qtl/software/),
Richard Mott's happyR
2010 May 20
1
Question about difftime()
Dear R experts,
I have a question about the result of difftime() function: Does it
take into account the different number of days in each month. In my
example, I have the following:
> firstDay
[1] "2010-02-20"
> lastDay
[1] "2010-05-20 16:00:00"
> difftime(lastDay,firstDay,units='days')
Time difference of 89.625 days
>
When I count the days I get 88 days
2010 Jan 03
1
Questions regarding sem using hetcor() function from polycor and diagrams
Hello R Users,
While I have attempted to dig into the R help files and I have not
identified the answer to these questions, I apologize in advance if my
questions were answered in the past. I also recognize that one of my
questions unfortunately verges on statistical rather than code
territory. I have two rather unrelated questions about using the sem and
polycor packages for a relatively
2004 Dec 23
3
combination of scatterplot and image graph
Dear R users,
I'm interested in a combination of a scatterplot and an image graph.
I have two large vectors. Because in the scatterplot some areas are
sparsely and others densely populated, I want to see the points, and
I also want their color to be changed based on their density (similar
to a heat map). Is there a function that can do that?
Thank you,
b.
2003 Sep 15
2
Aliases for Netbios name
Hi !
Is There how I use an alias for a Samba Server ?
I tried with dns alias and don't work !
i.e.
Name' Samba Server is PARATY, and I'd like that the
workstations could communicate with this Samba Server, but using
the name SambaPDC.
Is it possible ?
Thanks,
Bruno Stella
brunostella@trt15.gov.br
Setor de Redes - Secretaria de Informatica
Tribunal Regional do
2004 Oct 11
5
read "4-jan-02" as date
Dear R users,
I have a column with dates (character) in a data frame:
12-Jan-01 11-Jan-01 10-Jan-01 9-Jan-01 8-Jan-01 5-Jan-01
and I need to convert them to (Julian) dates so that I can
sort the whole data frame by date. I thought it would be
very simple, but after checking the documentation and the
list I still don't have something that works.
1. as.Date returns the error below. What am I