search for: r_stuff

Displaying 2 results from an estimated 2 matches for "r_stuff".

2010 May 11
2
Problems plotting date and time column from excel using R
...separating the time and date using the function below and then plotting again which fail to read properly =TEXT(B2,"hh:mm:ss")   and  =TEXT(B9,"mm/dd/yyyy")   The R script am using is plot.time_vs_id<- function(start,end){ setwd("C:/Documents and Settings/terry/Desktop/r_stuff") x=read.table("MAV.csv",header=T, sep=",") plot(x$time[start:end],x$packet_id[start:end],ylab="Packet ID", xlab="Time", type="p") } and plot.hov_Points <- function(start,end){ setwd("C:/Documents and Settings/terry/Desktop/r_stuff&quo...
2018 Mar 15
3
stats 'dist' euclidean distance calculation
...0.000000 3.478652 2.659285 # Samp2 3.478652 0.000000 2.124787 # Samp3 2.659285 2.124787 0.000000 I used the following code (with intermediate output) to achieve the latter distance matrix: >>> setwd("~/Desktop/R_stuff") ### Data Prep: load and collect info from matrix file infile<-'~/Desktop/R_stuff/good_conch_mplex_03052018.txt' Mydata <- read.table(infile, header = TRUE, check.names = FALSE) dim(Mydata) # dimensions of data.frame ind <- as.character(Mydata$sample) # individual labels pop...