Displaying 20 results from an estimated 53 matches for "coloumns".
Did you mean:
coloumn
2009 Mar 02
2
R-code help for filtering with for loop
Dear Sir / Madam,
I am new for R coding. Kindly help me out in sorting out the following problem.
There are 50 rows with six coloumns(you could see in the attached .txt file). I
wish to go for filtering this 50 rows for any one of the six coloumns
satisfying the value >= 64.
I need to have a final table with rows having >= 64 value in any one of the six
coloumns and the rest could be <=64. For this purpose I use the fol...
2003 Oct 16
1
princomp with more coloumns than rows: why not?
As of R 1.7.0, princomp no longer accept matrices with more coloumns
than rows. I'm curious: Why was this decision made?
I work a lot with data where more coloumns than rows is more of a rule
than an exception (for instance spectroscopic data). To me, princomp
have two advantages above prcomp: 1) It has a predict method, and 2)
it has a biplot method.
A bip...
2008 Jun 10
4
Hello
Hello,
I am facing a problem in drawing heat map using R.
I have a 70X3 matrix and I want to draw a heat map with 1 coloumn on X axis
another on Y axis and want to show the value of 3rd coloumn using heat
colours.
Could you please help me with this .
Thank you .
Regards,
Sumit
[[alternative HTML version deleted]]
2011 Feb 08
2
Extrcat selected rows from a list
...ws and 104 columns
2) List2- a list of 14000 selected rownames from List 1
Now, I want to extract all the 104 columns of List1 matching with the 14000 selected rownames from List2.
Psedocode will be something like this:
match rownames(List2) with rownames(List1)
extract selected matched 104 coloumns from (List1)
strore in-> List3
So the resulting List3 will contain 14,000 rows and 104 coloumns.
How do I do it in R ?
Regards,
P Barah
Department of Biology,
Norwegian University of Science & Technology (NTNU)
Realfagbygget, N-7491 Trondheim, Norway
[[alternative HTML versio...
2005 Mar 25
2
tapply and NA value
Hi,
I'm writing for a little help.
I have a dataframe with same NA value and I'd like to obtain the means of the
value of a coloumn grouped by the levels of a factor coloumn of the datframe.
I'm using the function "tapply" but I see that if only a NA value is present
the result is NA.
There is an option to have the correct result or I must use an other function?
Thanks of
2005 Mar 09
2
Dropping coloumns while redaing dtaa from text file.
Hi
I have a huge text file and .dat file from which I want to read data. I do
not need all the columns in the files. I want to extract only some columns
from the .txt file or the .dat file, because reading the entire file is
becoming very difficult due to memory issues. Is it possible to extract a
few columns from .txt or .dat file while reading the data in R?
Thanks
Upasna
--
"The past
2013 Dec 13
2
how do I separete coloumns by comma?
Hi every one,
I have a text file like this:
1 4 4 1 6 23
1 4 2 2 3 28
1 4 5 1 2 24
1 2 3 1 1 24
1 2 3 1 2 40
1 2 3 1 4 22
I want to separate columns by comma, like this:
1,4,4,1,6,23
1,4,2,2,3,28
1,4,5,1,2,24
1,2,3,1,1,24
1,2,3,1,2,40
1,2,3,1,4,22
I used this code:
2001 Aug 02
1
Package GSS for interpolation in more than 2D?
...t least not very... ;-) ),
and I really don't need smoothing splines, but I figured, if smoothing
splines is an extension of normal splines, it might do the job. If it
can, may I then ask how?
My problem:
In the simplest case, I have two data.frames: For each of the data.frames
The three first coloumns make up a 3D grid (I'd like to go up to at least
5), and the fourth coloumn contains the values for the point specified in
the first three.
The smaller data.frame, may have been generated by e.g.
expand.grid(ntotalclouds=seq(1000000, 12000000, length=2),
EW=seq(8,25...
2004 Dec 10
1
bar charts
Hi,
I'd like plot a bar graphic of a array.
I'd like to have the values of the single columns as juxtaposed bars (like in
"barplot" with beside=TRUE) and I'd like to have the values of the single
columns expressed like percentage of the sum of the coloumn.
In this way all the bars are composed by the sum of the percentage of the
values of a coloumn (with different colors)
2006 Jun 16
1
Assignemt problem ,,,,,,,,,,,,,,,
Hello list,
i have a very simple question about matrix assignment.
i did like this.
res<-1:30
dim(res)<-c(5,6)
ind<-1:6
now i want to assign the value of this variable ind to first coloumn in matrix res.
like
res[,1]<-ind
but this code is giving error , Actualy i have a for loop and value of ind variable is changing every time ,,total 6 times,,i want to assign every vlaue
2005 Nov 18
1
pr[in]comp: predict single observation when data has colnames (PR#8324)
To my knowledge, this has not been reported previously, and doesn't
seem to have been changed in R-devel or R-patched.
If M is a matrix with coloumn names, and
mod <- prcomp(M) # or princomp
then predicting a single observation (row) with predict() gives the
error
Error in scale.default(newdata, object$center, object$scale) :
length of 'center' must equal the number of
2011 Jun 07
3
Classifying boolean values
Hi to all, I'm new to this forum and new to R. I have to build a tree
classifier that has boolean values as response.
When I build the tree with:
echoknn.tree <- tree(class ~ ., data=echoknn.train)
where "class" is a coloumn of my dataset (echoknn.train) of boolean values,
the result is a tree where leaf nodes are numbers in the range [0,1]; but
this isn't the result that I
2009 Apr 29
3
mode(x) <- "double"
Hi,
I need your help!!
I imported a big coloumn vector from a txt file but it results as mode
:"list" I want to change it in numeric otherwise I can't do my analysis.
This is what i get:
mode (data) <- "double"
Error in eval(expr, envir, enclos) :
(list) object cannot be coerced to type 'double'
>
Thanks a lot!!!
Alessandra
--
View this message in
2007 Oct 29
5
problem in starting xend
problem in starting xend
I tried to install xen, but got some errors when starting xend.
as I logged in and tried to start xend
(/etc/init.d/xend start). I just got six-seven dot (.) printed out, then it
stops. I looked more closely and found that xend could not start.
then I looked at /var/log/xend-debug.log. here is the last few lines:
^^^
Exception starting Xend: no element found:
2000 May 25
4
Needed: Understading runif() output :-)
Dear all,
I have been trying to understand what runif() is telling me.
I am generating lots of numbers (billions and billions (wow, I''ve dreamed
about saying that for many years... :-) ), for a distribution that has the
following quantile function:
1 / (2 * sqrt(1 - p))
(that is, the distribution has a lower cutoff)
As you can imagine, this has rather heavy upper tail. I was
2010 Feb 08
1
Hi problem with read.csv
Hi all,
I am getting problem with "read.csv()"
command
the problem is
I have one file which is saved in "ANSI"
while I am trying to open with R-Project its opend and all the cloumn names
are comming proper like
for the command
names(kk)
"FILEID" "UNIQUEID" "LATESTFLG" "ACTIVEFLG"
"PROJROLEID"
2012 Mar 06
1
PLS Error message
Hi,
I work with hyperspectral remote sensing data and I try to built a pls
model with this data. I already built the model but if I try to
calculate the RMSEP and R2 with a test data set I get the following
error message:
Error: variable 'subX' was fitted with type "nmatrix.501" but type
"nmatrix.73" was supplied
The problem is that I don't get the message for
2012 Oct 04
1
data structure for plsr
I am having a similar problem understanding the data structure of the
"yarn" dataset described in the "[R] data structure for plsr" posts. I have
spectroscopic data I'd like to run through a PLSR and have read the
tutorial series, but still do not understand the data format required for
the code to process my data. My current data structure consists of a .csv
file read into
2005 Sep 16
2
help required on read.table
Hi all
i am facing a peculiar problem for data input using read.table which i
never faced previously.
i have a data file by name abnew.txt with two coloumns data as depicted below.
A B
420 422
314 321
the txt file is created using the excel save as option. i issued the
statement as
> a <- read.table("abnew.txt", header=TRUE)
> a
X.??S
1 NA
2 2
3 2
4 NA
5 2
6 2
7 NA
8 2
9...
2011 Feb 16
2
distance between consecutive points
Dear R users,
I have two coloumns of data, say x and y, referring to a list of
points in 2D space. I am trying to develop a code that will give me
the distances (using Pythagoras) between consecutive points (xi,yi)
and (xi+1,yi+1). So far I have come up with the following:
for (i in 1:length(x)) d<-sqrt((x[i+1]-x[i])^2+(y[i+1]-...