Displaying 20 results from an estimated 1000 matches similar to: "Imposing more than one condition to if"
2013 Jun 10
1
modify and append new rows to a data.frame using ddply
Hi,
I have a data.frame that contains a variable act which records the duration (in seconds) of two states (wet-dry) for several individuals (identified by Ring) over a period of time. Since I want to work with daytime (i.e. from sunrise till sunset) and night time (i.e. from sunset till next sunrise), I have to split act from time[i] till sunset and from sunset until time[i+1], and from time[k]
2012 Mar 18
2
Importing files
Hello,
I'm trying to import into R files that contain data downloaded from logger devices as files with the following formats:
.act
.lig
.trj
.trn
These files are essentially text files but use both tabs and commas as separators.
I've tried the function scan:
1) scan("filename.act", what=character(0)) returns only two columns from the original 5
2) scan("copia.act",
2013 Jun 08
0
modify and append new rows in a dataframe
My data frame shows changes on the variable act which records the consecutive duration (in seconds) of two states (wet-dry) over a few days for several?individuals (identified by Ring). Since I want to work with daytime (i.e. from dawn till dusk) and night time (i.e. from dusk till next dawn), I have to split act in two: from time[i] till dusk and from dusk until time[i+1], and from time[k] till
2012 May 05
2
creating a new column assigning values of other columns
Hello,
?
I have to create a new column from the values of other columns of a data frame. The new?column (y$n) is created imposing a condition (using a third variable y$h) that assigns the values of two time variables (y$b and y$timepos). Here's the piece of code to get there (using the attached files):
?
xact <- read.table("act.lig", sep = ',',
2013 Mar 29
1
Dataframe manipulation
Hi Adam,
I hope this is what you wanted:
dat1<- read.csv("example.csv",sep="\t",stringsAsFactors=FALSE)
?str(dat1)
#'data.frame':??? 102 obs. of? 5 variables:
# $ species? : chr? "B. barbastrellus" "E. nilssonii" "H. savii" "M. alcathoe" ...
# $ period?? : chr? "dusk" "dusk" "dusk"
2013 Feb 19
2
Cramer von Mises test for a discrete distribution
Hi,
?
I'm trying to carry out Cramer von Mises tests between pairs of vectors belonging to a discrete distribution (concretely frequencies from 0 to 200). However, the program crashes in the attempt. The problem seems to be that these vectors only have positive integer numbers (+ zero). When I add a random very small positive decimal to the non-decimal part everything works fine (files prm1
2018 Nov 18
2
How to add instructions to a Module at runtime?
Hi David,
Thanks for your answer. Just to clarify, I would like to create 2 3
instructions put them in a function and execute them. Do you still think
the JIT would be the best option?
Thanks
On Sun, Nov 18, 2018, 12:55 David Blaikie <dblaikie at gmail.com wrote:
> If you're looking to execute code at runtime (within th eam process - or
> across a network etc - as the one that
2009 Sep 24
3
Upgrading Dovecot on CentOS 4 from 0.99 to 1.x
(sorry for my previous message, I sent it by mistake before finishing it)
Hello,
We have a production mail server running dovecot 0.99 (dovecot-0.99.14-1.rf).
We are getting several errors corrected in dovecot 1.x versions:
* corrupted inboxes (garbage at beggining of mbox files),
* corrupted index files (Error: Corrupted file
index /home/jsmith/.imap/Drafts/.imap.index: Sequence 6 not
2018 Nov 18
2
How to add instructions to a Module at runtime?
Hi all,
I'm trying to understand how the Module object works more in details, so
suppose I've an empty module and I'd like to know if it is possible to add
instructions at runtime and execute it. Is it possible to do it? Any
suggestion on how?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 Jan 05
5
mean for subset
Hello, does anyone know how to take the mean for a subset of observations?
For example, suppose my data looks like this:
OBS NAME SCORE
1 Tom 92
2 Tom 88
3 Tom 56
4 James 85
5 James 75
6 James 32
7 Dawn 56
8 Dawn 91
9 Clara 95
10 Clara 84
Is there a way to get
2011 Sep 12
2
Automated generation of combinations
Hello,
I'd like to generate automatically all the possible combinations of a set of 8 variables (there are 535, too many to do it by hand). For example:
input: varA, varB, varC
output: varA+varB+varC
varA+varB
varA+varC
varB+varC
varA
varB
varC
Is there any function that produces this option?
Thank you
[[alternative
2016 Dec 31
3
Automatic Insertion of OpenACC/OpenMP directives
Dear LLVMers,
we have released a tool that uses LLVM to insert OpenACC or OpenMP
4.0 directives in programs. You can use the tool online here:
http://cuda.dcc.ufmg.br/dawn/. Our tool, dawn-cc, analyzes the LLVM IR
to infer the sizes of memory chunks, and to find dependences within
loops. After that, we use debug information to translate the low-level
information back into annotations that we
2008 Feb 12
1
create with virt-install hangs
Hi
I am just starting with xen and trying to get a few vm''s running on
this pentium 4 system. I tried using virt-install to start things. I
am using this link as the install base:
ftp://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/ ,
and a local file as hard drive.
What happens is that virt-install downloads the kernel, boots, a VNC
window for the new VM appears, but it
2016 Dec 31
0
Automatic Insertion of OpenACC/OpenMP directives
Hi,
> On Dec 31, 2016, at 8:33 AM, Fernando Magno Quintao Pereira via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Dear LLVMers,
>
> we have released a tool that uses LLVM to insert OpenACC or OpenMP
> 4.0 directives in programs. You can use the tool online here:
> http://cuda.dcc.ufmg.br/dawn/. Our tool, dawn-cc, analyzes the LLVM IR
> to infer the sizes of
2006 Mar 03
3
Need Authentication Source
Hi there,
This is my first post :)
I''ve read Agile and Rails Recipes book. Now i''m learning on making a
good authentication system and as i read this maillist archive, i''m
interested to have a demo source code (any .sit or .zip .tgz .bz2 would
be fine, i''m using tiger 10.4.5) for Security Model by Bruce Perens or
any other demos (like a part of
2017 Jan 03
2
Automatic Insertion of OpenACC/OpenMP directives
> On Jan 3, 2017, at 7:17 AM, Jonathan Roelofs <jonathan at codesourcery.com> wrote:
>
>
>
> On 12/31/16 12:37 PM, Fernando Magno Quintao Pereira via llvm-dev wrote:
>> Dear Mehdi,
>>
>> I've changed your example a little bit:
>>
>> float saxpy(float a, float *x, float *y, int n) {
>> int j = 0;
>> for (int i = 0; i < n;
2001 Aug 21
1
read.table -unexpected truncation of rows
Hello,
Are there any 'unallowed' (meta)characters that can cause R to parse
a file incorrectly when using read.table?
--Dawn
Here the background if it's needed:
I'm new to R, but have done some Perl. I'm trying to read in a
data.frame from a file using * as a record separator.
data <- read.table("all_genomes.data",header=T,sep="*")
This has
2013 Nov 20
1
error in install
Hi,
I am trying to install R on the Unix system. When I type './configure', it
seems many not installed on my computer. The last one is 'configure: error:
No F77 compiler found'.
Can you tell me where I can get these software before installing R?
Thanks!
Dawn
[[alternative HTML version deleted]]
2008 Jul 07
4
getting opensolaris b85 domU to start
Folks:
I am unable to get my opensolaris sn-b85 domU to start up in an
opensolaris sn-b85 dom0. I am booted to xvm. Other systems, such as
Fedora 8, WinXP Pro, W2k3 server, W2k8 server and Windows Vista startup
normally.
I have used the following to build the domU:
# mkfile -n 25g /solhvm/solhvm.img
# ls -l /solhvm
total 269
-rw------T 1 root root 26843545600 Jul 7 10:37 solhvm.img
2007 Jan 16
2
Gaussian glm for grouped data with unequal variances
Hello - I am fairly new to R, (i.e., ability to create functions/write
programs insignificant) and was wondering if there might be a convenient way
to model the following: I want to fit a gaussian glm to grouped data, while
allowing for unequal variances in each of the groups.
More specifically, my data set looks something like this:
----------------
data group
1 76 1
2 82 1
3