search for: lippel

Displaying 20 results from an estimated 25 matches for "lippel".

Did you mean: zippel
2010 Mar 03
5
filtering signals per day
...0 0 2006-11-03 1 0 2006-11-03 0 0 The thing is that I want to do it with matrix functions and not doing a loop but I still have no clue even after having spent time on it. Can somebody please help me? thank you! ----- Anna Lippel -- View this message in context: http://n4.nabble.com/filtering-signals-per-day-tp1577044p1577044.html Sent from the R help mailing list archive at Nabble.com.
2010 Jan 29
7
Simple question on replace a matrix row
Hello, I have a matrix mat1 of dim [1,8] and mat2 of dim[30,8], I want to replace the first row of mat2 with mat1, this is what I do: mat2[1,]<-mat1 but it transforms mat2 in a list I don't understand, I want it to stay a matrix... ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Simple-question-on-replace-a-matrix-row-tp1427857p1427857.html Sent from the R help mailing list archive at Nabble.com.
2010 Mar 26
5
smart way to turn a vector into a matrix
...[1,] "C" "1" [2,] "C" "2" [3,] "C" "3" I thought about a using which and lapply but didn't get to a solution. There is always a smart way to do it I'm sure but I'm not finding it...Can somebody help please? ----- Anna Lippel -- View this message in context: http://n4.nabble.com/smart-way-to-turn-a-vector-into-a-matrix-tp1692671p1692671.html Sent from the R help mailing list archive at Nabble.com.
2009 Nov 16
5
Writing a data frame in an excel file
Hello, I am having trouble by using the write.table function to write a data frame of 4 columns and 7530 rows. I don?t know if I should just use a sep="\n" and change the .xls file into a .csv file. Thanks in advance ----- Anna Lippel new in R so be careful I should be asking a loooooooot of questions!:teeth: -- View this message in context: http://old.nabble.com/Writing-a-data-frame-in-an-excel-file-tp26378240p26378240.html Sent from the R help mailing list archive at Nabble.com.
2010 Mar 26
3
Using lapply with two lists
Hello guys, I have a list L1 of matrix. I have another list L2 with the same number of elements representing the row of the L matrix that I want to delete (L1[[i]][-L2[[i]],]) but I can't do this with lapply as it iterates through L1 (first argument) and not L2. Any idea? ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Using-lapply-with-two-lists-tp1692883p1692883.html Sent from the R help mailing list archive at Nabble.com.
2010 Jan 29
3
Applying a function on each columns of a matrix
..., Fun = myfunction, parameter1 =..., parameter2=...) I get the following error: Error in FUN(newX[, i], ...) : unused argument(s) (2, function (X, MARGIN, FUN, ...) Does someone know how to solve this? and is there a way to send a vector of parameter1 instead of a scalar? thank you ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Applying-a-function-on-each-columns-of-a-matrix-tp1415660p1415660.html Sent from the R help mailing list archive at Nabble.com.
2010 Mar 25
4
Convert number to Date
...mber format gives me 40182. When I read this with read.xls from R I get same 40182 so what I do is that I use the as.Date() function but here is what the as.Date() function returns me: > as.Date(40182) [1] "2080-01-06" Why don't I get the same thing as in excel? Thanks! ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Convert-number-to-Date-tp1691251p1691251.html Sent from the R help mailing list archive at Nabble.com.
2010 Feb 03
2
Delete missing value rows from a matrix
Hi everyone, I have a matrix with many Na's. Some rows contain some Na's and some others are entirely composed of Na's. I want to delete the rows that are entirely composed of Na's but not the other ones so I can't use a simple removeNA. Has any one an idea? ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Delete-missing-value-rows-from-a-matrix-tp1461305p1461305.html Sent from the R help mailing list archive at Nabble.com.
2010 Mar 11
2
Can't convert list to matrix properly
...Levels: A But when I try to convert into matrix by doing this: > myMatrix <- data.matrix(myDataFrame) I get this: > myMatrix X.A. X.B. X.C. X.D. [1,] 1 1 1 1 He just keeps the names and delete the components...What am I doing wrong? Thanks in advance! ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Can-t-convert-list-to-matrix-properly-tp1589187p1589187.html Sent from the R help mailing list archive at Nabble.com.
2009 Nov 20
2
Problem at adding lines on a graphics with lines() function
...="l",col="green",lty="solid") But I just see the first curve. I have tried it on the console separately and it?s still not working. There is no error message but I can?t see the second curve. Is there a parameter that I need to change with par()? Thank you ----- Anna Lippel new in R so be careful I should be asking a loooooooot of questions!:teeth: -- View this message in context: http://old.nabble.com/Problem-at-adding-lines-on-a-graphics-with-lines%28%29-function-tp26443627p26443627.html Sent from the R help mailing list archive at Nabble.com.
2010 Feb 12
3
Code working but too slow, any idea for how to speed it up ?(no loop in it)
...;- matrix(mat2[, colNb]) nbDays <- length(mat1) returns <- abs(mat1[1:(nbDays - day)]) * ((as.ts(lag(mat2, day))/as.ts(mat2))^mat1[1:(nbDays - day)] - 1) return(returns) } I am wondering if the fact of using lag and ts is not slowering down the code, any idea? ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Code-working-but-too-slow-any-idea-for-how-to-speed-it-up-no-loop-in-it-tp1483110p1483110.html Sent from the R help mailing list archive at Nabble.com.
2010 Jan 28
2
Error on using lag function
...the error that I get: Warning message: In NextMethod("[<-") : number of items to replace is not a multiple of replacement length I have tried to reduce the dimension of P on the first two elements of the replace() function by one but it wouldn't work either. Any idea? ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Error-on-using-lag-function-tp1399935p1399935.html Sent from the R help mailing list archive at Nabble.com.
2010 Feb 02
2
Retrieve distinct values within a whole data frame
Hello everyone, I am trying to retrieve the list of distinct values within a whole data frame. I tried to use unique() function but it retrieves the distinct values within each column or row, I want it for the entire data frame, any idea? ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Retrieve-distinct-values-within-a-whole-data-frame-tp1460205p1460205.html Sent from the R help mailing list archive at Nabble.com.
2010 Apr 19
2
Using split and then unsplit
...unsplit it, I get an error as I use the same factor function I used to split ( f in the help split page) I guess because the number of rows changed. Do I need to create a new f function to be able to unsplit or is there another way to unsplit those data frames and rbind them? Thank you! ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Using-split-and-then-unsplit-tp2016071p2016071.html Sent from the R help mailing list archive at Nabble.com.
2009 Nov 18
1
Creating an excel file and manipulating it from R
...e but I only found the functions to write or read in an existing file that you gave me on my former post or on some websites. I can?t find either functions to manipulate those datas: for example, I would like some lines to be red or green according to their value. Thank you in advance! ----- Anna Lippel new in R so be careful I should be asking a loooooooot of questions!:teeth: -- View this message in context: http://old.nabble.com/Creating-an-excel-file-and-manipulating-it-from-R-tp26408408p26408408.html Sent from the R help mailing list archive at Nabble.com.
2010 Feb 02
1
Build a matrix from another matrix by specifying the indexes
...x columns, for example mat <- cbind( vec1, vec2 ,vec3) I found a way to make a match on each column: indexes <- apply(mat, 2, match, x = vBase) It returns me the indexes matrix but I don't know how each index column to each mat column like I did for vec1 with vec1[]. Any idea? ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Build-a-matrix-from-another-matrix-by-specifying-the-indexes-tp1460326p1460326.html Sent from the R help mailing list archive at Nabble.com.
2010 Feb 02
1
Finding the difference between two vectors
...I don't know if there is any function doing this. I thought about using a which() function to retrieve all the missing elements index ( twx, 1 here) and insert them in the right index in the first vector but how can I insert in a vector, is there an appropriated function? thank you ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Finding-the-difference-between-two-vectors-tp1460020p1460020.html Sent from the R help mailing list archive at Nabble.com.
2010 Mar 17
2
Troubles on retrieving rownames
...bloomberg to run it): conn <- blpConnect(na.action="na") prices <- blp(conn, securirtyNames, "PX_LAST", startDate, endDate) > rownames(prices) NULL any idea of what it could be? What I don't understand is that I can see those rownames on the console... ----- Anna Lippel -- View this message in context: http://n4.nabble.com/Troubles-on-retrieving-rownames-tp1596990p1596990.html Sent from the R help mailing list archive at Nabble.com.
2009 Nov 16
3
Error on reading an excel file
...z <- odbcConnectExcel("SPX_HistoricalData.xls") datas <- sqlFetch(z,"Sheet1") close(z) It works pretty well but the only thing is that the datas stop at row 7530 and I don?t know why datas is a data frame that contains 7531 rows with the last two ones = NA... ----- Anna Lippel new in R so be careful I should be asking a loooooooot of questions!:teeth: -- View this message in context: http://old.nabble.com/Error-on-reading-an-excel-file-tp26371750p26371750.html Sent from the R help mailing list archive at Nabble.com.
2010 Feb 02
2
mysterious extra spaces appearing in expression paste
Hi, i'm trying to put a legend on some figures and they're coming out a bit wonky. here's an example: a <- c(1:10) par(mfrow=c(2,1)) plot(a,type="s",lwd=3) leg <- c(expression(paste("data1 (",rho,"=1)")), expression(paste("data2 (",rho,"=0.0)"))) legend("bottomright",legend=leg,col=c(1,2),lwd=3)