Yep, I seen that!! Just don't know which one is best!! Any who, I'll try
them out and see how it goes!! I'm sure I'll be back looking for help!!!
Rhanks
On Wednesday, July 27, 2016, boB Rudis wrote:
> https://cran.rstudio.com/web/packages/abbyyR/index.html
>
> https://github.com/greenore/ocR
>
>
> On Jul 26, 2016, at 8:07 PM, Anamika Chaudhuri wrote:
>
> I have 100 datasets with 20 rows and 2 columns in each dataset.
> I am looking for help to produce x and y below as 1000 X 20 matrix and then
> repeat that across 100 datasets using R
>
> library(MASS)
> library(car)
>
I have 100 datasets with 20 rows and 2 columns in each dataset.
I am looking for help to produce x and y below as 1000 X 20 matrix and then
repeat that across 100 datasets using R
library(MASS)
library(car)
set.seed(1234)
library(mixtools)
library(sp)
Hi Maria,
The "plot.gam" function doesn't use the "col" argument for lines, but
does change the color of points in the second example on the help
page. There doesn't seem to be an easy way to change the function to
get what you want.
Jim
On Tue, Jul 26, 2016 at 11:47 PM, Maria Lathouri via R-hel
Agh. I've argued elsewhere that the default behaviour should be to
fail, and the user should take the responsibility to explicitly handle
the missing values, even if that simply be by changing the argument.
Probably Peter and I have different experiences with the completeness
of datasets, but anyt
https://cran.rstudio.com/web/packages/abbyyR/index.html
https://github.com/greenore/ocR
https://electricarchaeology.ca/2014/07/15/doing-ocr-within-r/
that was from a Google "r ocr" search. So, yes, there are options.
On Tue, Jul 26, 2016 at 6:43 PM, Achim Zeileis wrote:
> On Wed, 27 Jul 2016,
Runs fine on Windows 10 for me.
On 7/25/2016 7:18 AM, Ramar, Rohini wrote:
Hello Team,
We are, Citi Application Readiness Team, need your assistance in order to gather info
about below application compatibility and support for Win 10 as part of Window 10
Readiness initiative. CITI Bank has b
On Wed, 27 Jul 2016, Shane Carey wrote:
Cool, thanks Jim!!
I would love to be able to write my own script for this as I have many
images/ pdf's in a folder and would like to batch process them using an R
script!!
The underlying engine is "tesseract" which is also available as a
command-line t
Hi Shane,
If you want to run OCR on the command line, the Tessaract engine is
probably the way to go. Harder to build and install, but you can call
it from an R session.
Jim
On Wed, Jul 27, 2016 at 8:24 AM, Shane Carey wrote:
> Cool, thanks Jim!!
> I would love to be able to write my own script
Cool, thanks Jim!!
I would love to be able to write my own script for this as I have many
images/ pdf's in a folder and would like to batch process them using an R
script!!
Thanks
On Tuesday, July 26, 2016, Jim Lemon wrote:
> Hi Shane,
> FreeOCR is a really good place to start.
>
> http://www.pa
Hi Shane,
FreeOCR is a really good place to start.
http://www.paperfile.net/
Jim
On Wed, Jul 27, 2016 at 6:11 AM, Shane Carey wrote:
> Hi,
>
> Has anyone ever done any ocr in R?? I have some scanned images that I would
> like to convert to text!!
> Thanks
>
>
> --
> Le gach dea ghui,
> Shane
>
Thank you very much, gentlemen!
On Tue, Jul 26, 2016 at 5:48 PM, peter dalgaard wrote:
>
>> On 26 Jul 2016, at 23:28 , Dimitri Liakhovitski
>> wrote:
>>
>> Hello!
>>
>> I have a string x:
>> x <- c("x - 84", "y - 293.04", "z = 12.5")
>>
>> I want to remove all the non-numeric stuff from it. The
> On 26 Jul 2016, at 23:28 , Dimitri Liakhovitski
> wrote:
>
> Hello!
>
> I have a string x:
> x <- c("x - 84", "y - 293.04", "z = 12.5")
>
> I want to remove all the non-numeric stuff from it. The following works:
> gsub("[^0-9]", "", x)
>
> However, it strips my numbers of "."
>
> Help -
> On Jul 26, 2016, at 4:39 PM, Marc Schwartz wrote:
>
>
>> On Jul 26, 2016, at 4:28 PM, Dimitri Liakhovitski
>> wrote:
>>
>> Hello!
>>
>> I have a string x:
>> x <- c("x - 84", "y - 293.04", "z = 12.5")
>>
>> I want to remove all the non-numeric stuff from it. The following works:
>> gsub(
> On Jul 26, 2016, at 2:28 PM, Dimitri Liakhovitski
> wrote:
>
> gsub("[^0-9]", "", x)
?regex
I think you might be bit embarrassed because it seems pretty obvious once you
know that character class elements like "." don't need to be escaped so it's
just this:
> gsub("[^0-9.]", "", x)
[1]
> On Jul 26, 2016, at 4:28 PM, Dimitri Liakhovitski
> wrote:
>
> Hello!
>
> I have a string x:
> x <- c("x - 84", "y - 293.04", "z = 12.5")
>
> I want to remove all the non-numeric stuff from it. The following works:
> gsub("[^0-9]", "", x)
>
> However, it strips my numbers of "."
>
> Help
> On 26 Jul 2016, at 22:26 , Hadley Wickham wrote:
>
> On Tue, Jul 26, 2016 at 3:24 AM, Martin Maechler
> wrote:
>>
...
> To me, this would be the most sensible default behaviour, but I
> realise it's too late to change without breaking many existing
> expectations.
Probably.
Re. the defaul
> On Jul 26, 2016, at 11:24 AM, kolkata kolkata wrote:
>
> Hello Everyone,
>
> I have a file with time in the following format:
>
> Time
>
> 27DEC11:00:30
>
> 27DEC11:01:30
>
> 27DEC11:02:00
>
> …….
>
> The time column is factor. I want to convert each time to the following
> format:
>
>
Hello!
I have a string x:
x <- c("x - 84", "y - 293.04", "z = 12.5")
I want to remove all the non-numeric stuff from it. The following works:
gsub("[^0-9]", "", x)
However, it strips my numbers of "."
Help - how could I do the same but leave the "." in?
Thanks a lot!
--
Dimitri Liakhovitski
Hi Lily:
> On Jul 26, 2016, at 2:00 PM, lily li wrote:
>
> Here are the results. Yes, I tried to read netcdf files, but cannot grasp the
> contents. Thanks for helping out.
>
> > str(pre1)
A guide to netcdf files and R can be found at
https://www.image.ucar.edu/GSP/Software/Netcdf/, it would
How to read continuous daily precipitation at each grid cell, and then
export to a csv file? Later, there should be several csv files, each
represents daily precipitation data for one grid cell. Thanks a lot.
On Tue, Jul 26, 2016 at 2:52 PM, Roy Mendelssohn - NOAA Federal <
roy.mendelss...@noaa.go
Here are the results. Yes, I tried to read netcdf files, but cannot grasp
the contents. Thanks for helping out.
> str(pre1)
List of 14
$ filename : chr "~/Downloads/sample_precip_daily.nc"
$ writable : logi FALSE
$ id : int 262144
$ safemode : logi FALSE
$ format : chr "NC_F
Hi Lily:
I doubt the mail-list would pass through the netcdf file. Instead, could you do
the following, and post the results:
library(ncdf4
pre1 = nc_open('sample_precip_daily.nc')
str(pre1)
nc_close(pre1)
I have a feeling you haven't worked much with netcdf files. I will try to find
a tutoria
Thanks for your reply. But it says "Error in (function (classes, fdef,
mtable)):
unable to find an inherited method for function 'brick' for signature
'ncdf4' "
The dataset is attached. It contains daily precipitation data for 20 years,
within a rectangle, so that there are several grid points. I
> I think that's a bit too strict for me, so I wrote my own:
>
> na.warn <- function(object, ...) {
> missing <- complete.cases(object)
> if (any(missing)) {
> warning("Dropping ", sum(missing), " rows with missing values",
> call. = FALSE)
> }
>
> na.exclude(object, ...)
> }
That shou
Hello Everyone,
I have a file with time in the following format:
Time
27DEC11:00:30
27DEC11:01:30
27DEC11:02:00
…….
The time column is factor. I want to convert each time to the following
format:
20111211003000
20111211013000
2011121102
(Year)(month)(date)(hr)(min)(sec)
Any suggest
On 26/07/2016 10:34 AM, Lorenzo Isella wrote:
On Tue, Jul 26, 2016 at 10:48:22AM +, Michael Sumner wrote:
On Tue, 26 Jul 2016 at 20:29 Lorenzo Isella
wrote:
Dear All,
I am not an expert about the calculation and visualization of convex
hulls, but I am trying to do something relatively sim
On Tue, Jul 26, 2016 at 3:24 AM, Martin Maechler
wrote:
> I have been asked (in private)
Martin was very polite to not share my name, but it was me :)
> > Hi Martin,
>
> y <- c(1, 2, 3, NA, 4)
> x <- c(1, 2, 2, 1, 1)
>
> t.test(y ~ x)
> lm(y ~ x)
>
> > Normally, most R fu
Hi,
Has anyone ever done any ocr in R?? I have some scanned images that I would
like to convert to text!!
Thanks
--
Le gach dea ghui,
Shane
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,
Thank you for all your tips. Will keep these checked.
Have a great day
On Wed, Jul 27, 2016 at 1:26 AM, William Dunlap wrote:
> Your original mail said
>Example of date - 05-30-16
>
>To change this i have used eir$date<- as.Date(eir$date, "%m-%d-%y")
>
> but by showing us the actual cod
Your original mail said
Example of date - 05-30-16
To change this i have used eir$date<- as.Date(eir$date, "%m-%d-%y")
but by showing us the actual code I see you reversed the m and d and
capitalized the Y in your first attempt, causing NA's since your data was
not in that format.
The big
A quick google for "ggplot2 change legend text" turns up several hits.
This stackexchange question has several recipes.
http://stats.stackexchange.com/questions/5007/how-can-i-change-the-title-o
f-a-legend-in-ggplot2
including the correct use of the labs() function;
labs(aesthetic='BrandValue in B
These are some of the codes will i have
eir$date<- as.Date(eir$date, "%d-%m-%Y")
class(eir$date)
eir$week<- (eir$date)
eir$week<- weekdays(as.Date(eir$week))
eir$week<- as.factor(eir$week)
On Tue, Jul 26, 2016 at 10:24 PM, Shivi Bhatia wrote:
> Hi Bill,
>
> I have mentioned the transformation al
Hi Bill,
I have mentioned the transformation all on the email above.
Regards, Shivi
On Tue, Jul 26, 2016 at 10:19 PM, William Dunlap wrote:
> Can you show us what transformations you tried when
> you saw the column called 'date' was a factor?
>
> Bill Dunlap
> TIBCO Software
> wdunlap tibco.co
Can you show us what transformations you tried when
you saw the column called 'date' was a factor?
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, Jul 26, 2016 at 9:33 AM, Shivi Bhatia wrote:
> Thanks Tom for the recommendation. This is now working.
>
> Apologies if this sounds like a juve
Team - Could you please do the needful.
I have a below code using ggplot2() package. I am trying to plot between
the variables - 'Company Advertising' and 'Brand Revenue' of my data frame
'htmltable' , when the another variable 'Industry' is 'Luxury'; using
ggplot() function. I am using another va
Thanks Tom for the recommendation. This is now working.
Apologies if this sounds like a juvenile but i am not very good with dates
in R. What i initially did when i saw date as factor and then tried
converting with lot many transformation that is where it went bad.
But thanks to all this is reall
So this looks correct so far.
# convert strings (or factors) to a date object
a1$date <- as.Date(a1$date, “%m-%d-%y”)
# Note the date object is now displayed in the format %Y-%m-%d by default
# so no need for the mdy() or ymd() function
# extract the weekdays as number
weekdays <- wday(
Hello Tom,
Please find the details: (i have changed name from eir to a1, rest all is
same)
str(a1$date)
Factor w/ 32 levels "05-30-16","05-31-16",..: 1 1 1
head(a1$date)
05-30-16 05-30-16 05-30-16 05-30-16 05-30-16 05-30-16
32 Levels: 05-30-16 05-31-16 06-01-16 06-02-16 06-03-16 06-04-16 06-05-
I'd recommend reading up on how to create a minimal reproducible
example (e.g. http://r4ds.had.co.nz/exploratory-data-analysis.html).
It is unlikely anyone will be able to help you unless you can reliably
communicate _exactly_ what you're doing. Unlike human languages,
computer languages are extrem
Hi again Shiva,
I think what we need to see is the output from:
str(eid$date)
and perhaps
head(eid$date)
If you can send this information before doing any processing on the date
(i.e. before the as.Date() function) we may be able to help.
-Original Message-
From: R-help [mailto:r-help
Hi Team,
Please read wdy as wday it was mistakenly copied.
On Tue, Jul 26, 2016 at 9:15 PM, Shivi Bhatia wrote:
> Hi David please see the code and some reproducible data:
> eir$date<- as.Date(eir$date,format = "%m-%d-%y") then i had used the
> lubridate library to help with the dates:
> insta
Hi David please see the code and some reproducible data:
eir$date<- as.Date(eir$date,format = "%m-%d-%y") then i had used the
lubridate library to help with the dates:
install.packages("lubridate")
library(lubridate)
eir$date <- mdy(eir$date)
weekdays <- wdy(eir$date)
week names <- wdy(eir$date, l
You still seem to be having problems, so where is the promised reproducible
example?
Dan
Daniel Nordlund, PhD
Research and Data Analysis Division
Services & Enterprise Support Administration
Washington State Department of Social and Health Services
> -Original Message-
> From: R-help [m
Show us the output, don’t just tell us what you are seeing. If the dates are
correct in the csv file, show us the structure of the data frame you created
with read.csv() and show the command(s) you used to convert the character data
to date format. The solution is likely to be simple if you will
Below is the covariates for a model ~x1+x2+x3+x4+x5+x6. I noticed that when
fitting this model that the coefficient x6 is unestimable.*Is this merely a
case that adding more columns to my model matrix will eventually lead to
linear dependance so the more terms I have in the model formulae the more
On Tue, Jul 26, 2016 at 10:48:22AM +, Michael Sumner wrote:
On Tue, 26 Jul 2016 at 20:29 Lorenzo Isella
wrote:
Dear All,
I am not an expert about the calculation and visualization of convex
hulls, but I am trying to do something relatively simple.
Please consider the snippet at the end of
Hi Georg,
excel.link and installr: as far as I can tell from CRAN, excel.link and
installr are for windows OS only
1-5: you are installing packages that are wrappers to system
function/programms. They must be present on your system first.
2: Maybe Weka is missing in the path? Is your java excutab
What does this produce?
> readLines("YourCSVfilename.csv", n=5)
If the data are in Excel, the date format used in .csv files is not always in
the same as the format used when viewing dates in the spreadsheet.
-
David L Carlson
Department of Anthropology
Texas
Hi
Thanks for following up on this thread.
I've opted for this, albeit circuitous, route: use the tm package to
stem the document and then use writeCorpus to write the stemmed document
to disk, so that I can open it up and do the concordancing piece.
Many thanks - this'll do me fine until I
The mailing list allows very few types of attachments through to limit virus
problems. You need to learn how to convey your problem as a reproducible
sequence of R statements to get clear assistance here. [1]
In this case, you may be confused between the interactive working environment
(variab
Dear all
I am stuck probably in a simple plotting question
My model is:model.1<-gamm4(y~s(x1, by=end.group)+Year+K1+k2+k3, data=..,
random=~(1|WB_ID/Site_ID))
where y is my dependent variable, x1 is the smooth covariate and I use the by
argument for the smooth term based on six different group
Hi All,
I try to install packages on Debian GNU Linux 8 (Kernel 3.16.0-4-amd64).
My sessionInfo() is
R version 3.3.1 (2016-06-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 8 (jessie)
locale:
[1] LC_CTYPE=de_DE.UTF-8 LC_NUMERIC=C
[3] LC_TIME=de_
Hi
I use the tm_map() with stemDocument used as an argument
Looking at a particular file before stemming
writeLines(as.character(data_mined_volatile[[1]]))
## The European Union is a "force for social injustice" which backs "the haves
rather than the have-nots", Iain Duncan Smith has said.
##
Thanks Marc for the help. this really helps.
I think there is some issue with the data saved in csv format for this
variable as when i checked:
str(eir$date)- this results in :-
Date[1:5327], format: NA NA NA NA NA.
Thanks again.
On Tue, Jul 26, 2016 at 5:58 PM, Marc Schwartz wrote:
> Hi,
>
> T
Hi,
That eir$date might be a factor is irrelevant. There is an as.Date() method for
factors, which does the factor to character coercion internally and then calls
as.Date.character() on the result.
Using the example data below:
eir <- data.frame(date = c("05-30-16", "05-30-16", "05-30-16",
Hello Again,
While i tried your solution as you suggested above it seems to be working.
Here is the output
temp<- dput(head(eir$date))
c("05-30-16", "05-30-16", "05-30-16", "05-30-16", "05-30-16", "05-30-16")
however it still shows class(eir$date) as character and hence i cannot find
weekdays from
On Tue, 26 Jul 2016 at 20:29 Lorenzo Isella
wrote:
> Dear All,
> I am not an expert about the calculation and visualization of convex
> hulls, but I am trying to do something relatively simple.
> Please consider the snippet at the end of the email.
> The array pts represents the position of (the
Thanks Duncan for the quick response. I will check again as you suggested.
If that doesn't work i will share a reproducible example.
Thanks again
On Tue, Jul 26, 2016 at 4:43 PM, Duncan Murdoch
wrote:
> On 26/07/2016 7:05 AM, Shivi Bhatia wrote:
>
>> Hi Team,
>>
>> This scenario may have co
On 26/07/2016 7:05 AM, Shivi Bhatia wrote:
Hi Team,
This scenario may have come across a number of times however i checked
nabble & SO and couldn't find a solution hence request assistance.
I have a date variable in my data-set eir. The class of this var was
character while i had read the file
Hi Team,
This scenario may have come across a number of times however i checked
nabble & SO and couldn't find a solution hence request assistance.
I have a date variable in my data-set eir. The class of this var was
character while i had read the file in r studio. Example of date - 05-30-16
To c
Dear All,
I am not an expert about the calculation and visualization of convex
hulls, but I am trying to do something relatively simple.
Please consider the snippet at the end of the email.
The array pts represents the position of (the centres of) a set of
spheres in 3D (whose radius is 0.5).
I f
Dear All,
I am not an expert about the calculation and visualization of convex
hulls, but I am trying to do something relatively simple.
Please consider the snippet at the end of the email.
The array pts represents the position of (the centres of) a set of
spheres in 3D (whose radius is 0.5).
I f
You could try with the brick function from the raster package.
bvar = brick(netcdfName)
This uses the ncdf4 functions for opening and reading the netcdf, but
makes it easier to extract data for each day:
p1 = rasterToPoints(bvar[[1]])
and write p1 to csv.
Best,
Jon
On 7/26/2016 6:54 AM, li
hello, someone help me sort out this error "## Error in summary(data):
object ’analysis’ not found"" in using Knitr package in R. I imported the
data into R studio but as soon as i use any code involving the data i
imported in the Knitr environment within the latex document i encounter the
above er
I have been asked (in private)
> Hi Martin,
y <- c(1, 2, 3, NA, 4)
x <- c(1, 2, 2, 1, 1)
t.test(y ~ x)
lm(y ~ x)
> Normally, most R functions follow the principle that
> "missings should never silently go missing". Do you have
> any background on why these functi
Hi Paul
I have seen this - it's part of the tm package mentioned originally. So,
I've tried it again and perhaps I'm using stemDocument incorrectly, but
this is what I am doing:
# > library(tm)
Loading required package: NLP
> text.v <- scan(file.choose(), what = 'char', sep = '\n')
Read 938 i
Suggest look at http://www.inside-r.org/packages/cran/tm/docs/stemDocument
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Andy Wolfe
Sent: 26 July 2016 08:10
To: r-help@r-project.org
Subject: [R] word stemming for corpus linguistics
Hi list
On a piec
Maria Alice Jacques writes:
> Good night,
>
> How can I download and install R version 3.2.5 from cran mirror of
> University of São Paulo, São Paulo?
>
> Thanks for your support.
>
> Maria Alice P. Jacques
[snip (8 lines)]
On this page
https://cran.r-project.org/
you can click on 'Mirrors' a
Hi list
On a piece of work I'm doing in corpus linguistics, using a combo of
texts by Gries "Quantitative Corpus Linguistics with R: A Practical
Introduction" and Jockers "Text Analysis with R for Students of
Literature", which are both really excellent by the way, I want to stem
or lemmatize
70 matches
Mail list logo