similar to: rounding of integer

Displaying 20 results from an estimated 20000 matches similar to: "rounding of integer"

2012 Jan 09
6
runif with condition
Hi I want to generate 4 random number which sum up to 100 always Please help ----- Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/runif-with-condition-tp4278704p4278704.html Sent from the R help mailing list archive at Nabble.com.
2012 Nov 26
3
Help in splitting the records
Hi I have set of records seperated by a separator say "$$$" i want to get the values in a dataframe. eq qwer$$12$$qwre ewrtr$7789$ewwe I want the output as\ V1 V2 V3 qwer 12 qwre ewrtr 7789 ewwwe Please help me ----- Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/Help-in-splitting-the-records-tp4650827.html Sent from
2012 Feb 22
4
Week number from a date
Hi My data looks like this startDate="2008-06-01" dateRange =c( "2008-10-01","2008-12-01") Is there any method to find the week number from the startDate range ----- Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/Week-number-from-a-date-tp4410223p4410223.html Sent from the R help mailing list archive at Nabble.com.
2012 Apr 03
2
Histogram classwise
Hi I have a data class wise. I want to create a histogram class wise without using for loop as it takes a long time my data looks like this x class 27 1 93 3 65 5 1 2 69 5 2 1 92 4 49 5 55 4 46 1 51 3 100 4 ----- Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/Histogram-classwise-tp4528624p4528624.html Sent from the R help mailing list archive
2012 Jul 17
2
comparing three vectors
Hi I 've a data a=c(10,20,30) b=c(100,200,300) c=c(50,60,70) I want to compare a[1]<=c[1]<b[1],...... How to compare for all the records ----- Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/comparing-three-vectors-tp4636728.html Sent from the R help mailing list archive at Nabble.com.
2012 Oct 24
3
Results not dispalying in R console
Hi I'm not getting any results in R console when i run commands. I reinstalled R but the results are same ----- Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/Results-not-dispalying-in-R-console-tp4647271.html Sent from the R help mailing list archive at Nabble.com.
2012 Feb 22
3
inserting a dataframe into the table
Hi, I have a dataset X Y A= 10 15 20 30 40 50 B = X Z 10 30 20 50 I have a table containing X Y Z columns How to insert a data frame into the table without using for loop ? now currently i'm using the for loop with using the insert command? ----- Thanks in Advance Arun -- View this message in
2012 Jul 03
2
read the date format
hi I have a data like thursday, November 20,2012. I'm not able to convert into data format in R Can anyone please help ----- Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/read-the-date-format-tp4635245.html Sent from the R help mailing list archive at Nabble.com.
2012 Apr 24
2
searchina a pattern in a string
I have a long string. i want to sepearate a 10 digit phone no from it. eg "my no is 9876543210 is personal no and my official no is 123-456-8907. you can use any of these" i want to seperate the 9876543210 and 123-456-8907 from this. therev may be many phone nos in the string. how to do it ----- Thanks in Advance Arun -- View this message in context:
2012 Feb 09
3
calling the function which is stored in a list
Hi I'm storing two functions in a list # creating two function function1 <- function(n) { return(sum(n)) } function2 <- function(n) { return(mean(n)) } #storing the function function3 =c(function1,function2) is it possible to call the stored function and used it ? x=c(10,29) funtion3[1](x) Thanks ----- Thanks in Advance Arun -- View this message in context:
2012 Aug 03
1
how to get a date variable from a dataset
Hi I have a find the class of each variable of the data set which is given as input. I can able to find the string and the numeric variable. Not able to find if the variable is date or not Can any one help me. ----- Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/how-to-get-a-date-variable-from-a-dataset-tp4639038.html Sent from the R help
2012 Jan 31
1
Help required in using apply instead of for loop
Hi I have a function y= x^2 min =10 max=20 increment=0.1 I want to find the value of y for the value of x between min and max by step increment. how to get the values using apply function instead of for loop ----- Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/Help-required-in-using-apply-instead-of-for-loop-tp4344350p4344350.html Sent from the
2012 Feb 17
1
Creating XML using apply
Hi My data looks like this data is a vector data= var1 var2 var3 100 120 130 i want to put it in an XML xmlOutput=NULL xmlOutput<- newXMLNode("results") for( i in 1 : length(data)) { newXMLNode("variable",attrs=c(name =names(data)[i] ), value = data[i]), parent = xmlOutput) } is it possible to use apply here If there more variables it
2012 Feb 29
1
Error in Aggregate
Hi My dataframe looks like this data= id V1 V2 V3 V4 1 5 6 7 8 1 10 20 30 40 2 23 54 54 6 3 43 54 54 33 4 12 34 54 54 4 34 54 23 52 I have to sum by id I used command aggregate(data,by =list(data$id),FUN=sum) Error i face is Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L), na.rm = FALSE) : sum not meaningful for factors Please help me ----- Thanks in Advance Arun --
2012 Mar 27
1
help in replacing for llop
Hi I have records like like this X1 X2 State 34 72 state1 9 63 state1 49 31 state1 60 34 state1 80 73 state1 60 20 state2 59 87 state2 88 20 state2 71 66 state2 65 56 state2 59 16 state1 60 100 state2 I want to get the summarize value like mean median histogram for X1 and X2 based on state. I'm using FOR loop for this. Is there any method to remove for loop and use apply or any
2012 Apr 03
1
help in ddply
Hi I've records like this df= x panel 4 1 93 2 21 3 83 4 75 1 87 2 87 3 78 4 50 1 76 2 86 3 65 4 84 1 40 2 39 3 26 4 i want to create histogram out of it . i want all the mid and count values for panel wise my code is histoutput = ddply(df,.(df[2]),hist) i'm not able to get the required result. please help me using for loop takes a lot of time if there are more records ----- Thanks
2012 Apr 05
1
help in match.fun
hi I have a dataframe and a parameter the parameter can have any one value min max mean sum hist i'm using the function match.fun fun=match.fun(input) fun(dataset) but if input is hist the plot pops up. is there any method to avoid it. else should use only if condition for histogram ----- Thanks in Advance Arun -- View this message in context:
2012 Apr 20
1
what is the maximum number of records that we can load using dbwrite
Hi I'm using the dbwrite to insert a large dataset. There are about 10 million rows. But i'm not able to load the records. Please can anyone tell me the way to load or maximum number of records that dbwrite does. so that i can load it in batches ----- Thanks in Advance Arun -- View this message in context:
2012 Aug 01
1
finding correlation for lagged values
Hi I've to find the correlation of a variable and lag of other variable. My code currently looks like this y= 32 1 45 26 33 55 15 24 31 78 x=51 69 96 67 71 89 61 42 78 24 lagTimes=2 i want to find the correlation between y and Lag(x,1) and Y &Lag(x,2) i'm using loop to find the lag and then finding correlation If there are more variables and need to find the correlation lag
2012 Apr 05
3
help in paste command
i have a character variable tablename="DressMaterials" var1=("red","blue","green","white") My output should be like select * from DressMaterialswhere colors in ("red","blue","green","white") i'm not able to get the where part. my code paste(select * from ", tablename , " where colors in