Displaying 20 results from an estimated 71 matches for "exampe".
Did you mean:
example
2017 Dec 13
3
inefficient for loop, is there a better way?
The code below is a small reproducible example of a much larger problem.
While the script below works, it is really slow on the true dataset with
many more rows and columns. I'm hoping to get the same result to examp,
but with significant time savings.
The example below is setting up a data.frame for an ensuing regression
analysis. The purpose of the script below is to appends columns to
2011 Apr 18
1
using "aggregate" when variable names contain spaces
...c(1,10,100,2,20,200,3,30,300,4,40,400)
value2=c(1.1,10.1,100.1,2.1,20.1,200.1,3.1,30.1,300.1,4.1,40.1,400.1)
example<-data.frame(mydate=mydate,value1=value1,value2=value2)
example$group<-c(rep("group1",3),rep("group2",3),rep("group1",3),rep("group2",3))
exampe$group<-as.factor(exampe$group)
### Generating variable names with spaces:
names(example)<-c("mydate", "my value 1","my value 2","group")
### Trying to aggregate - but it's not working. Clearly, my reference
to variable names is incorrect:
mynames&...
2010 Aug 31
3
"mode" function
...ue but I have unable to find the answer for it either in the R-manual or by browsing the web.
I would like to know if there is a "mode" function in R, such that from a vector or matrix the function returns the most common value. In other programs I use (such as Matlab) I can have for exampe a 3X3 matrix A, A=[1 2 3; 1 3 2; 3 3 2] and I can find the mode of the rows so that mode(A[1:3,:]) returns a 1X3 matrix [1 3 2].
Is this possible in R as well? If not, how would one go about this?
Thank you very much,
Bill
[[alternative HTML version deleted]]
2005 Oct 14
2
events after sort
...rototype.js et al, i am currently creating a sortable
list with:
Sortable.create(''id'', { onChange: myFunc });
but what i really want is an event that occurs after the li''s have been
reordered and settled into the new list order.
how would i do that?
i know i can do for exampe:
Event.observe(''id'', ''mouseup'' , func , false);
i''m sure there''s a very simple solution, it''s just escaping me, thanks for
any tips.
-brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.r...
2010 Apr 11
2
[LLVMdev] call for suggestions
Hi, Dear LLVMers
I just touch llvm source code for several days, and I didn't know the
interfaces of the analysises and transformations of LLVM. For exampe, how
to backtrace CFG, and whether exits a backtracking interator to do such
work?
For a novice, I also seek for suggestions about how to become familiar with
LLVM interfaces as soon as possible. Now I have a plan to write a pass based
on LLVM, and my first challenge is how to make the best use of...
2009 Jul 15
2
Problems with computing an aggregated score
...all,
I have a problem with computing a new variable as an aggregated score of
other variables.
Say, I have 10 variables for 1,000 observations (people). Every variable may
have values between 0 and 8. What I would like to do is computing the mean
of the individual top 3 values for every person.
Exampe: The values for the 10 variables (v1 to v10) for person A, B and C
are as follows:
A 0 1 0 2 5 8 3 0 4 0
B 6 4 3 0 0 0 0 5 0 0
C 0 0 8 0 0 8 0 0 0 0
So, I would like to compute a new variable for the mean of the individual
top 3 values, which would result for person A, B and C in the following:...
2009 Jul 06
2
[LLVMdev] Address Space
...BSS
section. My idea is to split the uninitialized global variables in two
sections and to aggregate them depends on the uses of each variable at
execution time (by profiling I will know what variable will be in each
section).
In addition, can I add more address spaces for heap and stack also? For
exampe, can I split my stack in two segments, one to hold critical info like
return address and frame pointer, and another to hold function arguments?
How I can do it?
Thanks in advance,
Juan Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org...
2010 Nov 09
2
Merging data frames one of which is NULL
Hello!
I am running a loop. The result of each run of the loop is a data
frame. I am merging all the data frames.
For exampe:
The dataframe from run 1:
x<-data.frame(a=1,b=2,c=3)
The dataframe from run 2:
y<-data.frame(a=10,b=20,d=30)
What I want to get is:
merge(x,y,all.x=T,all.y=T)
Then I want to merge it with the output of the 3rd run, etc.
Unfortunately, I can't create the placeholder for the overall r...
2009 May 31
1
how to sort data frame order by column?
I have a data frame, for exampe
> dat <- data.frame(a=rnorm(5),b=rnorm(5),c=rnorm(5))
a b c
1 -0.1731141 0.002453991 0.1180976
2 1.2142024 -0.413897606 0.7617472
3 -0.9428484 -0.609312786 0.5132441
4 0.1343336 0.178208961 0.7509650
5 -0.1402286 -0.333476839 -0.4959459
How to make dat...
2010 Oct 25
0
non-stationary ar part in css
Hi
I would like to use arima () to find the best arima model for y time
series. The default in arima apparently is to use conditional sum of
squares to find the starting values and then ML (as described on the
help page).
Now using the default may lead to error messages saying: "non-stationary
ar part in CSS". When changeing the default to "ML" only the
minimization
2010 Oct 26
0
problem with arima() function
Hi
I posted this problem yesterday but didn't get a reply so I try again today.
I hope someone can help me with this.
thank you very much for the help
cheers
Benedikt
I would like to use arima () to find the best arima model for a time
series. The default in arima apparently is to use conditional sum of
squares to find the starting values and then use ML for the
2006 Jan 29
0
Bug in wilcox.test
There is a fairly new bug in wilcox.test in R-2.2.1 (stable).
It wasn't there when I last taught nonparametrics in fall 2003.
Line 86 of wilcox.test.R
achieved.alpha<-2*psignrank(trunc(qu),n)
It should be
achieved.alpha<-2*psignrank(trunc(qu)-1,n)
If you don't see why, decode the cookbook instructions p. 56 in
Hollander and Wolfe (2nd ed.) or see
2006 May 26
3
Docs for print or in the distribution zip?
Hi,
Are there any plans to "export" the documentation from time to time(e.g.
at releases) from the WIKI in an "offline" form to be usable as printed,
and/or to be distributed with into scriptaculous-js-1.x.x.zip ?
It is very uncomfortable that the ZIP distribution contains practically no documentation :(.
Most of the WIKIs have such export function (many of them even export
2015 Apr 09
1
gmail-migration: archived mails in \ALL
...a and the -F Flag.
I'd like to migrate ONLY archived mails from an existing gmail-Account.
So I'd have to import all Mails from the \ALL-Folder that does NOT have
any virtual folder flags set.
I tried to use this command:
doveadm -D -o imapc_user=user at example.com -o pop3c_user=user at exampe.com
-o imapc_password=secret -o pop3c_password=secret -o
imapc_host=imap.googlemail.com -v backup -m '[Gmail]/Tutti i messaggi'
-F '-$GmailHaveLabels' -x \Flagged -x \Junk -x \Trash -x \Important -R
-u user at example.com imapc:
But it looks like it's importing too many mails...
2008 Feb 06
3
counting row repetitions without loop
Hi,
I have a data frame consisting of coordinates on a 10*10 grid, i.e.
> example
x y
1 4 5
2 6 7
3 6 6
4 7 5
5 5 7
6 6 7
7 4 5
8 6 7
9 7 6
10 5 6
What I would like to do is return an 10*10 matrix consisting of counts
at each position, so in the above example I would have a matrix where,
for example, cell [4,5] contains 2 and [6,7] contains 3. At the
2010 Sep 21
6
Iterate HashWithIndifferentAccess
How do I iterate a HashWithIndifferentAccess? I need to set the order
using a sortable_element.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send
2010 Apr 12
0
[LLVMdev] call for suggestions
On Sun, 2010-04-11 at 10:54 +0800, lucefe wrote:
> Hi, Dear LLVMers
>
> I just touch llvm source code for several days, and I didn't know the
> interfaces of the analysises and transformations of LLVM. For exampe,
> how to backtrace CFG, and whether exits a backtracking interator to do
> such work?
>
> For a novice, I also seek for suggestions about how to become familiar
> with LLVM interfaces as soon as possible. Now I have a plan to write a
> pass based on LLVM, and my first challenge...
2015 Oct 09
2
git clone --recursive
Hi,
We use a git submodule for gnu-efi.
What would be the downside of changing
git clone git://repo.or.cz/syslinux.git
into
git clone --recursive git://repo.or.cz/syslinux.git
on the Syslinux wik?
Cheers
Geert Stappers
$ git clone git://repo.or.cz/syslinux.git
Cloning into 'syslinux'...
remote: Counting objects: 50546, done.
remote: Total 50546 (delta 0), reused 0 (delta 0)
2005 May 25
1
The error while using R2WinBUGS
...of WinBUGS14), and WinBUGS cannot
calculate it, but this is allowed in WinBUGS. If I just ran it in
WinBUGS, that would be fine, because my goal is to get the summay not
DIC, but I need to run it in R, and R must have DIC. (the example as
follow). I am wondering what I can do to fix it in R?
for exampe: the school example:
the output in R:
> print(schools.sim)
Inference for Bugs model at "c:/schools/schools.bug"
3 chains, each with 1000 iterations (first 500 discarded)
n.sims = 1500 iterations saved
mean sd 2.5% 25% 50% 75% 97.5% Rhat n.eff
theta[1] 11.1 9.1 -3.0 5.0 10.0 16.0 31.8 1...
2009 Jul 06
0
[LLVMdev] Address Space
...will know what variable will be in each
> section).
This can be done with the existing section markings for globals;
address spaces are intended for situations where the spaces actually
have distinct properties.
> In addition, can I add more address spaces for heap and stack also? For
> exampe, can I split my stack in two segments, one to hold critical info like
> return address and frame pointer, and another to hold function arguments?
> How I can do it?
You don't need address spaces for that; it's just a matter of using
different heap allocation functions and a custom ca...