Displaying 20 results from an estimated 800 matches similar to: "sprintf in system command"
2013 Feb 14
1
execute an external program in R
Dear all
I am using r (2.15.2) under windows 7 32bit.
I want to use system command to execute an external program inside a
for loop. this program needs the input and output names.
since the names will change in the for loop I am not able to use the
programs on all the files
for (k in 1:10){
x=read.table ("data.txt")
xx=x[1:5, ]
2010 Nov 06
4
Using changing names in loop in R
Hello everybody,
I have usually solved this problem by repeating lines of codes instead of a
loop, but it's such a waste of time, I thought I should really learn how to
do it with loops:
What I want to do:
Say, I have several data files that differ only in a number, e.g. data
points (or vector, or matrix...) Data_1, Data_2, Data_3,... and I want to
manipulate them
e.g. a simple sum of
2009 Nov 13
2
why the same values cannot be judged to be the same in R
Hi Rusers,
I found sometimes that the same values cannot be judged to be the same in
R. Anybody knows the probelm? I think i ignored some minor detail. Thanks.
Here is the example.
############
data1<-matrix(data=c(1,1.2,1.3,"3/23/2004",1,1.5,2.3,"3/22/2004",2,0.2,3.3,"4/23/2004",3,1.5,1.3,"5/22/2004"),nrow=4,ncol=4,byrow=TRUE)
2014 Oct 16
2
RCharts+Leaflet+Shiny
Daniel, muchas gracias por contestar y tan rápido.
Pues puede ser la solución, he hecho el cambio y sigue sin pintarme los
puntos ->
data_ <- toJSONArray(data_, json = F)
map$geoJson(
# leafletR::toGeoJSON(data_,
# # lat.lon = c('Lat', 'Long'),
# dest=output_geofile),
data_,
onEachFeature =
2016 Jan 11
2
tftp-hpa features?
On Fri, Jan 8, 2016 at 5:46 PM, Geert Stappers via Syslinux
<syslinux at zytor.com> wrote:
> On Fri, Jan 08, 2016 at 03:40:37PM -0600, Matt Zagrabelny via Syslinux wrote:
>> Greetings,
>>
>> Is this list (a|the best) place to make feature requests for tftp-hpa?
>
> Yes, it is.
> from email header List-Id: For discussion of Syslinux and tftp-hpa
2011 Jun 22
1
Appending to list
So im here now b/c im incredibly frustrated. Please consider the following:
#Try 1
Data_<-list()
Sn<-1:12
for(sn in Sn){
for(i in 1:10){
Data.X <- rnorm(100,0,10)
Data_[[paste(sn,i,sep="-")]]<-Data.X
}
}
##Try 2
Data_<-list()
Sn<-1:12
for(sn in Sn){
for(i in 1:10){
Data.X <- rnorm(100,0,10)
Data_[[sn]][[i]]<-Data.X
}
}
In Try 1 i am able to append
2014 Oct 15
2
RCharts+Leaflet+Shiny
Hola,
Ando un poco desesperado con los mapas interactivos de Rcharts
<https://github.com/ramnathv/rCharts>+Leaflet.
Estoy intentando pintar en un mapa las cámaras de tráfico de madrid, y las
estaciones de calidad del aire, simplemente donde están, es decir, aun no
estoy recogiendo los datos de medida.
Proyecto -> https://github.com/ADIRSE/maddata
He conseguido pintar ambos, con
2011 Oct 28
1
"file name too long" error during R CMD INSTALL
Hi all,
I am attempting to install a package called phylobase from
source directory. It all seems to work until the end, at
which point it looks like the last compile command fails
because the line is too long...perhaps because the g++
command line also includes "Loading ~/.Rprofile...", like this:
============================
g++ -arch i386 -dynamiclib
2017 Sep 04
1
Merge by Range in R
Hi,?
I have two big data set.?
data _1 :?
> dim(data_1)
[1] 15820 5
> head(data_1)
? ?Chromosome ?????Start????????End????????Feature GroupA_3
1: ? ? ? ????????chr1 521369 ?750000 ????chr1-0001 ? ?????0.170
2: ? ? ? ????????chr1 750001 ?800000 ????chr1-0002 ? ????-0.086
3: ? ? ? ????????chr1 800001 ?850000 ????chr1-0003 ? ?????0.006
4: ? ? ? ????????chr1 850001 ?900000 ????chr1-0004 ?
2012 Apr 04
2
extract data
HI,
I would like to extract data in a specific way. For example, the rainfall data
0,0,1.5,0,0, 3,1,2.5,0,0,0,0, 2.3,0,0,0, 2.1,1.4,0,0,0, 3,2,1,0,0,0...
data_1: 1.5, 2.3 ( a single nonzero data between zeros data)
data_2: 3.1, 2.5, 2.1,1.4 ( two nonzero data between zeros data)
data_3: 3,1,2.5, 3,2,1 ( three nonzero data between zeros data)
Thank you so much for any
2008 Apr 02
2
including a variable in another variable name
Dear R community, I wish to include a variable (e.g. slice of "a" below)
in another variable's name. My objective would be to get a variable-name
"data_A" and so on. How can I do this?
> a<-LETTERS[1:25]
> a
[1] "A" "B" "C" "D" "E" "F" "G" "H" "I" "J"
2009 Dec 01
1
Multiple grouping on the X axis.
I am trying to plot data with multiple logical and physical groups using
R. Below is a sample of the kind of data I am working with and the desired
output. We have a jmp script that can do the same thing, but at ~$200 a
year the licensing is counterproductive. Thanks for any help.
Data input: Loaded from a CSV file.
Physical_1 Logical_1 Logical_2 Data_1 Data_2
x Y Z2
2011 Jun 14
1
problems with plots in loop (corrected Email)
Dear helpers,
In an attempt to use a loop to generate graphs in a for loop in run into
a problem. The plan is to fill each page with eight graphs (mfrow =
c(4,2)) in to two columns. Only the buttom graphs ( meaning every fourth
graph) have tick labels on the x axis to preserve space. I used an if
.... Else statement to achieve that.
The problem is that the first eight graphs are skipped
2016 Mar 26
2
DW_TAG_member extends beyond the bounds error on Linux
Hi,
While dogfooding our lldb based IDE on Linux, I am seeing a lot of variable
evaluation errors related to DW_TAG_member which prevents us from release
the IDE. Can anyone help to confirm if they are known issues? If not, any
information you need to troubleshoot this issue?
Here is one example:
(lldb) fr v
*error: biggrep_master_server_async 0x10b9a91a: DW_TAG_member '_M_pod_data'
2016 Mar 27
1
DW_TAG_member extends beyond the bounds error on Linux
Thanks David. I meant to send to lldb maillist, but glad to hear response
here.
Our binary is built from gcc:
String dump of section '.comment':
[ 1] GCC: (GNU) 4.9.x-google 20150123 (prerelease)
Is there any similar flags we should use? By doing "strings -a [binary] |
grep -i gcc", I found the following flags being used:
GNU C++ 4.9.x-google 20150123 (prerelease)
2009 Nov 12
2
Question about simulation design...
Help R list servers,
I have 500 external data sets for a simulation study that I would like
to bring into R to analyze. They have the names data1.dat, data2.dat,
..., dataN.dat
Is there a way to automatize the bringing in of these data sets in R
using the read.table function within a looping cycle?
For example...
for (j in 1:N){
data_"j" = read.table("data"j".dat,
2016 Mar 27
0
DW_TAG_member extends beyond the bounds error on Linux
If you're going to use clang built binaries with lldb, you'll want to pass
-fstandalone-debug - this is the default on platforms where lldb is the
primary debugger (Darwin and freebsd)
Not sure if that is the problem you are seeing, but will be a problem
sooner or later
On Mar 26, 2016 4:16 PM, "Jeffrey Tan via llvm-dev" <llvm-dev at lists.llvm.org>
wrote:
> Hi,
>
2006 May 24
2
data.frame
Dear all,
Does any one knows why should I get the following error message, when trying
to do a simple data.frame??
DataF<-data.frame(Subject,BiomR,Spp,Capas,Litter,Herbs,LitterD,MaxCanH,DDifS
p,DSSp,Slope, CanDens,NearestSp)
Erro em data.frame(Subject, BiomR, Spp, Capas, Litter, Herbs, LitterD, :
arguments imply differing number of rows: 202, 0
The data I am using
2010 Oct 28
0
SAMBA smb.conf LINUX CLIENT SIDE
SAMBA LDAP PDC OS : Opensuse 11.3 X86-64 with full optionnal server software installed
CLIENT OS : Opensuse 11.3 X86-64 with minimal desktop workstation configuration
Samba : 3.5.4-5.1.2
Ldap : 2.4.21-9.1
I have a small network with less than 10 LINUX CLIENTS and one SAMBA LDAP PDC LINUX.
This is my smb.conf server side file.
Any comment for the server side are welcome.
What should
2006 May 09
0
Autocompleter quirk and my proposed fix.
Under heavy server load, my autocompleter was doing something strange. The
ajax requests were coming back out of order. For example in a contact name
search if I typed: dan
I would get responses like so:
Result set for: d
Result set for: dan
Result set for: da
So once the typing stopped I would be looking at the "da" query results not
the "dan" results.
I modified the