Displaying 20 results from an estimated 3000 matches similar to: "Query about memory used in list and dataframe"
2008 Jan 20
3
Logical test and look up table
Dear R users,
I have a data frame with one column (4000 rows) containing name codes
(factor with 63 levels). I would like to associate each name with a
particular Type (coded as 1,2,3,4,H or H1) in a second column. Is it
possible to do a lookup table of associations (i.e. A23 is of type 1, A13
is of type 3 ...) so as to fill up automatically the $Type column.
df()
$Source $Type
A23
A24
A9
A32
2009 Jul 10
3
strange strsplit gsub problem 0 is this a bug or a string length limitation?
I was working with the rmetrics portfolioBacktesting function and dug into
the code to try to find why my formula with 113 items, i.e. A1 thru A113,
was being truncated and I only get 85 items, not 113.
Is it due to a string length limitation in R or is it a bug in the strsplit
or gsub functions, or in my string?
I'd very much appreciate any suggestions
============Input script:
2005 Jul 07
3
What method I should to use for these data?
Dear R user:
I am studying the allele data of two populations.
the following is the data:
a1 a2 a3 a4 a5 a6 a7 a8 a9
a10 a11 a12 a13 a14 a15 a16 a17
pop1 0.0217 0.0000 0.0109 0.0435 0.0435 0.0000 0.0109 0.0543
0.1739 0.0761 0.1413 0.1522 0.1087 0.0870 0.0435 0.0217 0.0109
pop2 0.0213 0.0213 0.0000 0.0000 0.0000 0.0426 0.1702 0.2128
0.1596 0.1809 0.0957 0.0745 0.0106
2013 Feb 04
4
If() values in one dataframe then return values from another
I have a large data frame ("data1") that looks like:
A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 A19 A20
[1,] 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
[2,] 0 0 0 0 0 1 0 0 1 0 1 0 0 1 0 0 0 0 0 0
[3,] 1 1 0 1 1 1 1 1 1 1 1 0 1 1 0 0 0 0 0 0
[4,] 1 1 1 1
2019 Oct 25
3
register spilling and printing live variables
Hello,
I have studied register allocation in theoretical aspects and exploring the
same in the implementation level.
I need a minimal testcase for register spilling to analyze spilling
procedure in llvm. I tried with a testcase taking 20 variables but all the
20 variables are getting stored in the stack using %rbp. Maybe my live
variable analysis is wrong. Please help me with a minimal testcase
2007 Feb 02
2
Dell and pxelinux keyboard problems
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I am having trouble with one Dell system and pxelinux: The keyboard does
not properly work.
The computer boots, I press F12 to select the boot device, then I select
the network card. Up to that point the keyboard works fine.
Then pxelinux is booted, and I use menu.c32 to display a menu (or
vesamenu.c32 - same result). Now the keyboard does not
2012 Apr 23
2
How to insert filename as column in a file
Hi,
I am relatively new to R. Have scourged the help files and the www but
havent been able to get a solution.
I have around 250 csv files, one file for each date. They have columns of
all types, numeric, string etc. The name of each file is the date in the
form of 'yyyymmdd'. There is no column within the file which helps me
identify the date on which the file was generated, only the
2005 Sep 20
2
script.aculo.us: pause before effect.appear
I''ve created a simple script (below) which calls the effect.appear script in
order to make a group of items appear at the page load. I would like to have
the images randomly appear at different times; e.g. the 3rd image might
start appearing 2 seconds after load, the 6th image immediately after load,
the first image 1 second after load, etc...
How can I achieve this affect?
---
2009 Oct 19
1
Question about IMAP IDLE (and Palm Pre)
Hello,
i try to understand, how it works (IDLE).
Try to get it successfully work with my new Palm Pre ;-)
which looks like to have a lot issues wir imap... so i'll blame not dovecot
for the issues.
Sent a mail, from googlemail.
processed by dovecot ad 12:11.
what me now confusing, is, that there in the out-log is nothing visible,
I expected, to see there was sent an notification, there was
2009 Oct 08
2
plotting a set of discrete distributions
I have the following data set, representing the the estimated number of
some event (est), when the actual number
was 3, 4, ..., 15. The numbers in the cells are the observed
*frequencies* of each combination of (actual, estimated),
so each column (a3 -- a15) gives a single discrete frequency
distribution. Thus, when the actual number was 6,
the estimated values were 5,6,7 with frequencies 7,
2006 Dec 31
7
zero random effect sizes with binomial lmer
I am fitting models to the responses to a questionnaire that has
seven yes/no questions (Item). For each combination of Subject and
Item, the variable Response is coded as 0 or 1.
I want to include random effects for both Subject and Item. While I
understand that the datasets are fairly small, and there are a lot of
invariant subjects, I do not understand something that is happening
2012 Feb 16
2
how to rbind matrices from different loops
Dear R experts,
I am having difficulty using loops productively and would like to please
ask for advice. I have a dataframe of ids and groups. I would like to
break down the dataframe into groups, find the unique sets of ids, then
reassemble. My thought was to use a loop, but I have been unable to finish
this loop in a logical way. I would like to find the unique ids for group
1, group 2,
2009 Dec 17
1
CORRECTION - Generation of Random numbers in a loop
Dear R helpers, please ignore my earlier mail. Here is the corrected mail. Please forgive me for the lapses on my part. Extremely sorry.
Here is the corrected mail.
Dear R helpers
I am having following data
Name Numbers
A11 12
A12 17
A13 0
A11 11
A12 6
A13 0
2018 Mar 12
0
Equivalent of gtools::mixedsort in R base
???
> y <- sort( c("a1","a2","a10","a12","a100"))
> y
[1] "a1" "a10" "a100" "a12" "a2"
> mixedsort(y)
[1] "a1" "a2" "a10" "a12" "a100"
**Please read the docs!** They say that mixedsort() and mixedorder() both
take a **single
2011 Aug 05
2
R compare cells in one matrix
Good morning!
Please, could you help me with the problem?
I have a matrix *144x73.*
An example of a matrix:
[,1] [,2] [,3] [,4] [,5]
[1,] 277.4 276.24 275.62 276.55 278.05
[2,] 277.4 276.24 275.55 276.42 277.72
[3,] 277.4 276.24 275.50 276.22 277.39
[4,] 277.4 276.24 275.42 276.02 277.02
[5,] 277.4 276.22 275.37 275.82 276.64
And I want to *compare*its cells
2018 Mar 12
7
Equivalent of gtools::mixedsort in R base
Hi,
Searching for functions that would order strings that mix characters and numbers in a "natural" way (ie, "a1 a2 a10" instead of "a1 a10 a2"), I found the mixedsort and mixedorder from the gtools package.
Problems:
1- mixedorder does not work in a "do.call(mixedorder, mydataframe)" call like the order function does
2- gtools has not been updated in 2.5
2012 Mar 28
6
How to get all possible combinations?
Dear all, suppose I have a vector with elements as:
Vec <- c(2,3,4,5,6)
Now I want to have all possible combination of length 3 using those
elements and without any repetition. Like, I want to have 1
possibility like 2-3-4 but not 3-2-4.
Can somebody guide me how to achieve that in R?
Thanks for your help.
2013 Feb 01
2
Nested loop and output help
Hello Everyone,
My name is Thomas and I have been using R for one week. I recently found
your site and have been able to search the archives of posts. This has
given me some great information that has allowed me to craft an initial
design to an inquiry I would like to make into the breakdown of McNemar's
test. I have read an intro to R manual and the posting guides and hope I am
not violating
2012 May 25
2
Query about creating time sequences
Hi All,
I have a query about time based sequences. I know such questions have been
asked a lot on forums, but I couldnt find the exact thing that I was
looking for.
I want to create a time-based sequence which will mimic the trading window
AND would span multiple days. Something like below:
"2011-01-03 09:15:00 IST"
"2011-01-03 09:15:01 IST"
....
....
....
"2011-01-03
2005 Nov 09
8
Element-by-element multiplication operator?
Is there an element-by-element multiplication in R, like the .* operator in Matlab?
eg: A (2x3)
B (2x3)
C=A.*B
C (2x3)
C = [[a11*b11 a12*b12 a13*b13]; [a21*b21 a22*b22 a23*b23]]
I can't find one...
Thanks
-Mike Gates