similar to: More basic question

Displaying 20 results from an estimated 6000 matches similar to: "More basic question"

2009 Jun 11
3
Matrix manipulation
Hello everyone, I have a couple of fairly simple questions (I hope) the answers to which I cannot find through the documentation at the moment. 1. I would like to delete the a row from a matrix if a certain elimination criterion is met. I am familiar with x <- x[-7,] (to remove row 7, for example). Are there any other means of removing an entire row? 2. Is there a single command that
2009 Sep 02
5
pruning data
Hello everyone, I am trying to prune a data frame for partial least squares analysis. I need to delete an entire row if one cell in the row contains a NA. Presently, I am running a loop that is supposed to extract the rows that are full of numbers into a second data frame and skips the rows that contain a single NA value. I want to know if there is a simple way to determine if a row
2009 Jun 12
3
Referencing data frames
Hi, How do I use the string content of a string variable to reference a data frame of the same name? I want to do the typical tasks of 1) building a name with a string variable and using the string variable to create a data frame (or any object) whose name is the string value of the variable and 2) pass on a string to a function as a parameter, and then use that string to refer to an existing
2009 Aug 28
2
Pls package
Hi, I have managed to format my data into a single datframe consisting of two AsIs response and predictor dataframes in order to supply the plsr command of the pls package for principal components analysis. When I execute the command, however, I get this error: > fiber1 <- plsr(respmat ~ predmat, ncomp=1, data=inputmat,validation="LOO") Error in model.frame.default(formula =
2009 Jun 25
2
Placing text outside graph boundary
Hello, Is possible to place a label on a multipanel figure outside the boundaries of any single one of the existing graphs in a panel? Specifically, I have a function that creates a panel with quartz() and then fills it with 6 graphs consisting of exactly the same plot for 6 different groups. I would like to add one title for the entire figure at the top of the figure, but I cannot figure out
2009 Jun 15
2
Help with syntax error
Hi, I have written boxplot commands of this form before, but I don''t quite understand why the function call is reporting a syntax error in this instance. All parameters passed to the function are strings. Thanks in advance. Payam > simplevar <- function(wframe,column1,column2) { + tframe <- get(wframe) + x1 <- which(names(wframe)==column1) + x2 <-
2009 Sep 21
2
How to handle missing values for the GeneMeta package?
Hello all, It seems that the GeneMeta passage returns NA in the respective row if any gene in the data sets to be synthesised are missing. Do you know of a way to overcome this problem? I tried using the 'impute' package to fill-in the missing values, but R crashes if 'impute' and 'GeneMeta' packages are used together. I have asked a separate question for that. Thanks
2009 Jun 12
1
Extracting the name of an object
With apologies if I missed the answer in the response given to my previous question. How do I extract the name of an object and assign it to a string variable? For example, I have a dataframe named comnoglyc How do I assign this name to a variable dfname such that print(dfname) returns "comnoglyc"? Thank you very much. Payam [[alternative HTML version deleted]]
2003 Jan 24
3
win98 & samba file server
Hello everybody, it's a few minutes that i've subscribed in your mailing list. nice to meat all of you. I have samba on redhat 8 as a file server for a couple of "win98" & "winXP"'s.It work's for my XP OS's but I don't know how to join the "win98" 's in. please help me thanks payam.
2013 Feb 07
4
help with creating new variables using a loop
Hi there, I've got a set of 10 numeric variables called Mood1 to Mood10 in a dataset called mood. I'm trying to create a set of 10 new variables called m1 to m10 so that m1=Mood1*1, m2=Mood2*2, etc to m10=Mood10*10 Trawling through the internet, I eventually tried the following code: for (i in 1:10){ assign(x=paste0("mood$m",i),
2009 Apr 22
4
read.table or read.csv without row index?
Hello all, Probably my concepts about the data.frame and matrix and array in R are not clear, I need some clarification to help me understand them better. >M <- read.table("test1.csv",sep=",",row.names=NULL,header=T) gives me: M as M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 1 9 11 14 15 18 20 20 20 20 20 2 3 4 8 9 11 12 14 15 15 15 3 4 5 8 8 9 9 9 9 9 9 4 4
2011 Aug 13
1
Own R function doubt
Hi to all the people again, I was writting a simply function in R, and wish to collect the results in a excel file. The work goes as follows, Ciervos<-function(K1, K0, A, R,M,Pi,Hembras) {B<-(K1-K0)/A T1<-(R*Pi*Hembras-M*Pi+B)/(Pi-M*Pi+R*Pi*Hembras) P1<-Pi-B R1<-P1*Hembras*R M1<-P1*M T2<-(R1-M1+B)/(P1-M1+R1) P2<-P1-B R2<-P2*Hembras*R M2<-P2*M
2012 Nov 07
1
[LLVMdev] using large structures in registers/returns
I can't find a lot of information about using structures directly as parameters, returns, and in registers. Is this fully supported on all platforms? Does it always convert to creating a hidden parameter when too large? For example (assume very.large is too big to fit in the target machine registers): define %very.large @get_struct() { %m1 = insertvalue %very.large undef, i32 10, 0 ...
2009 May 27
1
How to write a loop?
Dear R helpers,   Following is a R script I am using to run the Fast Fourier Transform. The csv files has 10 columns with titles m1, m2, m3 .....m10.     When I use the following commands, I am getting the required results. The probelm is if there are 100 columns, it is not wise to define 100 commands as fk <- ONS$mk and so on. Thus, I need some guidance to write the loop for the STEP A and
2008 Dec 26
3
lm() with same formula but different column/factor combinations in data frame
Hi, I am trying to find an efficient way of applying a linear regression model to different factor combinations in a data frame. I want to obtain the output with minimal or no use of loops if possible. Please let me know if this query is unclear. Thanks, Murtaza
2009 Jun 15
0
books on Time serie
A time series text with a title that seems designed to hide its wide scope is: Forecasting with Exponential Smoothing The State Space Approach Hyndman, R.J., Koehler, A.B., Ord, J.K., Snyder, R.D. Springer 2009. This book is actually an excellent overview of time series theory, ARIMA as well as state space. It is of course, in part, a manual for the forecast and other packages in what has been
2003 Dec 14
2
ISOLINUX fails at boot on Award BIOS v6.00PG
Hello, I don't know if it's ISOLINUX or a broken BIOS, this is the first time ever seeing this error. "Extremely broken BIOS" on a EPIA -M10 BIOS Rev 2.07 (latest ver available) EDEN VIA mini-ITX mobo. ISOLINUX on RH8 ver 1.75, RH9 ver 2.00 and Yarrow ver 2.06 all produce the same type of error. RH 7.3 and Lindows boot and build without any problem but I don't think they
2004 Jan 07
1
generic name of variables
Dear R-list, I wish a very happy new year and send you a little question: I have different variables which names are m1, m2, m4, .., m10, ... and want to obtain for example mean of each of them without typing each mean(m1), mean(m2), .... What is the solution for decomposing names in mXX? With my best regards, EA. ============================================ Erik-André SAULEAU SEAIM Hôpital du
2011 Jan 24
1
ggplot2 - ribbon
Dear List, I am having trouble setting the transparency of a ribbon in ggplot2 and was wondering if anybody had any suggestions so far i have a plot exactly as i want it and i want to add a ribbon connecting the ymax and ymin, whci i do with the following command m10 + stat_summary(geom="ribbon", fun.ymin="min", fun.ymax="max") However the ribbon is a dark grey
2007 Apr 04
2
Newbie: Simple loops: complex troubles
I am used to java (well, i dont remember it really well, but anyway) I have having a really difficult time making simple loops to work. I got the following to work: ## ##Creates objects Ux1, Ux2, Ux2 etc. that all contain n numbers in a random distribution ## m<-c(m1,m2,m3,m4,m5,m6,m7,m8,m9,m10)#these are defined as numbers (means) v<-c(v1,v2,v3,v4,v5,v6,v7,v8,v9,v10)#these