Displaying 20 results from an estimated 60000 matches similar to: "format Date"
2008 Aug 30
1
[Fwd: ***HTML***R help]
-------- Original Message --------
Subject: ***HTML***R help
Date: Sat, 30 Aug 2008 14:30:48 +0530
From: sayeed hussain <sayeedhussain19 at gmail.com>
To: ff809 at ncf.ca
Hello there
I am stuck with a problem and I need help
---------------------------
R has a defined function sum()
I by chance defined a function with same name
sum<-function(type='public')
{
.......
}
and
2010 Aug 27
3
interpreting date-related error message
Hello, helpeRs,
I have a vector of numbers from 1-365 (days of the year) that I would
like to convert to a date. There are no NA's and no missing values.
I did not insert leading zero's for numbers less than 100.
Using the syntax:
dat$doy.1 <- as.numeric(format(dat$doy, "%j" ))
I get the following error message:
Error in prettyNum(.Internal(format(x, trim, digits,
2013 Mar 05
1
Reading outdated .Rprofile file
Hi there:
I'm having a weird problem with my startup procedure. R.app is reading an unknown .Rprofile file.
First, I'm on a Mac Os 10.6.8 running R.app 2.15.0
On startup
> getwd()
[1] "/Users/simon"
But: the contents of my .Rprofile file in my home directory when viewed with a text editor are:
.First<-function() {
2009 Nov 13
2
format (PR#14062)
Full_Name: Dirk Jacob
Version: R 2.8.1 and 2.9.1
OS: Win XP
Submission from: (NULL) (153.96.32.62)
I want to convert numbers to strings
like:
> inputs= c(0.3+0*(1:12) )
> (format(inputs,digits=3,scientific=T,collapse=" "))
and it works
[1] "3e-01" "3e-01" "3e-01" "3e-01" "3e-01" "3e-01" "3e-01"
2011 Aug 31
4
[PATCH 0 of 1] Patch to alter BLKIF_OP_TRIM to BLKIF_OP_DISCARD (v1).
Hey guys,
Pasi mentioned on Li''s (and Owen''s) patches which provide TRIM/UNMAP support
to the Linux backend/frontend that:
"
Isn''t the generic name for this functionality "discard" in Linux?
and "trim" being the ATA specific discard-implementation,
and "scsi unmap" the SAS/SCSI specific discard-implementation?
Just
2004 Mar 03
3
Adding text (coefts) to pairs panels
Hi,
First of all, thanks for the efforts of all the developers and contributors
- I'm very new to R and at the moment am just using it to create some
graphics, but it seems to be quite powerful.
I've googled the archives and wasn't able to find anyhting that dealt with
this problem, so would appreciate any suggestions/tips.
In a pairs plot I'd like to plot a linear regression line
2006 Jan 23
3
date.to_s trimming
When I convert a datetime to a string, it prints out something like this
Jan 20 12:00:00 EST 2006
I want to trim off the last twelve characters, i.e.
:00 EST 2006
I tried to do it like so:
@date =
@meeting.date.to_s.chomp.chomp.chomp.chomp.chomp.chomp.chomp.chomp.chomp.chomp.chomp.chomp
but the chomps seem to do nothing. I''d love to use regex, but I don''t
know which
2007 Feb 21
2
Splom plot:how to plot with different symbols?
Hi,
Kindly let me know if I posted a wrong question in the forum.
I want to draw a splom plot with different symbols in plot. My command is as
follows:
splom(~ log10(splomData[2:3]), groups = programs, data = splomData,
panel = panel.superpose,
key = list(title = paste(splomLoop,"Programs of Hog Analysis (Sorted by
LR(GB))"),
panel = panel.superpose,
columns =
2008 Aug 07
1
Bug in format.default(): na.encode does not have any effect for (PR#12318)
Hi!
If I use format() on numeric vector, na.encode argument does not have any e=
ffect. This
was reported before:
- https://stat.ethz.ch/pipermail/r-help/2007-October/143881.html
- http://tolstoy.newcastle.edu.au/R/e2/devel/06/09/0360.html
It works for other (say character) classes!
> format(c("a", NA), na.encode=3DTRUE)
[1] "a " "NA"
>
2008 Aug 25
4
R for Windows GUI closes when I try to read.spss
** High Priority **
I have been trying to read an SPSS file into R using
read.spss ("C:/Documents and Settings/Roderick Harrison/My
Documents/RWORK/ihisdat.sav", use.value.labels = TRUE, to.data.frame =
FALSE, max.value.labels = 500, trim.factor.names = FALSE, trim_values =
TRUE, reencode = NA, use.missings = to.data.frame)
Each time (at least 5 or 6 by now) I get the following
2008 Jun 11
1
computing and showing mean
Hello to everyone,
I am trying to compute a mean and show it to the screen and then save to later be used
as a boxplot.I have used the following code:
dat<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\Yeast\\Yeast.txt",header=T,row.names=1)
file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\Yeast\\Yeast.txt")
x<-dat[2,23:46]
2005 Sep 18
1
trimmed mean in R seems to round the trimming fraction
subject: trimmed mean in R seems to round the trimming fraction
to r-help at stat.math.ethz.ch.
Consider the following example of 10 numbers. 10% trimmed mean is correct
but you can see that the result is the same for many trimming fractions
till 0.20!
For example 13% trimmed mean should use interpolation of second and
eighth ordered observation. R does not seem to do this.
The correct 13%
2012 Dec 17
1
seeking a help on if function
Hello r helpers! Below is the whole coding for my programme. Before proceed more further, let me explain for you. First of all, I need to compute trimmed mean. Till that step is ok. Then I need to compute ssdw which is sum of square deviation. If I do equal trimming at both tail of distribution that I chose, I will use the first ssd formulae which is "a". But if I am doing unequal
2005 Feb 18
4
barplot and ylim - display problems
The following single line of code shows what I am trying to do, and the
problem I am having...
barplot(c(101,102,103),ylim=c(100,103))
The 'xaxis' is missing, and the grey bars 'fall off' the plot area. This
is generally ugly, and I would like to trim the bars (ideally they would
have a ragged appearance to show that I am 'zooming in').
I can see why what I am trying to
2009 Feb 17
5
[LLVMdev] svn pre-commit hook: help needed
Anyone out there interested in helping out with a subversion pre-commit hook
to:
- remove trailing whitespace,
- expand tabs to spaces,
- detect 80-col violations,
as well as detect other style guideline breakage?
I just ran into the trailing whitespace problem: Eclipse and other editors
like to trim excess whitespace from source. However, when one commits a
patch with trailing whitespace
2011 Mar 21
1
Curry with `[.function` ?
Dear all,
I sometimes use the following function:
Curry <- function(FUN,...) {
# by Byron Ellis,
https://stat.ethz.ch/pipermail/r-devel/2007-November/047318.html
.orig <- list(...)
function(...) do.call(FUN,c(.orig,list(...)))
}
... and have thought it might be convenient to have a method for [ doing
this. As a simple example,
> apply(M, 1, mean[trim=0.1]) # hypothetical
2008 Apr 22
2
bootstrap for confidence intervals of the mean
d = c(0L, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0L, 0L, 7375L,
NA, NA, 17092L, 0L, 0L, 32390L, 2326L, 22672L, 13550L, 18285L)
boot.out <-boot(d, mean, R=1000, sim="permutation")
Error in mean.default(data, original, ...) :
'trim' must be numeric of length one
I know that I am missing something but I can't figure it out.
thanks
stephen
--
Let's not spend our
2010 Jul 01
2
Export data frame of high dimension to txt
I managed with success to export a data frame of 367 columns and 37 rows to a txt file, but unfortunately I couldn't manage the same with the transposed data frame. Specifically, it seems like the notebook cannot "read" correctly 367 columns, so it reads the first 145 columns and it folds down the rest of them and consequently it folds down the respective data.
2012 Aug 03
2
Recursive function calls
My apologies, I know that this is not a new problem, but I'm not sure how
to find the answer
I want to recursively loop over an object and trim trailing white space.
When I use this function on a list of data.frame I get output like this:
[1] "c(\" many spaces \", \" many spaces \")" "c(\" many spaces
\", \" many spaces
2006 Feb 26
2
Voltage transfer points.
Hi,
Need to get an answer to the following. I find the naming to be
little redundant regarding the 'input.transfer.boost.low - hige'.
The same goes for input.transfer.trim.low - high.
As I find it, there is only one point where the boost or buck (trim)
kicks in.
Let's say that the nominal voltage is 230 volt, then we have a
input.transfer.boost point on say 220 volt.
If the