Displaying 20 results from an estimated 36 matches for "mideasttruth".
2012 Mar 14
2
sum(hist$density) == 2 ?!
...breaks=(-4:4))
> sum(h$density)
[1] 1 ----------------------------- now it's 1. why?!
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://www.childpsy.net/ http://www.memritv.org http://openvotingconsortium.org
http://thereligionofpeace.com http://mideasttruth.com http://palestinefacts.org
((lambda (x) `(,x ',x)) '(lambda (x) `(,x ',x)))
2011 Jul 12
3
when to use `which'?
...gt; a[a==4]
[1] 4
> a[which(a==4)]
[1] 4
> which(a==4)
[1] 4
> a[which(a>2)]
[1] 3 4 5 6
> a[a>2]
[1] 3 4 5 6
>
seems unnecessary...
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031
http://jihadwatch.org http://palestinefacts.org http://mideasttruth.com
http://truepeace.org http://thereligionofpeace.com
Good programmers treat Microsoft products as damage and route around it.
2017 Nov 09
2
[R-pkgs] Release of ess 0.0.1
...an Social Survey
Given the existence of ESS (Emacs Speaks Statistics -
https://ess.r-project.org/) the package name "ess" seems unfortunate.
--
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504
http://steingoldpsychology.com http://www.childpsy.net http://iris.org.il
http://mideasttruth.com http://thereligionofpeace.com https://jihadwatch.org
MS Windows: error: the operation completed successfully.
2012 Aug 30
3
apply --> data.frame
...frame(sapply(...))
names(foo) <- c(....)
is there a more "elegant" way?
Thanks!
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://palestinefacts.org http://dhimmi.com
http://honestreporting.com http://ffii.org http://mideasttruth.com
Lisp: it's here to save your butt.
2011 Feb 15
1
all.equal: subscript out of bounds
When I do
> all(all$X.Time == all$Y.Time);
[1] TRUE
as expected, but
> all.equal(all$X.Time,all$Y.Time);
Error in target[[i]] : subscript out of bounds
why?
thanks!
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.3 (Final)
http://mideasttruth.com http://honestreporting.com http://dhimmi.com
http://jihadwatch.org http://pmw.org.il http://ffii.org
The dark past once was the bright future.
2012 Aug 27
1
write.matrix.csr data conversion
...23487
$ cut -d' ' -f1 f | sort | uniq -c
23487 2
5194394 1
i.e., 0 is written as 1 and 1 is written as 2.
why?
is there a way to disable this?
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://palestinefacts.org http://mideasttruth.com
http://pmw.org.il http://ffii.org http://www.memritv.org http://dhimmi.com
Experience always comes right after it would have been useful.
2012 Oct 18
3
how to concatenate factor vectors?
...-
so, unlist(list()) works.
is there a better way or is this how this is supposed to be done?
Thanks!
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://honestreporting.com
http://think-israel.org http://thereligionofpeace.com http://mideasttruth.com
(lisp programmers do it better)
2006 Mar 17
6
removing NA from a data frame
...s) have quite a few NAs, so I would rather drop
the whole column than sacrifice all the rows (observations) which have
NA in that column.
How do I remove a column from a data frame?
Thanks!
--
Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 4 (Stentz)
http://ffii.org http://www.mideasttruth.com http://pmw.org.il
http://www.dhimmi.com http://www.honestreporting.com http://www.jihadwatch.org
Don't hit a man when he's down -- kick him; it's easier.
2011 Jul 12
1
how to find out whether a string is a factor?
...write
ysmd.top1000 <- ysmd[ysmd$X.stock "is in" top1000$V1,]
ysmd.rest <- ysmd[ysmd$X.stock "not in" top1000$V1,]
but how so I check whether a string is a member of a factor?
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031
http://mideasttruth.com http://truepeace.org
http://camera.org http://thereligionofpeace.com http://pmw.org.il
Professionalism is being dispassionate about your work.
2012 Apr 04
2
recover lost global function
...ast warning when I do that
or at least warning when I replace a functional value with non-functional?
thanks.
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://www.childpsy.net/ http://iris.org.il http://camera.org http://ffii.org
http://dhimmi.com http://mideasttruth.com http://pmw.org.il
Garbage In, Gospel Out
2013 Jan 18
5
select rows with identical columns from a data frame
...-end--------------->8---
I want the vector TRUE,FALSE,FALSE,FALSE selecting just the first
row because there all 3 columns are the same and none is NA.
thanks!
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://memri.org http://mideasttruth.com
http://honestreporting.com http://pmw.org.il http://iris.org.il
All extremists should be taken out and shot.
2011 Feb 15
4
string parsing
...the right R way".
E.g., the hash table value is a data frame.
A structure(record?) seems more appropriate.
thanks!
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.3 (Final)
http://pmw.org.il http://ffii.org http://camera.org http://honestreporting.com
http://iris.org.il http://mideasttruth.com http://thereligionofpeace.com
I haven't lost my mind -- it's backed up on tape somewhere.
2011 Dec 21
4
qqnorm & huge datasets
Hi,
When qqnorm on a vector of length 10M+ I get a huge pdf file which
cannot be loaded by acroread or evince.
Any suggestions? (apart from sampling the data).
Thanks.
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://mideasttruth.com http://honestreporting.com http://camera.org
http://openvotingconsortium.org http://pmw.org.il http://thereligionofpeace.com
A person without flaws probably lacks strengths either.
2012 Jan 20
4
extract fixed width fields from a string
...e?
Does R support the "set" data type?
Thanks!
PS. thanks to Sarah Goslee who answered my previous question in so much detail!
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://camera.org http://openvotingconsortium.org http://iris.org.il
http://mideasttruth.com http://memri.org http://honestreporting.com
Don't take life too seriously, you'll never get out of it alive!
2012 Feb 08
4
"unsparse" a vector
...the column name is 6 chars and value is 2 digits).
I need to convert it to a data frame:
data.frame(A=c(1,3,0,7),B=c(2,0,5,8),C=c(0,4,0,6))
A B C
1 1 2 0
2 3 0 4
3 0 5 0
4 7 8 6
how do I do that?
thanks.
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://mideasttruth.com http://jihadwatch.org http://pmw.org.il
http://openvotingconsortium.org http://iris.org.il http://memri.org
What's the difference between Apathy & Ignorance? -I don't know and don't care!
2011 Feb 16
2
create a data frame with the given column names
...T KNOWN IN ADVANCE_?
i.e., I have a vector of strings for names and I want to get an _EMPTY_
data frame with these column names.
is it at all possible?
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.3 (Final)
http://openvotingconsortium.org http://pmw.org.il http://memri.org
http://mideasttruth.com http://palestinefacts.org
I don't like cats! -- Come on, you just don't know how to cook them!
2011 Feb 16
1
summary in functions
summary() in functions seems to print nothing.
str() does print something.
why?
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.3 (Final)
http://mideasttruth.com http://truepeace.org http://iris.org.il
http://pmw.org.il http://jihadwatch.org http://ffii.org
A year spent in artificial intelligence is enough to make one believe in God.
2002 Dec 14
2
cygwin under wine?
...020605.
thanks.
PS - I am not a pervert. I just need to debug a program that works on
linux but crashes on cygwin...
--
Sam Steingold (http://www.podval.org/~sds) running RedHat8 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
Warning! Dates in calendar are closer than they appear!
2012 Jan 18
1
drop rare factors
...t;))]]
except that I probably got the syntax wrong
and I want c("A","B") to be generated automatically from frame$MyFactor
and the number 0.01 (1%).
Thanks!
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://thereligionofpeace.com http://mideasttruth.com http://memri.org
http://palestinefacts.org http://dhimmi.com http://truepeace.org
DRM "access management" == prison "freedom management".
2012 Feb 13
1
entropy package: how to compute mutual information?
suppose I have two factor vectors:
x <- as.factor(c("a","b","a","c","b","c"))
y <- as.factor(c("b","a","a","c","c","b"))
I can compute their entropies:
entropy(table(x))
[1] 1.098612
using
library(entropy)
but it is not clear how to compute their mutual information