Displaying 20 results from an estimated 2000 matches similar to: "subsetting data by specified observation number"
2012 Jul 19
2
finding the values to minimize sum of functions
Hi fellow R users,
I am desperately hoping there is an easy way to do this in R.
Say I have three functions:
f(x) = x^2
f(y) = 2y^2
f(z) = 3z^2
constrained such that x+y+z=c (let c=1 for simplicity).
I want to find the values of x,y,z that will minimize f(x) + f(y) + f(z).
I know I can use the optim function when there is only one function, but
don't know how to set it up when there are
2011 May 09
4
[LLVMdev] Path profiling command
Hi members,
I am a LLVM newbee. I am working in path profiling. I got an error message when
reading the path profile data
I made a sample source named foo.c
The command chain to make llvm path profiling as follows:
1. Compile to LLVM Bitcode
llvm-gcc –emit-llvm foo.c –c –o foo.bc
2. Insert Path Instruments
opt –insert-path-profiling foo.bc –o foo_path.bc
3. Link with profile
2011 May 23
3
[LLVMdev] Need Path Profiling Format Document
Dear Members,
I am working on path profiling, but command llvm-prof cannot read path profile
info. Making llvm-prof to be able to read PP info is so wonderful. But I cannot
find the format of PP. Could anyone give me the document of path profile info
format so that I could modify llvm-prof.
Thank you in advance
Linh Ho
-------------- next part --------------
An HTML attachment was
2011 Apr 03
3
Discretizing data rows into regular intervals
Hi guys,
I'd like to thank you ahead of time for any help that you can offer me.
I'm kind of stuck trying to do this.
I have a data frame with dates and values (note: only two columns shown):
head(test)
date value stop
1 01/02/05 100 12/01/07
2 07/16/05 200 12/01/07
3 12/20/05 150 12/01/07
4 04/01/06 250 12/01/07
5
2011 May 23
0
[LLVMdev] Need Path Profiling Format Document
Hi,
Here is a link to my document on PP. On page 4, it has the format of the path profile.
http://lists.cs.uiuc.edu/pipermail/llvmdev/attachments/20100823/db8abfb3/attachment-0001.pdf
Cheers,
Adam
On 2011-05-22, at 9:31 PM, Linh Ho Tran wrote:
> Dear Members,
>
> I am working on path profiling, but command llvm-prof cannot read path profile info. Making llvm-prof to be able to
2012 Aug 29
2
Problem installing Rmpi with Open MPI
Hi guys,
I've spent a few days trying to install Rmpi with no luck. I originally
tried using mpich, moved on to mpich2, and then to openmpi. I've gotten
the furthest with openmpi, though am still running into this problem and
can't figure it out. Can someone help!? Thanks so much in advanced.
I'm using an HP Envy laptop with Ubuntu 12.04. Output is below, with the
error at the
2007 Oct 18
2
www/drupal4 and www/drupal5: Multiple security vulnerabilities
The Drupal project announced several security vulnerabilities for the
4.7.x and 5.x releases of the Drupal package. These effect two current
ports: www/drupal4 and www/drupal5.
The following are the security advisories that were posted:
4.7.x:
* DRUPAL-SA-2007-024: http://drupal.org/node/184315
* DRUPAL-SA-2007-026: http://drupal.org/node/184320
* DRUPAL-SA-2007-030:
2011 May 11
0
[LLVMdev] Path profiling command
Hi All,
I use llvm version 2.9. llvm-prof does not support to read path profiling info.
So could I use any way else to read path profiling info?
Thanks
Linh
________________________________
From: Andreas Neustifter <andreas.neustifter at gmail.com>
To: Andrew Trick <atrick at apple.com>
Cc: Linh Ho Tran <hotranlinh at yahoo.com>; "llvmdev at cs.uiuc.edu Mailing
2006 May 09
5
Solaris migration error:Lost connection to MySQL server
We have installed rails 1.1.2 and Ruby 1.8.4 on solaris. When we attempt
to
run the initial migration we get the following error:
Mysql::Error: Lost connection to MySQL server during query: SELECT
version FROM schema_info
/web/server/pkgs/ruby-1.8.4/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract_adapter.rb:120:in
`log''
2008 Jul 21
1
Mclust - which cluster is each observation in?
I'm trying to test a method of identifying individuals (birds) based on
measured data (their calls).
I have test data from known individual birds, and I am using the Mclust
package to see if the program can correctly identify which calls come from
different birds.
So far, mclust has correctly ID'd the number of birds in the test data set
(i.e., the correct # of clusters). However I
2011 May 10
0
[LLVMdev] Path profiling command
Hi All!
I was involved in the LLVM profiling business during late 2009 and
early 2010 but I was not working on the path profiling but the
"regular" profiling code. So I'm only guessing in case there is not
other answer.
On 9 May 2011 20:19, Andrew Trick <atrick at apple.com> wrote:
>
> On May 9, 2011, at 3:36 AM, Linh Ho Tran wrote:
>
> [...]
>
> The error
2013 Nov 08
2
Export CSV
Hi friends,
i am using csv export on my application. in my view file code is
<%- headers = ["Transaction ID", "Activity ID", "Product Name","Customer
Name", "Ticket code"] -%>
<%= CSV.generate_line(headers).strip %>
<%if !@trans.nil? && @trans.length > 0 %>
<% @trans.each do |tran|%>
<% if
2006 Nov 07
1
reading VERY large binary files
Hello,
I am trying to read in elements out of a very large binary file ... the
total file is 4 gigs. I want to select rows out of the file, and the
current procedure I run works but is prohibitively slow (takes more than
a day to run and still won't complete). Is there any faster way to
accomplish this?
My current procedure looks like this:
readHH <- function(file_name,
2009 Mar 09
1
Zero distance error in corSpatial - correlation structure using lme
Hello,
I am having a problem specifying the correlation structure in lme which
leads to the error: Error in getCovariate.corSpatial(object, data =
data) : Cannot have zero distances in "corSpatial". I have specified a
grouping variable which is the only fix I could find by searching this
error on R-help.
ISee the below example. When my samples (tran) - which are transects
2003 Feb 19
6
Help with Winbind
I've been trying for weeks to get winbind working with RedHat Linux 8.0.
I've got everything setup per the winbind docs on
http://www.samba.org/samba/docs/Samba-HOWTO-Collection.html#WINBIND.
I've successfully joined my NT4 domain with smbpasswd -j DOMAIN -r PDC -U
Administrator. Running wbinfo -u returns my domain user list, as well as
wbinfo -g returning my domain groups. getent
2002 Nov 06
0
Problem joining a Linux computer to a Windows 2000 domain server
I issued this command to join a Linux computer to a Windows 2000 domain /usr/bin/net rpc join, and I got an error message:
[2002/11/06 16:04:50, 1] utils/net.c:net_find_server(229)
no server to connect to
Unable to find a suitable server
[2002/11/06 16:04:53, 1] utils/net.c:net_find_server(229)
no server to connect to
Unable to find a suitable server
=====================
To create the
2008 May 12
5
Format integer
Hi,
What's one way to convert an integer to a string with preceding 0's?
such that
'13' becomes '00000000013'
to be put into a string
I've tried formatC, but they removes all the zeros and replace it with
blanks
Thanks
--
Regards,
Anh Tran
[[alternative HTML version deleted]]
2010 Dec 20
2
package "arules" - 'transpose' of the transactions
Suppose this is my list of transactions:
set.seed(200)
tran=random.transactions(100,3)
inspect(tran)
items transactionID
1 {item80} trans1
2 {item8,
item20} trans2
3 {item28} trans3
I want to get the 'transpose' of the data, i.e.
transactionID items
1 {trans2} item8
2 {trans2} item20
3 {trans3} item28
4 {trans1} item80
I
2007 Jul 11
1
aov() question
Hi all,
So I think I have seen some similar questions to mine when I searched
the archives, but have not seen any concrete answers and was
wondering if any one could help.
I have been trying to use R's aov() function to analyze my data. I
have a 3 x 4 x 2 repeated measures design. All of the IVs are within
subjects. I do also have missing values (unequal N), as I have to
remove
2011 Jun 17
0
observation limits on correlog and mantel?
Hello,
I am working with two datasets with ~5,200 observations. Apparently,
neither the correlog function (ncf package) nor the mantel function (ecodist
package) can handle these datasets. Does anyone have any experience about
the maximum number of observations these functions can handle? I am
considering partitioning them into smaller subsets.
This would not be an ideal