Displaying 20 results from an estimated 300 matches similar to: "Alter character attribute"
2005 Sep 14
13
table sorting/manipulation library?
I have a library I''ve developed that I believe is the most flexible and
useful table sorting/striping/row-selecting library around.
Big features:
Single and multiple-level sort
Arbitrary sort criteria (IP address, date, etc.)
Works with table headers that are > 1 row or column large
Stripe tables and/or enable row selecting
Row selecting supports drag-select and SHIFT-click
No extra
2010 Feb 02
4
3D plot of following data
Hello R-experts, 
I am having difficulties with 3D plotting (i.e. the evolution of various forward curves through time). 
I have two comma seperated files both ordered by date (in the first column) one containing contracts (meaning forward delivery months from YEAR_ & Letter "F" ... January through letter "Z" ... December) and the other holding the closing price of the
2011 Feb 23
2
copy values from one dataframes into another
Hello everyone,
I have the following problem, I have a dataframes that looks like this:
  fire$Year fire$Size
1      1981    1738.0
2      1984    2228.1
3      1985   38963.3
4      1986    2223.4
5      1987    3594.6
6      1988    1520.0
...
What I would like to do is copy the values from the fire$Size colum and put
it into a new df but with "0" for the years that are missing. The
2002 Dec 18
6
Can I build an array of regrssion model?
Hi,
I am trying to use piecewise linear regression to approximate a
nonlinear function. Actually, I don't know how many linear functions I
need, therefore, I want build an array of regression models to automate
the approximation job. Could you please give me any clue?
Attached is ongoing code:
rawData = scan("c:/zyang/mass/data/A01/1.PRN",
what=list(numeric(),numeric()));
len =
2011 May 17
1
simprof test using jaccard distance
Dear All,
I would like to use the simprof function (clustsig package) but the available distances do not include Jaccard distance, which is the most appropriate for pres/abs community data. Here is the core of the function:
> simprof
function (data, num.expected = 1000, num.simulated = 999, method.cluster = "average",
    method.distance = "euclidean", method.transform =
2012 Dec 10
1
Can somebody suggest how to achieve following data manipulation?
Dear all,
Let say I have following data:
RawData <- matrix(1:101, nr = 1); colnames(RawData) <- c("ASD", 
as.character(as.yearmon(seq(as.Date("2012-03-01"), length.out = 100, by 
= "1 month")))); rownames(RawData) <- "XYZ"
CutOffDate <- as.Date("2012-09-01")
NewDateSeries <- as.character(as.yearmon(seq(CutOffDate, to = 
2008 Mar 23
1
mapply
In an earlier post, a person wanted to divide each of the rows of 
rawdata by the row vector sens so he did below but didn't like it and 
asked if there was a better solution.
 
rawdata <- data.frame(rbind(c(1,2,2), c(4,5,6))) sens <- c(2,4,6)
 
temp <- t(rawdata)/sens
temp <- t(temp)
print(temp)
 
Gabor sent three other solutions and I understood 2 of them but not the
2005 Aug 04
2
Avoiding for loop
I understand that in R, for loops are not used as often as other
languages, and am trying to learn how to avoid them.  I am wondering
if there is a more efficient way to write a certain piece of code,
which right now I can only envision as a for loop.  I have a data file
that basically looks like:
1,55
1,23
2,12
...
that defines a matrix.  Each row of the data file corresponds to a row
of the
2009 Jul 14
2
How to provide list as an argument for the data.frame()
Hi R -users,
i've a table as describe below. I'm reading the numeric value presented in this table to populate a list.
#table
#============
#X    A    B    C
#x1    2    3    4
#x2    5    7    10
#x4    2    3    5
#============
rawData <- read.table("raw_data.txt",header=T, sep="\t")
myList=list()
counter=0
for (i in c(1:length(rawData$X)))
{
    print (i)
   
2011 Sep 08
2
pie chart
Hi All,
I have txt file like :
$ cat data.txt
US	10
UK	12
Ind	4
Germany	14
France	8
> rawdata <- read.table(file='data.txt',sep='\t' , header=FALSE)
> rawdata
       V1 V2
1      US 10
2      UK 12
3     Ind  4
4 Germany 14
5  France  8
I want to draw pie chart for the above data.
How to  split rawdata into :
con <-
2006 Jul 12
4
Keep value lables with data frame manipulation
Dear R,
I import data from spss into a R data.frame. On this rawdata I do some
data processing (selection of observations, normalization, recoding of
variables etc..). The result is stored in a new data.frame, however, in
this new data.frame the value labels are lost.
Example of what I do in code:
# read raw data from spss
rawdata <- read.spss("./data/T50937.SAV",
2012 Jan 20
2
rbind()
Hello there,
Much thanks in advance for any help.  I have a few questions:
1) Why do I keep getting the following error:
File1 <- read.csv("../RawData/File1.csv",as.is=TRUE,row.names=1)
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
  cannot open file '../RawData/File1.csv': No such file or
2008 Mar 22
2
More elegant multiplication or division of a data frame with a vector
Hello,
I am importing some raw voltage multichannel measurements into an R
data frame. I need to scale each column with the respective
sensitivity for that channel. I figured how to do it, but I am curious
if there isn't a more elegant way.
Now I start with something like this:
rawdata <- data.frame(rbind(c(1,2,3), c(4,5,6)))
sens <- c(2,4,6)
and I do this:
data <-
2009 Aug 03
2
Scale set of 0 values returns NAN??
Hi,
More questions in my ongoing quest to convert from RapidMiner to R.
One thing has become VERY CLEAR:  None of the issues I'm asking about 
here are addressed in RapidMiner.  How it handles misisng values, 
scaling, etc. is hidden within the "black box".  Using R is forcing me 
to take a much deeper look at my data and how my experiments are 
constructed.  (That's a very
2009 Sep 28
1
help with lda function
I am having a problem understanding the lda package. I have a dataset here:
    [,1] [,2] [,3]
[1,] 2.95 6.63    0
[2,] 2.53 7.79    0
[3,] 3.57 5.65    0
[4,] 3.16 5.47    0
[5,] 2.58 4.46    1
[6,] 2.16 6.22    1
[7,] 3.27 3.52    1
If I do the following;
"names(d)<-c("y","x1","x2")
d$x1 = d$x1 * 100
d$x2 = d$x2 * 100
g<-lda( y ~ x1 + x2, data=d)
v2
2009 Jun 16
1
adressing dataframes
Hi everyone,
I experience some problems with adressing of data.frames when I retrieve
some information for geographical position (ypos, xpos) ot of a MySQL
Database and want to perform some simple statistics. The problem is
adressing the dataframes with a construct like 
rawdata[c(type)] vs. rawdata$TEMPMIN
to retrieve the numerical information and not a string (I want to store the
numerical
2012 Jun 28
1
Merging listed dataset into one
Hello,
I'm wondering how I can merge two featuresets into one.
My dataset is two sets of microarray data and it looks like followings:
> rawData
$v1
TilingFeatureSet (storageMode: lockedEnvironment)
assayData: 2197815 features, 59 samples 
  element names: channel1, channel2 
protocolData
  rowNames: LT290677RU_D1_2011-02-16 LT286300LU_D1_2010-07-24 ...
    LT003990RU_D1_2010-11-04 (59
2012 Mar 20
3
Wrong output due to what I think might be a data type issue (zoo read in problem)
Here's the small scale version of the R script:
http://pastebin.com/sEYKv2Vv
Here's the file that I'm reading in:
http://r.789695.n4.nabble.com/file/n4487682/weatherData.txt weatherData.txt 
I apologize for the length of the data. I tried to cut it down to 12 lines,
however, it wasn't reproducing the bad output that I wanted to show. 
The problem is that my whole data set
2009 Jul 31
1
scale subset of data
Hi,
This should be an easy one, but I have some trouble formatting the data 
right
I'm trying to replace the column of a subset of a dataframe with the 
scaled data for that column of the subset
subset(rawdata, code== "foo", select = a) <- scale( subset(rawdata, 
code== "foo", select = a) )
It returns:   could not find function "subset<-"
The scale
2009 Sep 20
1
Return a list from a .Call but segfaults
Hello,
I call a function via .Call passing to it a raw vector(D) and an  
integer(I)
The vector is a series  K1,KData1, V1,VData1, K2, KData2, ...
where the integer K1 is the length of Data1 and similarly for Ki (wrt  
Datai)(similarly for V*) There 2*I such pairs( (Ki,KDatai), (Vi,VDatai))
The numbers Ki(and Vi) are written in network order.
I am returning a list of I elements each element a