Displaying 20 results from an estimated 700 matches similar to: "exporting simulated data"
2013 Jan 23
2
importing data
Dear All,
Sorry for asking a newbie question. I want to ask how to import 1000
datasets whose file names are labelled from data1.dat to data1000.dat into
R so that they are named M[1, , ] to M[1000, , ] accordingly. Thank you
very much.
Best Regards,
Ray
[[alternative HTML version deleted]]
2011 Sep 04
1
generating multiple dataset and applying function and output multiple output dataset......
Dear R experts:
Here is my problem, just hard for me...
I want to generate multiple datasets, then apply a function to these
datasets and output corresponding output in single or multiple dataset
(whatever possible)...
# my example, although I need to generate a large number of variables and
datasets
seed <- round(runif(10)*1000000)
datagen <- function(x){
set.seed(x)
var <- rep(1:3,
2004 Jan 20
1
requesting new entry to keywords.db
R-developers:
How do we go about adding keywords to the KEYWORDS and KEYWORDS.db files?
I would like to add "econometrics & Econometrics" to the Statistics
section of the file... Is this something I would have to do through CVS?
Statistics
datagen & Functions for generating data sets
distribution & Probability Distributions and Random Numbers
univar & simple
2009 Oct 28
3
variable labels to accompany data.frame
Often it is useful to keep a "codebook" to document the contents of a dataset. (By "dataset" I mean
a rectangular structure such as a dataframe.)
The codebook has as many rows as the dataset has columns (variables, fields). The columns (fields)
of the codebook may include:
? variable name
? type (character, factor, integer, etc)
? variable label
2011 Apr 13
2
Dump the "source code" of data frame
Dear R experts,
I remember a similar function existed and have been mentioned in
R-help before. I tried my best to search but I really can't find it
out.
suppose I have an data frame like this:
> somedata <- data.frame(age.min = 1, age.max = 1.5, male = TRUE, l = -1.013, m=16.133, s=0.07656)
In order to back up the data and I don't want to use write.table(), I
would like to back
2005 Mar 16
1
Note: "The default device has been opened to honour attempt to modify trellis settings"
R-help,
I'm using a function whose end result is a trellis plot.
When I call the function I get sometimes the following message:
"Note: The default device has been opened to honour attempt to modify
trellis settings "
leading up to any plot whatsoever.
I call the package 'lattice' within the function and 'detach' after
plotting.
I have to close the graphics
2010 Mar 12
6
Randomly sampling subsets of dataframe variable
Fellow R users,
I am stumped on what would seem to be something fairly simple.
I have a dataframe that has a variable named 'WEEK' that takes
the numbers 1:26 (26 week time-period) with each number repeated
five times consecutively (once for each weekday, Monday through
Friday). Ex. 111112222233333.....2626262626. I would like to
randomly extract two weekdays per five day week for
2008 Apr 10
1
(no subject)
Subject: nls, step factor 0.000488281 reduced below 'minFactor' of
0.000976563
Hi there,
I'm trying to conduct nls regression using roughly the below code:
nls1 <- nls(y ~ a*(1-exp(-b*x^c)), start=list(a=a1,b=b1,c=c1))
I checked my start values by plotting the relationship etc. but I kept
getting an error message saying maximum iterations exceeded. I have
tried changing these
2006 Jun 29
1
Question on memory allocation & loop
Hello All,
I am trying to work on writing the following piece of (pseudo)
code in an optimal fashion:
----------------------------------------------------
# Two data frames with some data
a = data.frame(somedata)
b = data.frame(somedata)
for(i in 1:nrow(dt) {
# Merge dates for a given date into a new data frame
c = merge(a[a$dt==dt[i],),b[b$dt == dt[i],], by=c(some column));
}
2013 Sep 23
2
[LLVMdev] LLVM ERROR: expected relocatable expression
Hi Eli,
Slightly changed the example :-
.section somedata
.Ltmpa:
.word 100
.Ltmpb:
.word 60
.Ltmpc:
.word 40
.Ltmpd:
.word (.Ltmpa-.Ltmpb)-.Ltmpc
The GNU assembler properly handles the above.
$as -c x.s -o x.o
$readelf -x 4 x.o
Hex dump of section 'somedata':
NOTE: This section has relocations against it, but these have NOT been
applied to this dump.
0x00000000 64003c00
2009 Jun 11
4
Count observation
Hi listers,
I have the following code...
data<-as.matrix(c(1,2,3,4,5,6,7,8,9,10),nrow=10,ncol=1,byrow=TRUE)
n<-nrow(data)
m<-n-1
boot<-data[sample(m,replace=T),]
So, I need to count the number of times each observation was selected at the
sample with replacement...
Suppose I sampled...
4 5 1 3 7 5 1 4 7
So, I would count...
x count
1 2
2 0
3 1
4 2
5 2
6 0
7 2
8 0
9 0
10 0
2013 Sep 23
0
[LLVMdev] LLVM ERROR: expected relocatable expression
On Sun, Sep 22, 2013 at 9:43 PM, Shankar Easwaran
<shankare at codeaurora.org>wrote:
> Hi Eli,
>
> Slightly changed the example :-
>
> .section somedata
> .Ltmpa:
> .word 100
> .Ltmpb:
> .word 60
> .Ltmpc:
> .word 40
> .Ltmpd:
> .word (.Ltmpa-.Ltmpb)-.Ltmpc
>
> The GNU assembler properly handles the above.
>
> $as -c x.s -o x.o
>
2007 Sep 18
1
Best practices - R CMD check and vignettes
Hi,
I have a package that contains two vignettes that both use saved objects
in the examples directory of the package. With previous versions of R I
could have a code chunk in the vignette like this:
<<echo=false>>=
load("../examples/somedata.Rdata")
@
followed by a code chunk like
<<eval=false>>=
foo <- bar("data")
@
that simulated the actual
2005 Aug 10
2
Creating new columns inside a loop
Ok, I know R isn't an optimal environment for looping (or so I've heard) but
I have a need to loop through columns of data and create new columns of data
based on calculations within rows...
I'm sure there's a help file, but I'm not sure what search terms to use to
find it! The problem is that these new columns need to have names that I can
later access... Like NewVar1,
2011 Jun 13
2
use variable value to create new variable name
Hi,
Is it possible (and how) to use a variable value to create a name of a new R
variable? I want to do something like this:
for (i in 1:3) {
newvarialbe_#i# = somedata
}
where #i# is a value stored by i. In the first loop, there will be
newvariable_1, in second newvariable_2 and so on.
Thanks in advance,
Maciek
[[alternative HTML version deleted]]
2013 Sep 22
0
[LLVMdev] LLVM ERROR: expected relocatable expression
On Sun, Sep 22, 2013 at 12:23 PM, Sid Manning <sidneym at codeaurora.org>wrote:
> On 09/20/2013 06:00 PM, Eli Friedman wrote:
>
>> On Fri, Sep 20, 2013 at 2:50 PM, Sid Manning <sidneym at codeaurora.org
>> <mailto:sidneym at codeaurora.org**>> wrote:
>>
>>
>> This example generates the following error:
>> .Ltmp3:
>>
2013 Sep 22
2
[LLVMdev] LLVM ERROR: expected relocatable expression
On 09/20/2013 06:00 PM, Eli Friedman wrote:
> On Fri, Sep 20, 2013 at 2:50 PM, Sid Manning <sidneym at codeaurora.org
> <mailto:sidneym at codeaurora.org>> wrote:
>
>
> This example generates the following error:
> .Ltmp3:
> .Ltmp5:
> .Ltmp13:
> .word (.Ltmp5-.Ltmp3)-.Ltmp13
>
> ./llvm-mc ex.s -filetype=obj
>
2007 Aug 28
3
virtual resources in 0.23.2, do they work?
Hello all.
I am using the munin module for a while now, I think that after the
upgrade to puppet and puppetmaster 0.23.2 (or 0.23.1) it simply stopped
working.
Were there any changes to the realizing and exporting of resources? What
could prevent this module from stopping to work.
What happenes is that new hosts (munin::client nodes) do get stored in
the database, but the munin::host does not
2005 May 10
6
How not to use AJAX
Hi all,
Just ran across this article
http://blog.taragana.com/index.php/archive/how-not-to-use-ajax/
and was curious what the consensus is on the bookmarking and search
indexing problems. I remember seeing something about bookmarking on the
list. Thanks,
Ben
--
Ben Jackson
Diretor de Desenvolvimento
INCOMUM Design & Conceito
ben-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org
2016 Oct 20
3
RFC: Killing undef and spreading poison
Hi Krzysztof,
Krzysztof Parzyszek wrote:
> On 10/18/2016 4:29 PM, Nuno Lopes wrote:
>> Even %a and %b might not be the same in "%a = freeze(%x), %b =
>> freeze(%x)" (each freeze returns an arbitrary, but fixed, value).
>
> Assume that %x is known to be a poison value and have:
> %a = freeze(%x)
> %b = freeze(%x)
>
> Is %a == %a true?
Yes, %a is always