Displaying 20 results from an estimated 1000 matches similar to: "Open Source Research"
2009 Jan 21
0
patch for src/main/character.c
Attached is a suggested patch for src/main/character.c. It does not fix
a bug, but rather provides an improvement on the recent extension of
do_grep.
In essence, instead of four occurences of 'invert ^ LOGICAL(ind)[i]'
that accommodate for the option 'invert' added to grep, there is one
occurence of 'LOGICAL(ind)[i] ^= invert' that modifies in-place the
logical vector of
2009 Feb 12
0
Patch for src/main/character.c, systematizing recent fix to do_grep
The attached patch provides a modification to the recent fix/improvement
to do_grep already included in the most recent development version.
The original fix added new functionality to the grep function by adding
a new parameter, 'invert'. In the source code for the underlying
do_grep, the value of the parameter is used to invert the logical
match-no match flag vector ind. The
2008 Oct 26
4
odd behaviour of identical
given what ?identical says, i find the following odd:
x = 1:10
y = 1:10
all.equal(x,y)
[1] TRUE
identical(x,y)
[1] TRUE
y[11] = 11
y = y[1:10]
all.equal(x,y)
[1] TRUE
identical(x,y)
[1] FALSE
y
[1] 1 2 3 4 5 6 7 8 9 10
length(y)
[1] 10
looks like a bug.
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system
2008 Jun 18
1
strsplit and the empty string
Hello,
I am wondering about the behaviour of strsplit. When the pattern
matches the beginning of the search string, the mepty string is added to
the result, but that's not the case when the pattern matches the end of
the search string:
strsplit(" hello dolly ")
[1] "" "hello" "dolly"
The man for strsplit explains the algorithm:
"
The algorithm
2003 Feb 05
3
R as a `script'
is there any way i can use R as a tool for scripts in unix, as
wotan[hrue]$ cat example.R
#!/usr/bin/R
x=1
havard
--
Havard Rue
Department of Mathematical Sciences
Norwegian University of Science and Technology
N-7491 Trondheim, Norway
Voice: +47-7359-3533 URL : http://www.math.ntnu.no/~hrue
Fax : +47-7359-3524 Email: havard.rue at math.ntnu.no
2009 Aug 24
2
Number of CPU's
Any way to get access to the number of CPU's, optionally their type,
from within R? In linux I can just read /proc/cpuinfo but for
win/mac ?
Thanks!
H?vard
--
H?vard Rue
Department of Mathematical Sciences
Norwegian University of Science and Technology
N-7491 Trondheim, Norway
Voice: +47-7359-3533 URL : http://www.math.ntnu.no/~hrue
Fax : +47-7359-3524 Email: havard.rue
2013 Jul 09
1
[off topic] [research] Interviews for contributors over 50 for Oregon State University research
Hello,
Researchers at Oregon State University are striving to conduct
research to learn more about the free/open source software community
landscape as it relates to older adults. We have identified you as a
leader for a free/open source software community. If you?re
interested, we will either do an in-person interview (if you are local
to the Corvallis or Portland area), or an interview over the
2008 Apr 07
1
here's some badly designed code
hello!
i am kyrre and i''m a rails newbie. i''m trying to combine altered beast
with chuckslist to create some sort of online community here in norway
where i can make friends and maybe even hook up with some lovely ladies.
but i feel that the chuckslist part ain''t as up-to-date and
well-designed as the altered beast part. it''s not restful for instance,
and my
2005 Nov 25
1
Use of nesting in lmer- error in numerical expression
Dear R users,
I am trying to fit a GLMM using lmer to a dataset where the brood identity
(LNRREIR) is nested within mothers identity. The reason for this is that
each mother can have several nests within each year and also between years.
I am running the following script (actually I have tried all different
combinations with LNRREIR and mother):
mod <- lmer(sr~z.hatchday +
2006 Aug 08
0
(Fwd) Re: paired t-test. Need to rearrange data?
------- Forwarded message follows -------
From: Petr Pikal <petr.pikal at precheza.cz>
To: Henrik Parn <henrik.parn at bio.ntnu.no>
Subject: Re: [R] paired t-test. Need to rearrange data?
Date sent: Tue, 08 Aug 2006 16:13:47 +0200
Hi
Uff, it takes me a bit headache but this shall do it
?unstack
?table
?t
new.list<-unstack(test.data,y~id)
2010 Oct 04
0
glmer or not - glmer model specification
Hello,
I'm having some trouble figuring out the correct model specification for
my data. The system consists of multiple populations of an organism,
which have been genetically sampled for several years. The problem is
this: A minority of individuals are found in more than one sample,
either they have survived into the next sampling at the same location,
or have migrated to another another
2017 Sep 20
0
arguments imply differing number of rows
4000:6000 gives you 4000, 4001, ..., 6000. I suspect you want
population= c(seq(4000, 6000, length=5), seq(3500, 4300, length=5),
seq(3000, 3200, length=5))
Bob
On 20 September 2017 at 17:07, Shivi Bhatia <shivipmp82 at gmail.com> wrote:
> Hi Team,
>
> I using the syntax as:
>
> data.df<- data.frame(
> city= c(rep(c("Delhi",
2011 Apr 13
1
Extracting selected rows from a matrix to a submatix
I have a matrix M
> dim(M)
[1] 30380 561
I have another list L contains , that contains some row names of matrix M
str (L)
chr [1:21037]
Now I want to extract the submatrix subM (21037 , 561) from the matrix M by matching the rownames (M) to the 21037 rownames o f L
How do I do that ?
Thanks and regards,
Pankaj Barah
Pankaj Barah Department of Biology
Norwegian University
2013 Feb 22
1
Netcdf file in R
Good afternoon,
I am a new in R. I have to work with large climate data.I am not able to read the netcdf file. Can anyone try with this file attached ?
Best Regards,
..................Anup KhanalNorwegian Institute of science and Technology (NTNU)Trondheim, NorwayMob:(+47) 45174313
2013 Feb 23
1
Extract, sum and Loop in R
Hi all,
I have gone through some basics of R in eclipse environment. What I need to
work is more than basic level so I could not find out the solution by
myself. could anyone help me ?
My case,
I have climate data (precipitation) in nc format with single layer for each
time interval in a day. That means for January 1, 2013, I have 8 separate
files each containing 3 hrs cumulative precipitation
2011 Feb 08
2
Extrcat selected rows from a list
Hi,
I have two lists
1) List1- 30,000 rows and 104 columns
2) List2- a list of 14000 selected rownames from List 1
Now, I want to extract all the 104 columns of List1 matching with the 14000 selected rownames from List2.
Psedocode will be something like this:
match rownames(List2) with rownames(List1)
extract selected matched 104 coloumns from (List1)
strore in-> List3
So the
2013 Mar 11
3
New Stack
Hi Experts, I am newbie in R. Could you please share your idea to create a stack with no value or zero value? Nrow=1,Ncol=1, Ncell=1, I aim to work with looping, I want to make a first layer with zero values to add other layers further. Thanks.
Best Regards,
..................Anup KhanalNorwegian Institute of science and Technology (NTNU)Trondheim, NorwayMob:(+47) 45174313
2011 Mar 11
2
'autocompletion' of named elements of a list
I had an obscure bug that boiled down to this ``feature'' in R,
Read 3921 items
> A = list(aa = 1)
> A
$aa
[1] 1
> if (A$a) print("a is there")
[1] "a is there"
The test appear to check is A$a is TRUE, but what happen is that it
auto-complete (silently), and expand to 'A$aa'.
The problem was caused by the fact that I had also a element named
1998 Aug 24
1
R-beta: Segmentation fault
Dear everyone,
I'm doing some simulations which involves bootstrapping
(using functions written in c loaded with R's dyn.load()
function) and maximising the likelihood function with R's
nlm() function. I used to run my code in S-plus but because
I frequently ran out of memory (because of S-plus' silly
memory management), I decided to try porting my code to R.
In R (on a linux
2010 Feb 04
1
Bug in as.character? (PR#14206)
A long formula which is converted using as.character, looses its last
part: ``diagonal = 1e-12)''
Shorter formula is ok though.
Best,
H??vard
************
Browse[2]> formula.str
y ~ -1 + b1 + b2 + b3 + b4 + b5 + b6 + b7 + b8 + b9 + b10 + b11 +
b12 + b13 + b14 + b15 + b16 + b17 + b18 + b19 + b20 + b21 +
b22 + b23 + b24 + b25 + b26 + b27 + b28 + b29 + b30 + b31 +
b32 +