Displaying 20 results from an estimated 1000 matches similar to: "Search values and create a new matrix"
2009 Jul 21
3
writte file doubt
Hi I wrotte this function but when I get the "tmp.xls" file it shows data
in a rare way. I mean not appears a matrix with 2000 rows and 100 columns.
Can anyone help me, guide me?
kim<-function(){
tmp<-randz<-matrix(rnorm(200000, mean=0,sd=0.01 ),2000,100);
dim(tmp)
write(tmp,file="tmp.xls")
Thanks in advance.
On the other hand, everytime I execute a function
2009 Jul 27
2
pairs plot
Hi all,
I want to plot trough pairs() plot a matrix with 4 columns. I want to make a
trhee plot in a graph. Plotting pairs colum 2,3,4 on y axis and 1 on X axis.
You mean (a plot with three graphs) ommitting the first pair with itself.
And only the pairs with colum 1 with the other not all pairs.
I. e. this matrix
4177 289390 8740 17220
3907 301510 8530 17550
3975 316970 8640 17650
3651 364220
2017 Jun 02
1
Upper bands and lower bands
Sorry,
For me a vector is a matrix with mx1 dimmensions. But it is true that it is
not the way I correctly must talk in R.
Can you guide me in what I?m trying to do? I?m trying to find what I want
in Excel using something like a parabolic function but dind?t get yet (then
to try to replicate in R).
2017-06-02 7:01 GMT+02:00 Bert Gunter <bgunter.4567 at gmail.com>:
> Bert Gunter
>
2017 Jun 01
4
Upper bands and lower bands
Hi all
I want to add a band of fluctuaci?n (exponential decreading) to a linear
deacrecing values
Imagine: I have a matrix like c(10,9,8,7,6,5,4,3,2,1)
The thing is I want two new lines so that the m?ximum value of the new
colum on the m?ximum is from 10% to 5% higher and the same lower for the
m?nimum
the final two matix will be something like
c(10+0.10*10,9+0.089*9,8+0.075*8.....,1+0.05*1)
2009 Jul 29
1
Add a line in a Pairs2 and mark the axis length
Hi,
I have finally installed TeachingDemos trough zip file and installed on
lbrary.
One new question:
I want to draw a line (like abline) on diagonal or the result of running a
ols.
How can I do it.
On the other hand, I want to mark the length on each sub plot y axis.
It is possible?
My function is
sca<-function(){
z2<-read.table("Ase.txt",header=T)
2017 Jun 02
0
Upper bands and lower bands
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Thu, Jun 1, 2017 at 11:20 AM, Pedro p?ramo <percentil101 at gmail.com> wrote:
> Hi all
>
> I want to add a band of fluctuaci?n (exponential decreading) to a linear
> deacrecing
2009 Dec 11
2
Data
Hi all,
Imagine I have a matrix and the first colum is a list that repeats the same
names, I want to sum the second column on each unique name on first column.
Imagine this:
Pepe 2
Pepe 3
Pepe 4
Jose 2
Jose 5
Manuel 4
Manuel 2
I want to make a new matrix that calculates and recognizes that there are 3
different names ans sum second column. But a priori I don´t know the list of
the different
2011 Jun 18
1
Required libraries
Hi all,
I´m trying to "recuperate" old files I wrotte and I´m trying to execute on R
version 2.13.0 (2011-04-13), the thing is I execute my old file and nothing
happens...I suposse I need to install some library but there no appears no
message, no text telling "required grafics library" or something like that.
How can I see wich libraries need to execute a file?
Many thanks
2009 Jan 26
2
Getting data from a PDF-file into R
Hello
I have around 200 PDF-documents, containing data i want organized in R as a
dataframe. The PDF-documents look like this;
http://www.nabble.com/file/p21667074/PRRS-billede%2Bmed%2Bfarver.jpeg
or like this;
http://www.nabble.com/file/p21667074/PRRS-billede%2Bmed%2Bfarver%2B2.jpeg
So i want to pull out the data in coloured boxes it become organized like
this (just in R instead of
2012 Aug 08
3
help, please! matrix operations inside 3 nested loops
hello, this is my script:
#1) read in data:
daten<-read.table('K:/Analysen/STRUCTURE/input_STRUCTURE_tab_excl_5_282_559.txt',
header=TRUE, sep="\t")
daten<-as.matrix(daten)
#2) create empty matrix:
indxind<-matrix(nrow=617, ncol=617)
indxind[1:20,1:19]
#3) compare cells to each other, score:
for (s in 3:34) { #walks though the matrix colum by colum, starting at
2011 May 04
1
problem with package "adapt" for R in Mac
Hi,
How i can install the package "adapt" in some version of R for mac?
i try in 2.13, 2.9,2.7 and other previous versions... and nothing happens.
and another question: There are some packages that do the same but that it
is implemented for mac? (calculate integrals in 2 or more dimmensions).
help me please, it's for an important work.
greetings.
--
Matías Hernán Ramírez
2008 Nov 20
1
convert factors to numbers
Hello, I have a problem with reading a csv-file. One colum of the inputfile
consists of characters and numbers. After reading the csv-file I create a
new dataframe by dividing the values of that colum into more colums (then a
colum contains just characters or numbers) but the numbers are converted to
factors. How can I create the new dataframe without having the numbers
converted to factors?
2005 Nov 24
4
write.csv
hallo,
i have a problem by writing a csv file
the first colum is filled with index numbers from 1 to n.
i have to unique two csv files once a week while one file is always the
same.
can anybody tell me, how to write the dataset into a csv file without the
first row of the indexnumbers.
x[,-1] does not wok as it eliminates the first "interesting" colum.
col.names is not accepted by r
2010 Oct 15
4
Set value if else...
Hi
I want to set a variable to either 1 or 0 depending on an value of a
dataframe and then add this as a colum to the dataframe.
This could be done with a loop but as we are able to do questions on a
complete row or colum without a loop it would be sweet if it could be done.
for example:
table:
Name Age
Joel 24
agust 17
maja 40
and so on...
And what I want to do is a command that
2009 Dec 01
4
median for time data
Hi everybody
How do I do to calculate the median and average of a colum of time data like
this: "8:50:10". I also need to plot the time difference between two colums
Thanks a lot
--
View this message in context: http://n4.nabble.com/median-for-time-data-tp932287p932287.html
Sent from the R help mailing list archive at Nabble.com.
2009 Jun 03
2
how can I ordinal regression??
What function and package I use to conduct ordinal regression??
My data is composed 2colums and 180rows.
The first colum indicate level of mass and second colum is intensity.
So, I want to calculate how much intensity are related mass.
[[alternative HTML version deleted]]
2009 Jun 25
1
lm
Hi all,
I want to make multiple least squares estimation on two matrix (without
intercept)
imagine matrix "a" and matrix "b", I want to "regress" each colum on matrix
"a" (dependent variable) on each column of matrix b, I mean, regress first
colum on a to first column on b. Second column on a to second column on b.
Imagine "a" and "b"
2013 Dec 06
2
Using assign with mapply
I have a data frame whose first colum contains the names of the variables
and whose second colum contains the values to assign to them:
: kkk <- data.frame(vars=c("var1", "var2", "var3"),
vals=c(10, 20, 30), stringsAsFactors=F)
If I do
: assign(kkk$vars[1], kkk$vals[1])
it works
: var1
[1] 10
However, if I try with mapply
2010 Aug 02
1
lm length
Hi all,
I wanto to run a plot about the levels of a variable parting on an ols
regression. The regression in done on the rate of return of the variable.
Imagine R_{t}=a+b*R_{t-1}
So If P, the "estimated" price would be P_{t}=P_{t-1}*R_{t}
Imagine that I obtain lm fitted values and the original
R_{t}, R_{t-1} are [1000,1] dimmension...
How it is posible to obtain also 1000,1 fitted
2008 Mar 22
2
counting values on one colum only
Hi all:
Can someone help me count the
number of rows with values in
colum "a" only. assume the name
of my dataframe is "weekly"
I was trying
i<- nrows(weekly$a)
i
but returns 7 when it should
be 4. Thanks
a b c d
27.000
27.000
1.569 0.013 160.000 27.000
1.632 0.013 146.000 27.000
1.830 0.015 70.000 27.000
2.475 0.019