Displaying 20 results from an estimated 800 matches similar to: "Date Not Staying in Date Format"
2007 Oct 24
3
Partial aggregate on sorted data
Hi All,
I'm looking for ways to compute aggregate statistics (with the aggregate
function) but with an option for sorting and selecting a subset of the data
frame. For example, I have would like to turn this :
aggregate(myDataframe$TargetValue,list(SomeFactor =
myDataframe$SomeFactor),mean)
into something like
aggregate(myDataframe$TargetValue,list(SomeFactor =
2010 Apr 24
4
assign value between different type: Double vs Integer
Dear list,
just to put it in a simple way:
i read.csv from csv file to create a gdata
then, create array gdata34
however, when making a loop for assigning gdata34[1,m]<-gdata[m,4], this is what happen
gdata[1,4] 's real value is 10354, however, the gdata34[1,4] turns to be 883
then i checked the type: gdata[1,4] is integer, while gdata34[1,4] is double.
Can any one give me some help
2010 Mar 12
3
rmaxwell in C
Hi R useRs:
How can I generate a random sample from Maxwell Distribution in C language?
Since I know the function rmaxwell {VGAM}, I tried the function r2c {r2c}.
But I still cannot find the source code.
Thanks for your kind help.
RegaRds,
2010-03-12
Randel
[[alternative HTML version deleted]]
2011 Nov 16
1
geom_bar with missing data in package ggplot
Dear all,
I was hoping someone could help with a ggplot question. I would like
to generate a faceted bar chart, but missing data are causing
problems.
g<-structure(list(Date = structure(c(11322, 11687, 12052, 11322,
11687, 12052, 11322, 11687, 12052, 11322, 11687, 12052), class = "Date"),
variable = c("Govt Revenues to GDP", "Govt Revenues to GDP",
2009 May 27
3
Labeling barplot bars by multiple factors
I want to plot quantitative data as a function of three two-level factors.
How do I group the bars on a barplot by level through labeling and spacing?
Here <http://www.thomaslevine.org/sample_multiple-factor_barplot.png>'s what
I'm thinking of. Also, I'm pretty sure that I want a barplot, but there may
be something better.
Tom
[[alternative HTML version deleted]]
2010 Nov 20
1
Error in solve.default(V, W) with ProDenICA and the required sample size for stable result
Hi ALL,
Recently I confronted with a error in using package ProDenICA, when let k<p
(exactly the example code with k=1,
http://finzi.psych.upenn.edu/R/library/ProDenICA/html/ProDenICA.html),
Error in solve.default(V, W) : 'b' must be compatible with 'a'
I have examined the code of function ProDenICA(), but could not find the reason.
And how large is the sample size N
2009 Jun 24
1
"by" question
Hello all
I have a big data frame and I regularly want to break it down into subsets,
calculate some new data, and add it back to the data frame.
At the moment my technique seems a bit ugly and embarrassing. Something
like:
result <- by(mydata, mydata$some_factor, function (x) {
# do something to create a vector v with length(v) == nrow(x)
return(v)
})
# now result has a big list, argh...
2011 Apr 18
2
Predicting with a principal component regression model: "non-conformable arguments" error
Hello all,
I have generated a principal components regression model using the pcr()
function from the PLS package (R version 2.12.0). I am getting a
"non-conformable arguments" error when I try to use the predict() function
on new data, but only when I try to read in the new data from a separate
file.
More specifically, when my data looks like this
#########training data
2001 Sep 28
1
Summary of Characters vectors, NA's and "" in merges
Thanks to Brian Ripley, Gregory Warnes, and Dennis Murphy for considering my
problem about "NA" in character strings. The nub of the issue seems to be that
you can not have a string with "NA" in it in a character vector in R without it
being intrepreted as meaning NA (i.e., not available). The only work-arounds
involve renames of various sorts.
Perhaps this is more appropriate
2008 Apr 30
2
Bug? in summary( ) function base package
There seems to be an error in the summary() function when applied to "ts"
class objects. The results of a call to summary( ), on the R "ts" data set
USAccDeaths , reports the wrong value for Max. The value reported by the
summary function is 11320. The max( ) function returns the correct value
11317, the July 1993 value. Coercing the data to a data.frame and calling
summary
2008 Jul 11
1
hangs when doing open /pro/pid/psinfo
I got a system that is hung, unable to do most unix commands like ps/who etc...
I did:
dtrace -c /usr/bin/ps -n ''pid$target::open*:entry {printf("%s %s",execname,copyinstr(arg0)); }''
and it hangs here:
7 65277 open:entry ps /proc/19729/psinfo
7 65277 open:entry ps /proc/11687/psinfo
^C
So, I tried to kill -9 11687,
2008 Feb 06
4
inserting text lines in a dat frame
Hi Jim
I am trying to prepare a bed file to load as accustom track on the UCSC genome browser.
I have a data frame that looks like the one below.
> x
V1 V2 V3
1 chr1 11255 55
2 chr1 11320 29
3 chr1 11400 45
4 chr2 21680 35
5 chr2 21750 84
6 chr2 21820 29
7 chr2 31890 46
8 chr3 32100 29
9 chr3 52380 29
10 chr3 66450 46
I would like to insert the following 4 lines at the beginning:
2010 Jul 01
9
how to install freephoneline.exe from CLI
Looking at:
http://appdb.winehq.org/objectManager.php?sClass=application&iId=10591
What are the steps to install this application? Yes, it's a garbage
application, but I'd like to at least give it a go. Looks like msiexec
apparently isn't the right approach. Should that be through wcmd instead?
thufir at ARRAKIS:~/.wine/drive_c$
thufir at ARRAKIS:~/.wine/drive_c$ msiexec
2013 Oct 24
2
[Bug 10226] New: fatal_unsafe_io_error and the version it reports
https://bugzilla.samba.org/show_bug.cgi?id=10226
Summary: fatal_unsafe_io_error and the version it reports
Product: rsync
Version: 3.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: Martin.vGagern at
2016 Nov 09
2
[Bug 12417] New: Sametimes currupted file after disconnect
https://bugzilla.samba.org/show_bug.cgi?id=12417
Bug ID: 12417
Summary: Sametimes currupted file after disconnect
Product: rsync
Version: 3.1.2
Hardware: x64
OS: All
Status: NEW
Severity: major
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter:
2012 Nov 12
3
arrange data
Dear r-users,
I have daily rainfall data from 1971 to 2000. I would like to extract november and december data only. I would also like to do column bind for november and december, therefore I would like to delete 31 December from december data so that the length of november and december are the same. Hope somebody can help me. I tried this below:
> kuantan.dt.1 <-
2011 Apr 07
3
CentOSPlus kernel (Was: Centos 6 Update?)
Changing the subject line for good ...
On Thu, Apr 7, 2011 at 8:58 AM, Lamar Owen <lowen at pari.edu> wrote:
> On Thursday, April 07, 2011 11:23:51 AM Brunner, Brian T. wrote:
>> AIUI: In previous releases, RH distributed source + patches. ?Starting
>> 6.0 RH releases patched source. ?This makes backing out a patch, or
>> backporting patches from future development in
2008 Feb 08
2
correlation
Dear list
I would like to compare two measurements of disease severity (M1 and
M2), one of the is continuous (M1 ranging from 1 to 10) and the other
is ordinal (M2 takes Low, Medium, high and very high). Do you think is
ok to use cor() function to test whether the two agree, i.e correlate?
I am afraid that if I set M2 to 1,2,3 and 4, the function cor() will
take them as continuous and
2006 Jul 03
1
staying in control over the case in file_column plugin
using file_column plugin, if I upload IMG0001.JPG, I get files similarly
named IMG0001-thumb.JPG, etc. but if I upload img00002.jpg, I get files
img00002-thumb.jpg, etc.
This is tacky in terms of my counting on a consistency when implementing
views.
My inclination is to start hacking away at this section of
file_column.rb:
class PermanentUploadedFile < RealUploadedFile # :nodoc:
def
2006 Feb 13
0
AGI Scripts Staying in Memory
So, I'm noticing that when Asterisk executes an AGI script, that the AGI script keeps running until the call is complete.
Is there any way to have the script terminate when the call is answered?
Also noticed that when user makes a call to user B, if user B hangs up the call, then Asterisk returns a result code. If user A hangs up the call, a result code is not returned. Why?
Doug