HI ,
I would like to do stemming operation on vector of words using tm package. I
am using R 2.8.1 and tm package for same. For doing any operations i tm
package the data first needs to be converted to corpus
and then use various commands in tm package. No problem is I am not able to
convert
HI ,
I am using R on a very huge datasets which contains lot of text. I prepared
a all word vector of words by using strsplit function. Now I want to compute
frequency of unique words from all word vector. For doing
so, I used two ways
1) as.data.frame(table(x))
2) sapply(x,x,length)
x contains
Hi ,
I would like to check if a column contains datetime values. (column may
contain any datetime format or just numbers or string). Request your help
--
View this message in context:
http://r.789695.n4.nabble.com/Checking-datetime-value-tp4679963.html
Sent from the R help mailing list
Thanks Rui and Greg for providing me the solution , it Works.
--
View this message in context:
http://r.789695.n4.nabble.com/Barplot-with-Secondary-axis-tp4640980p4641081.html
Sent from the R help mailing list archive at Nabble.com.
__
Hi all,
I am trying to plot a bar chart and trying to plot a line as a secondary
axis as my scale is different for two y axis.
I am plotting a clustered bar chart by using besides = True option in
barplot function and my y coordinates are not plotted exactly at the center
on each two bars.
Hi,
I am using rodbc package to connect with Sql Server 2005. I have a table
which contains some japanese characters. Now I want to use these japanese
characters as labels in simple x y plot?
Here is the data in the table
サービスデスク 35355
データネットワーク 8417
I want to read this data from
corrupted and we cannot delete this file from current R Session.
I Have tried commands like file.remove() and unlink to remove the corrupt
file from current R session.
Is there any other way inorder to remove such files??
Thanks Regards,
Vikrant
--
View this message in context:
http://r
I am trying to insert multiple insert statements through R using RODBC.
Initially Every time I am creating Insert statements and executing queries
one by one.This takes lot of time since everytime the query is created and
inserted. Is there any other way So that I can insert Multiple Insert
I am saving R graph as a jpeg image and the border is plotted defaultly when
you open the image.How can I avoid the border?
small R code is as follows :-
volume- seq(100,10,-10)
jpeg(filename = mygraph.jpg,width=366,height=284,units=px)
{
--
View this message in context:
http://r.789695.n4.nabble.com/how-to-insert-R-plot-image-graphs-to-Sql-server-2005-tp2955667p2955667.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
Hi All,
I want to know is there any package in R which can plot multivariate control
charts ??
Thanks in advance,
Vikrant.
--
View this message in context:
http://r.789695.n4.nabble.com/Multivariate-control-charts-in-R-tp2336576p2336576.html
Sent from the R help mailing list archive
be helpful ? Also the method should give period of seasonality.
Thanks,
Vikrant
--
View this message in context:
http://r.789695.n4.nabble.com/Detecting-seasonality-tp2306292p2306292.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r
Hi jannis,
Thanks for replying
I will try to make my question more clear. Actually I have many Hourly time
series and I want to automatically detect whether seasonality is present in
this series or not.If Yes, Then I need to find the period after which the
seasonal pattern repeats. For this
I have a vector a = c(1,0,0,0,1,0,4,0,0,0)
Now I want to get a vector of positions in a vector a where the value is non
zero..
How to do it??
--
View this message in context:
http://r.789695.n4.nabble.com/How-to-get-vector-of-poitions-in-a-vector-tp227p227.html
Sent from the R help
Dear All,
I want to know how to save R plots as image/object in a oracle database??
I am using RODBC package for connecting R to oracle
Please explain by giving example..
Thanks in advance
Cheers,
Vikrant
--
View this message in context:
http://r.789695.n4.nabble.com/Saving-R-plots-as-image
Dear ALL,
I have installed RODBC package in R and successfully connected to Oracle.
Now my question is when I am trying to execute oracle procedures though R, I
am not able to do it.
Simple oracle queries like select * from dbtable are successfully
executed. but the command for execution of
Are there any commands for executing oracle procedures through R ??
--
View this message in context:
http://r.789695.n4.nabble.com/Error-while-Executing-Oracle-procedures-through-R-tp2293609p2294925.html
Sent from the R help mailing list archive at Nabble.com.
Thanks Marc Daniel for your replies.
I am now able to connect R to oracle using RODBS. There was an error while
setting up the DSN.
Now it is solved.
Thanks once again
--
View this message in context:
Dear All,
I want to connnect R with oracle. I am using RODBC package for this
connection. Following is my code to connect
library(RODBC)
channel - odbcConnect(Vikrant)
I am getting following error.
1: In odbcDriverConnect(DSN=Vikrant) :
[RODBC] ERROR: state NA000, code 12288, message
Hi Megan,
Answer for you third question. This function will return the maximum CCF
value along with corresponding lag value. Input to this function are a and b
which are nothing but two time series.
Find_Max_CCF- function(a,b)
{
d - ccf(a, b, plot = FALSE)
cor = d$acf[,,1]
lag =
Please help if anybody has got this error earlier. Or please explain how
should I use package RODBC to connect to oracle
--
View this message in context:
http://r.789695.n4.nabble.com/Error-while-connecting-to-Oracle-using-RODBC-package-tp2288304p2288389.html
Sent from the R help mailing list
I am using windows Xp OS and R 2.10. I treid to install ROracle package and I
got following error:-
This application has failed to start because orasql9.dll was not found.
Re-installing
the application may fix this problem
I have already installed the dependecy package DBI
Please help
series -c(0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10
,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10)
Here ain this example after period 4 the pattern repeats. So we can say that
the above series have a period of 4.
Now my question is by using the
Really Thanks Uwe .
I have started reading books about Fourier analysis.
--
View this message in context:
http://r.789695.n4.nabble.com/help-spectral-analysis-spec-pgram-tp851439p2216443.html
Sent from the R help mailing list archive at Nabble.com.
Dear Prof Brian,
I am new to spectral analysis. I dont know how to obtain period from
spectral periodogram. If u could explain me about how to obtain the period
from periodogram it will be very helpful. U can explain using the above two
examples in the discussiion.
Thanks in advance..
--
View
Dear ALL R Experts,
I have a time series and I want to detect presence of seasonality in this
time series. I know the method of plotting the Autocorrelation function(acf)
and if there are significant lags after period s,2s,3s,... then s is the
period for the time series. But my problem is
and if
seasonality is present need to detemine the time period T .
Thanks Regards,
Vikrant
--
View this message in context:
http://r.789695.n4.nabble.com/how-to-find-presence-of-seasonality-in-time-series-data-without-using-graphs-tp2123523p2123523.html
Sent from the R help mailing list archive
Hi All,
Suppose I have 2 time series
a = 1:20
b = 5:15
and I am finding the cross correlation between these two time series using
CCF function.
c = ccf(a,b)
print(c)
Autocorrelations of series ‘X’, by lag
-7 -6 -5 -4 -3 -2 -1 0 1 2 3
4
,paste(select * from,dbname,..,dbtable)
}
my(driver=SQL Server;server= 01hd166373,test_db,test_vikrant)
Cheers,
Vikrant.
--
View this message in context:
http://n4.nabble.com/R-connection-with-sql-server-2005-tp1478145p1478484.html
Sent from the R help mailing list archive at Nabble.com
Thanks a lot, really. dir() option showd my desktop files and test.R was
shown as test.R.txt
when I run source(test.R.txt) it worked.
Just for your information,
I changed the directory using Menu options File- change dir.
I verified the same using getwd() command in R. '
--
View this message
Dear Bart,
According to your suggestion I wrote to maintainer of the package and the
reply which I got is as follows:-
You shouldn't use R charts for
monitoring dispersion using sample sizes larger than 20, and for
sample sizes greater than 25 you get an error. From theory, R chart
used
Dear R experts,
I am using RODBC package.
library(RODBC)
channel- odbcDriverConnect(driver=SQL Server;server=,servername)
data- sqlQuery(channel,select * from dbname .. dbtable)
Here if i use this it is getting executed successfully.
But when i put this in a function as
Dear R Experts,
This is my R function.
my-function(servername,dbname,dbtable){
library(RODBC)
channel- odbcDriverConnect(paste(driver=SQL
Server;server=,servername))
init_data- sqlQuery(channel,paste(select * from,dbname,..,dbtable))
init_data -
Thanks Dieter. It works.
--
View this message in context:
http://n4.nabble.com/Problems-with-looping-in-R-tp1475550p1475619.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
Dear R experts,
Suppose I have a small r function
myfunction - function(x)
{
return(x*x)
}
and I save this function in a test.R text file. Suppose when I open a new
seesion in R and I want to run this function myfunction(3) .how should i do
it??
--
View this message in context:
Hi,
I saved the function in test.R file on Desktop. Then after starting R I
changed my directory to desktop.
and tried the command source(test.R) it gave me following error
Error in file(file, r, encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(file,
Dear R Experts,
I have written a following function :-
myfunction- function(servername,dbname,dbtablename){
library(RODBC)
channel - odbcDriverConnect(driver=SQL Server;server=servername)
initdata- sqlQuery(channel,paste(select * from dbname .. dbtablename))
return(dim(initdata))
}
I have
Thanks Bart and Peter for your help and the example is working for c chart as
well withut any error. But when I am plotting the R chart i am still getting
the following error.
Error in limits.R(center = 62614.0571428571, std.dev = NA_real_, sizes =
c(1000L, :
group size must be less than 51
Hi all,
I am using SPC techniques of plotting Xbar, R, S, P and C charts in R.For
this I am using qcc package in R and also using the following document for
reference.
http://www.stat.unipg.it/~luca/Rnews_2004-1-pag11-17.pdf
But while plotting S chart, R chartchart and also C chart I am getting
ok. I will give the example for which i m getting this error. The data for
plotting R chart and S chart is very huge. SO i will take example for
plotting C chart.
Data is a follows :-
sample D sizetrial
1 11 1000TRUE
2 11 1000TRUE
3 13 1000
Hi,
I want to estimate parameters of weibull distribution. For this, I am using
fitdistr() function in MASS package.But when I give fitdistr(c,weibull) I
get a Error as follows:-
Error in optim(x = c(4L, 41L, 20L, 6L, 12L, 6L, 7L, 13L, 2L, 8L, 22L,
:
non-finite value supplied by
Yes I do have zeros in my data. But I m not able to understand y inclusion of
zeros results in error messages, because range for x in weibull distribution
is x=0. Can you please clarify this doubt?
--
View this message in context:
i am unable to open a file which is saved as .xlsx format in R . The file
contains approximately 1,50,000
rows. So I m not able to save it as csv file.Please suggest ways to open
this file
--
View this message in context:
Suppose I am reading data from a file and the data contains some outliers. I
want to know if it is possible in R to automatically detect outliers in a
dataset and remove them
--
View this message in context:
http://n4.nabble.com/How-to-detect-and-exclude-outliers-in-R-tp1017285p1017285.html
Can I save R graphs as a R objects ? IF yes then if I click this R object
can I edit my chart as in Excel.
Please suggest your views
--
View this message in context:
http://n4.nabble.com/Can-I-save-R-graphs-as-a-R-objects-tp1014621p1014621.html
Sent from the R help mailing list archive at
Is it possible to connect R with Ms SQL Server 2005 ? If Yes how to connect
it and can you please provide some tutorial for it?
--
View this message in context:
http://n4.nabble.com/Connecting-R-with-MS-SQL-server-2005-tp1014643p1014643.html
Sent from the R help mailing list archive at
Suppose I need to draw a Grouped bar plot with 100 values on the X axis. Now
my question is If I need to highlight suppose first three values by some
color say 'red' and also I need to highlight last 5 datavalues
by some color say 'blue' and the rest of the data in between I need not
display. Is
If anybody can provide me a link it will be very much helpful
--
View this message in context:
http://n4.nabble.com/Connecting-R-with-MS-SQL-server-2005-tp1014643p1014669.html
Sent from the R help mailing list archive at Nabble.com.
__
.
and gave the command R CMD INSTALL rJava_0.7-0.tar.gz.
I got the followin Errors :-
Warning in install.packages(rJava) :
argument 'lib' is missing: using
'/home/vikrant/R/i486-pc-linux-gnu-library/2.9'
trying URL 'http://cran.uk.r-project.org/src/contrib/rJava_0.7-0.tar.gz'
Content type
Thanks Hans for ur help
I will try to solve the problem accordingly if there are any problems will
contact u surely
.
--
View this message in context:
http://www.nabble.com/Quadratic-Constraints-tp25528480p25530553.html
Sent from the R help mailing list archive at Nabble.com.
Hi Hans,
I am very much thankful to you for helping me to solve the problem. I went
through the
link provided by you and tried to solve the problem. But I think there's
some problem
with the code. So it is not arriving at the optimal solution.In Some cases
it shows optimum
solution while in some
HI All,
I am unable to solve a optimization Problem Please Help Me out of this to
solve. The Optimization problem is as follows :-
My objective function is linear and one of the constraint is quadratic.
Min z = 5 * X1 + 9* X2 + 7.15 *X3 + 2 * X4
subject to
X1 + X2 + X3 +X4 = 9
X1 + X4 =
I am new to R and I want to solve this following problem using R.
My Objective function is a linear function with Quadratic constraints.I want
to know how to solve this problem and which package will be helpful for me
for solving such type of problems.Moreover my one constraint is linear and
53 matches
Mail list logo