Displaying 20 results from an estimated 10000 matches similar to: "problem with toString"
2006 Apr 11
1
Changing character limit in deparse, as.character and toString
Dear R-help Listers,
I am curious if there is some (hopefully easy) way to change the number of
characters that can be converted to a single string via any of deparse,
as.character or toString. It seems that the limit is 500 for all of
these. I saw a previous post where Prof. Ripley suggested that it was a
"trivial" change in the R internals to change as.character's limit from 60
2010 Jan 26
4
Error with toString
Hello there, I want to create a string from strings and numbers, here is my
code:
str <- "name" & toString(20)
but it returns me this error:
Error in toString(20) : could not find function ".jcall"
what did I do wrong? I couldn't find this error anywhere...
--
View this message in context: http://n4.nabble.com/Error-with-toString-tp1290327p1290327.html
Sent from
2010 Jan 12
1
Problem with toString
Hi all,
I got a problem with * "toString()"* function
its behaving odd in some times most of the times its giving correct results
but in peculier cases its giving results like *"愭]"*
especially while i am working with c# +R-project
thats also after getting some error like
after trying to caliculate "*mean("NA")" *
can any one help me why its
2008 May 20
1
String buffer
Hello,
I have an expression "a" in R that has about 2300 characters and I want to
convert it to a string using toString or as.character. The problem is I am
only getting the first 500 or so characters when I convert it to string. I
tried to use substring in order to convert one bunch at a time, but when I
type substring(a, 498, 1000) I get only 2 characters, meaning it seems there
is a
2010 Mar 06
3
[LLVMdev] constness of APFloat::toString
Hi!
I wonder if llvm::APFloat::toString() can be const since
it should not modify the APFloat.
-Jochen
2012 Mar 07
1
gsub: replacing double backslashes with single backslash
Hello everybody,
this might be a trivial question, but I have been unable to find this using
Google. I am trying to replace double backslashes with single backslashes using
gsub. There seems to be some unexpected behaviour with regards to the
replacement string "\\". The following example uses the string C:\\ which should
be converted to C:\ .
> gsub("\\\\",
2013 May 02
3
Lattice xyplot multipanels
Derar Rxperts,
I have a strange situation.. I see curly brackets around "strip.levels" in
multipanel strips while using lattice::xyplot. .How do I get rid of the
curly brackets? For some reason, I am not able to reproduce the problem
using an example below...
Any suggestions are highly welcome!
Thanks,
Santosh
q <-
2006 Dec 03
1
passing an argument to a function which is also to be a dataframe column name
any suggestions on the following gratefully welcome,
I have a dataframe, which I am subsetting via labels
atpi[, creativity]
where (for example)
atpi = as.data.frame(matrix(1:50, ncol = 5, nrow = 10))
names(atpi) = c("Q1", "Q2", "Q3", "Q4", "Q5")
and
creativity = c("Q1", "Q3", "Q4")
I want to add an extra column
2012 Apr 04
1
Shapiro-Wilk cpoefficients: 2 Qs
Greetings!
I want to have the coefficients that R uses in shapiro.test()
for the Shapiro-Wilk test for a prticular sample size, i.e.
the a[i] in
W = Sum(a[i]*x[i])/(Sum(x[i] - mean(x))^2)
(where the x[i] are sorted). Two questions:
Q1:
Is there a readymade R function from which I can extract these?
Q2:
I was wondering if I might be able to modify the code for the
function shapiro.test() so
2010 Mar 06
0
[LLVMdev] constness of APFloat::toString
On Mar 6, 2010, at 3:39 AM, Jochen Wilhelmy wrote:
> Hi!
>
> I wonder if llvm::APFloat::toString() can be const since
> it should not modify the APFloat.
Done in r97883, thanks.
2006 Mar 15
2
Regarding aov Error()
The following dummy data frame has factor Q (with 2 levels) nesting
factor P (with levels p1 and p2 nested under q1, and p3 and p4 nested
under q2), but both crossing the random variate s, which has 8
levels. The dependent measure is dv.
> # The data frame:
> testnest
dv s P Q
1 1 s1 p1 q1
2 2 s2 p1 q1
3 1 s3 p1 q1
4 2 s4 p1 q1
5 1 s5 p1 q1
6 3 s6 p1 q1
7 3 s7
2011 Aug 10
2
join columns
Dear R-help,
I wonder if you could give me some suggestions in how to do a union
join of two data frames as follow:
-> union join the common column, and insert a 0 if one is missing.
I made a function to perform the following, and I know it may not that
quite welly written, but it works.
Any suggestions are welcome, many thanks.
Anthony
> q1 =
2010 Mar 11
4
Forecast
sample report data that i want to forecast
quarter quarter_index Revenue
2007 Q1 1 $3,856,799
2007 Q2 2 $4,243,328
2007 Q3 3 $4,930,369
2007 Q4 4 $5,443,579
2008 Q1 5 $5,164,830
2008 Q2 6 $5,104,413
2008 Q3 7
2010 Mar 10
3
see the example and help me
sample report data that i want to forecast
quarter quarter_index Revenue
2007 Q1 1 $3,856,799
2007 Q2 2 $4,243,328
2007 Q3 3 $4,930,369
2007 Q4 4 $5,443,579
2008 Q1 5 $5,164,830
2008 Q2 6 $5,104,413
2008 Q3 7
2012 Apr 12
4
Definition of "lag" is opposite in ts and xts objects!
Example:
Will ts objects be obsolete or modified?
> a [,1]
1983 Q1 2.747365190
1983 Q2 2.791594762
1983 Q3 -0.009953715
1983 Q4 -0.015059485
1984 Q1 -1.190061246
1984 Q2 -0.553031799
1984 Q3 0.686874720
1984 Q4 0.953911035> lag(a,4) [,1]
1983 Q1 NA
1983 Q2 NA
1983 Q3 NA
1983 Q4 NA
1984 Q1 2.747365190
1984 Q2
2012 Feb 03
3
Cannot get "==" operator to return TRUE
I have a data.frame named "df". The dput of df is at the bottom of this e-mail.
What I'd like to do is replace the "n/a " values with NA. On Mac OSX, it works
to do this:
df[df == "n/a"] <- NA
However, it does not work on Ubuntu. See below.
Thanks in advance,
Garrett
> x <- df[27, 4] # complete data.frame dput is below
> dput(x)
"n/a?"
2006 Nov 25
3
Multiple Conditional Tranformations
Greetings,
I'm learning R and I'm stuck on a basic concept: how to specify a
logical condition once and then perform multiple transformations under
that condition. The program below is simplified to demonstrate the goal.
Its results are exactly what I want, but I would like to check the
logical state of gender only once and create both (or any number of)
scores at once.
2012 Nov 22
1
Efficiently creating/defining new variables transformations
I would like to add an extension to the current name of a variable to create
a new variable that is its sqrt transform. Each piece of the equation below
works independently, but the left side definition fails on run. I also tried
creating the variable name first, but ended up with an object that
toString() did not fix. Better ideas?
Example 1
2008 Mar 02
1
question on lag.zoo
Hi Guys,
I'm using zoo package now. I found lag is not doing what I assumed.
> x <- zoo(11:21)
> z <- zoo(1:10, yearqtr(seq(1959.25, 1961.5, by = 0.25)), frequency = 4)
> x
1 2 3 4 5 6 7 8 9 10 11
11 12 13 14 15 16 17 18 19 20 21
> lag(x)
1 2 3 4 5 6 7 8 9 10
12 13 14 15 16 17 18 19 20 21
> z
1959 Q2 1959 Q3 1959 Q4 1960 Q1 1960 Q2 1960 Q3 1960 Q4
2006 Jul 17
4
how to do url encoding for given text in rails?
hi,
for example, I have an string "q1 q2 q3". how can I encode it in rails to
produce the result like
"q1%20q2%20q3".
Thanks!
Best Regards,
Zhenjian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060717/3824f992/attachment.html