Displaying 20 results from an estimated 700 matches similar to: "Text Summarization"
2010 Apr 15
2
Summarization
Hi All
I have a vector x containing 2 levels
x = c(1,1,1,0,0,0,0,1,1,0,0,0,1,1,0)
I would like to derive the following summarization
Level Count
1 3
0 4
1 2
0 3
1 2
0 1
I have generated an inelegant solution using lags and loops but feel sure
that there must be a better approach. If anyone has any thoughts I would be
very grateful if you would share them.
Thanks and best regards
Pete
--
2008 Jul 11
1
data summarization etc...
Hello,
I am trying to do some fairly straightforward data summarization, i.e., the
kind you would do with a pivot table in excel or by using SQL queires. I
have a moderately sized data set of ~70,000 records and I am trying to
compute some group averages and sum values within groups. the code example
below shows how I am trying to go about doing this
pti <-rnorm(70000,10)
fid <-
2024 Jan 10
2
using Paraview "in-situ" with R?
At ORNL, we worked with VisIt (a sibling of Paraview, both funded largely by DOE) around 2016 and made an in situ demo with R. We used packages pbdMPI (on CRAN) and pbdDMAT (on GitHub/RbigData), which were in part built for this purpose. Later also the package hola (on GitHub/RbigData) was built to connect with adios2, which can do buffered in situ connections with various codes.
But the VisIt
2010 Oct 02
2
tyring to save plots using windoze 7 and cygwin
Hi,
I'd been using R in the past and recently installed it on a new windoze 7 machine.
There have been many issues with compatibility and 32/64 bit apps etc and I did
find on google on isolated complaint that saveplot failed in scripts a long time ago.
R seems to work fine except script-based plot saving as pdf has not worked.
I have tried the following, none of which seem to function,
xyz
2011 Nov 17
7
Spatial Statistics using R
I am looking for online courses to learn Spatial Statistics using R.
Statistics.com is offering an online course in December on the same topic
but that schedule doesn't suit mine. Are there any other similar modes for
learning spatial statistics using R??? Can someone please advice???
Thank you.
Ravi
--
View this message in context:
2011 May 20
8
Building Custom GUIs for R
I am looking to build simple GUIs based on the R codes I have. The main
objective is to hide the scary R codes from non-programming people and make
it easier for them to try out different inputs.
For example,
1. The GUI will have means to upload a csv file which will be read by the R
code.
2. A button to preprocess data (carried out by a R function behind)
3. A button to build some models
2023 Aug 27
1
R packages to send plottable data to external apps
I was curious what R packages, or indeed any other applications, exist
to plot streamed data from arbitrary data generators. It need not
be publication quality plotting but it should be easy to use like
an oscilloscope. I was working on something called datascope that I
am using for 1D finite difference monitoring and recently interfaced it
to freefem. I also created an R package. If there is
2011 Nov 10
2
Removing numbers from a list
I am using gsub to remove numbers for each element of a list. Code is given
below.
testList <- list("this contains a number 1000","this does not contain")
removeNumbers <- function(X)
{
gsub("\\d","",X)
}
outputList <- lapply(testList,removeNumbers)
However, when I try to find the number of words in outputList as follows
2012 Jul 20
3
Crosstab with Average and Count
I have the following data:
x <- as.factor(c(1,1,1,2,2,2,3,3,3))
y <- as.factor(c(10,10,10,20,20,20,30,30,30))
z <- c(100,100,NA,200,200,200,300,300,300)
I could create the cross tab of x and y with Sum of z as its elements using
the xtabs function as follows:
# X Vs. Y with Sum Z
xtabs(z ~ x + y)
y
x 10 20 30
1 200 0 0
2 0 600 0
3 0 0 900
How do I replace
2012 Jul 09
4
Skipping lines and incomplete rows
I have a text file that has semi-colon separated values. The table is nearly
10,000 by 585. The files looks as follows:
*******************************************
First line: Skip this line
Second line: skip this line
Third line: skip this line
variable1 Variable2 Variable3 Variable4
Unit1 Unit2 Unit3
10 0.1 0.01 0.001
20
2010 Nov 07
1
can't load nlme on windoze 7
Hi,
I've got a problem that sounds a lot like this,
http://r.789695.n4.nabble.com/Re-R-R-2-12-0-hangs-while-loading-RGtk2-on-FreeBSD-td3005929.html
under windoze 7.
but it seems to hang with this stack trace,
#0? 0x77830190 in ntdll!LdrFindResource_U ()
?? from /cygdrive/c/Windows/system32/ntdll.dll
building goes as follows,
$ ./R CMD INSTALL --no-test-load nlme_3.1-97.tar.gz
*
2011 May 04
3
Error in .Fortran Call
I have the following FORTRAN code converted to a DLL:
! my_xmean.f90
!
! FUNCTIONS/SUBROUTINES exported from my_function.dll:
! my_function - subroutine
!
subroutine my_xmean(X,N,XMEAN)
! Expose subroutine my_function to users of this DLL
!
!DEC$ ATTRIBUTES DLLEXPORT,C,REFERENCE,ALIAS:'my_xmean_'::my_xmean
! Body of my_function
DOUBLE PRECISION X(N)
XMEAN=0D0
DO J=1,N
2024 Jan 09
1
using Paraview "in-situ" with R?
I had previously asked about R interfaces to various "other" visualization
tools specifically lightweights for monitoring progress of
various codes. I was working on this,
https://github.com/mmarchywka/mjmdatascope
but in the meantime found out that Paraview has an "in-situ"
capability for similar objectives.
2011 Aug 08
3
Distance between a vector and matrix rows
I am trying to find the distance between a vector and each row of a
dataframe. I am using the function "distancevector" in the package "hopach"
as follows:
mydata<-as.data.frame(matrix(c(1,1,1,1,0,1,1,1,1,0),nrow=2))
V1 V2 V3 V4 V5
1 1 1 0 1 1
2 1 1 1 1 0
vec <- c(1,1,1,1,1)
d2<-distancevector(mydata,vec,d="euclid")
The Euclidean distance
2011 May 24
1
Fortran DLL in Spotfire
I have a R code that loads a FORTRAN DLL to do some calculations. The code
works fine when I use it in R. But when I try it in spotfire it throws an
error that the it is unable to load the shared library and the specified DLL
cannot be found. I have used "setwd" to point to the location in the
spotfire statistical services server library. Is this the correct way to
call the DLL in
2011 Dec 06
1
HTML Forms to R
I have currently a R function that reads a csv file, does some computations,
produces some plots and writes a csv file as output. I would like to use
HTML forms to make a user interface for calling appropriate parts of the
functions (reading csv file, doing computations, displaying plots and
writing csv files).
Are there are tutorials available that would help me get started??
Thank you.
Ravi
2012 May 21
1
htmlParse Error
I am trying to parse a webpage using the htmlParse command in XML package as
follows:
library(XML)
u = "http://en.wikipedia.org/wiki/World_population"
doc = htmlParse(u)
I get the following error:
Error in htmlParse(u) :
error in creating parser for http://en.wikipedia.org/wiki/World_population
I am using a R 2.13.1 (32 bit version) on a 64 bit Windows. (I tried
installing it in
2011 Apr 12
2
Optimzing a nested function
I am trying to optimize a nested function using nlminb. This throws out an
error that y is missing. Can someone help me with the correct syntax?? Thank
you.
test1 <- function(x,y)
{
sum <- x + y
return(sum)
}
test2 <- function(x,y)
{
sum <- test1(x,y)
sumSq <- sum*sum
return(sumSq)
}
nlminb(start = c(1,1), test2,lower = c(0,0), upper = c(5,5))
--
View this message in
2013 Apr 11
2
Creating a GUI based workflow
Hello R-users,
I am interested to know if there is a tool that allows us to build SAS
Enterprise Miner like workflows using the R scripts.
For example, let's say I have the R scripts/functions for the following
tasks:
1. Data Cleaning
2. Model Building
3. Model Validation
4. Visualization
I would like to drag these functions into a workflow and run them
together (output of one function
2011 Mar 27
6
Asking Favor For the Script of Median Filter
Hello,everybody. My name is Chuan Zun Liang. I come from Malaysia. I am just
a beginner for R. Kindly to ask favor about median filter. The problem I
facing as below:
> x<-matrix(sample(1:30,25),5,5)
> x
[,1] [,2] [,3] [,4] [,5]
[1,] 7 8 30 29 13
[2,] 4 6 12 5 9
[3,] 25 3 22 14 24
[4,] 2 15 26 23 19
[5,] 28 18 10 11 20
This