Displaying 20 results from an estimated 5000 matches similar to: "Replacing null values"
2012 Feb 07
5
Table rearranging
I have a table that looks like this:
measurement?? ?date??? door ?? color
0.93529385?? ?513?? ?open?? ?red
0.97419293?? ?420??? open ?? red
0.962053514?? ?513?? ?closed?? ?red
0.963909937?? ?1230?? ?open?? ?blue
0.97652034?? ?1230?? ?open?? ?green
0.989310795?? ?1230?? ?closed?? ?blue
0.9941022?? ?917?? ?closed?? ?yellow
I would like to create a table that has: Open measurement, Closed
2011 Aug 24
3
dput data frame
I have a data frame that is about 40 columns by 10000 rows. I want to get the dput of small portion of that by using dput(results[1:10,3:6]). The dput is very long and includes all the values from the original data frame. Why is that?
Jeffrey
2012 Jan 25
3
Gray levels
The gray (level) function returns different shades of gray, where level is a vector of numbers ranging from 0 to 1.? 0 is white and 1 is black and everything in between is a shade of gray.
Is there a function that will let me choose two different colors?? For example, a 0 might be blue and 1 might be red and in between might be a mix.
Jeffrey
2011 Aug 05
2
Aggregating data
I aggregated my data: aggresults <-aggregate(results, by=list(results$a, results$b, results$c), FUN=mean, na.rm=TRUE)
results has about 8000 lines of data, and aggresults has about 80 lines. I would like to create a separate variable for each of the 80 aggregates, each containing the 100 lines that were aggregated. I would also like to create plots for each of those 80 datasets.
Is
2011 Aug 03
4
Convert matrix to numeric
I have a matrix that looks like this:
structure(c("0.0376673981759913", "0.111066500741386", "1", "1103",
"18", "OPEN", "DEPR", "0.0404073656092023", "0.115186044704599",
"1", "719", "18", "OPEN", "DEPR", "0.0665342096693433",
2011 Oct 20
2
Calculating differences
I have a table that looks like this:
structure(list(speed = c(3,9,4,8,7,6), C = c(0.697, 0.011, 0.015, 0.012, 0.018, 0.019), house = c(1,
1, 1, 1, 1, 1), date = c(719, 1027, 1027, 1027, 1030, 1030),
hour = c(18, 8, 8, 8, 11, 11), id = c("1000", "10000",
"10001", "10002", "10003", "10004")), .Names = c("speed",
2011 Nov 22
3
Binned line plot
I have a scatter plot with 10000 points.? I would like to add a line that bins every 50 points and connects the average of each bin.? I'm looking for something similar to line type "m" in Stata.
With this dataset of 10000 points, I would also like to bin the data and make boxplots at certain intervals, so that I have a set of boxplots to represent each bin.? I would also like the
2011 Aug 02
1
Calculate mean ignore null
I have the following:
Tout = c(". ", ". ",
+ "-51.0", " -9.6", " -9.6", " -9.6", " -9.6", " -9.6", " -9.6",
+ " -9.6", " -9.5", " -9.5", " -9.6", " -9.5", " -9.6", " -9.6",
+ " -9.5", " -9.4", "
2012 Jan 10
2
Aggregate by minimum
For each date, I would like to keep the line with the lowest speed and discard the rest. The result would have one line for each date. Can I use aggregate for this?
My table is as follows:
structure(list(speed = c(3,9,14,8,7,6), result = c(0.697, 0.011, 0.015, 0.012, 0.018, 0.019), house = c(1,
1, 1, 1, 1, 1), date = c(719, 1027, 1027, 1027, 1030, 1030),
id = c("1000",
2007 Aug 24
3
Merging two files together in R
Hi,
Thanks in advance for reading this post.
I received some affymetrix genotyping data back recently (250K, Nsp
array)…However, in order for me to do any analysis on this data set, I need
to add append the annotation file to it. Basically I want to do something
that looks like this:
Snpfile(tab delimited):
SNPID Genotype X Y
123 AA 13.4 1.2
2013 Jan 15
2
[LLVMdev] Need some brief explanation about llvm::MemoryBuffer and llvm::SourceMgr
Hi Justin Holewinski,
>> As far as I know, there is not a good way to implement user prompts with the LLVM APIs.
This info helps me a lot.
I tried to do a thing that is not possible.
Thank you very much.
Sincerely
Journeyer
2013/1/15 Justin Holewinski <justin.holewinski at gmail.com>:
> Is this for user prompts, or just reading data from stdin? You can use
>
2010 Mar 10
2
ggplot2: "varwidth"-equivalent for geom_boxplot?
Hi,
Is there such a thing? If no: is it easily simulated?
thanks, Joh
2007 Dec 18
6
All anchored series from a vector?
>From: Johannes Graumann <johannes_graumann at web.de>
>Date: 2007/12/18 Tue PM 04:40:37 CST
>To: r-help at stat.math.ethz.ch
>Subject: [R] All anchored series from a vector?
lapply(1:length(myvector) function(.length) {
c(myvector[1}:myvector[.length])
})
but test it because i didn't.
>Hi all,
>
>What may be a smart, efficient way to get the following result:
2012 Dec 30
2
[LLVMdev] git repository of the tutorial
On Sat, Dec 29, 2012 at 9:45 PM, Journeyer J. Joh
<oosaprogrammer at gmail.com> wrote:
> Klang is tested with LLVM 3.1
> Header file location is often changed. I guess that's why..
I think that klang should be based on the latest SVN/git version of LLVM.
-- Sean Silva
2013 Jan 15
0
[LLVMdev] Need some brief explanation about llvm::MemoryBuffer and llvm::SourceMgr
And for this kind of question I think I would better hold in.
There would be more important issue worth on this list.
For this reason I am sorry.
Sincerely
Journeyer
2013/1/15 Journeyer J. Joh <oosaprogrammer at gmail.com>:
> Hi Justin Holewinski,
>
>>> As far as I know, there is not a good way to implement user prompts with the LLVM APIs.
>
> This info helps me a
2012 Jun 12
4
replacing NA for zero
Dear R users,
I have a very basic query, but was unable to find a proper anwser.
I have the following data.frame
x y
2 0.12
3 0.25
4 0.11
6 0.16
7 0.20
and, due to further calculations, I need the data to be stored as
x y
1 0
2 0.12
3 0.25
4 0.11
5 0
6 0.16
7 0.20
8 0
How do
2012 Dec 30
3
[LLVMdev] git repository of the tutorial
Hello,
I just applied changes of LLVM 3.2 and it is tested with LLVM 3.2
downloaded from the LLVM Download Page.
I just worked for master branch only.
The rest of the other branches need to be changed about this also.
This will be done as soon as possible.
(Before I fix this, If you look at the commits for this issue for
master branch, you can easily fix it and test for others also.)
Sorry for
2012 Jun 21
0
[LLVMdev] Is cross-compiling for ARM on x86 with llvm/Clang possible?
Hi Joerg,
Thank you very much!
I finally found a working command string to cross-compile for ARM on x86.
./clang -v --save-temps -ccc-host-triple arm-none-linux-gnueabi
--sysroot=/home/hum/Documents/Projects/arm_toolchain/arm-2010.09/arm-none-linux-gnueabi/libc
-gcc-toolchain /home/hum/Documents/Projects/arm_toolchain/arm-2010.09
hello.c -o hello
Above works fine! Important options are
2010 Aug 03
3
grid.table and expression in table body?
Hi,
Is there any way to get an expression into a data.frame, such that
"grid.table" from "gridExtra" will plot it evaluated in the table body? The
docu does it for the header, but is the body possible?
Thanks, Joh
2007 Dec 19
4
Factor Madness
Why is class(spectrum[["Ion"]]) after this "factor"?
spectrum <- cbind(spectrum,Ion=rep("",
nrow(spectrum)),Deviation.AMU=rep(0.0, nrow(spectrum)))
slowly going crazy ...
Joh