This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(XML) | |
library(plotrix) | |
library(moments) | |
url <- "http://www.pogodaiklimat.ru/history/34123.htm" | |
years <- readHTMLTable(url, which = 1) | |
table <- readHTMLTable(url, which = 2) | |
table[table == 999.9] <- NA | |
table <- na.omit(table) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.EmptyStackException; | |
import java.util.StringTokenizer; | |
import java.util.regex.Pattern; | |
public class ShuntingYard { | |
public static final String NUMBER_REGEX = "\\d+(/\\d+)?"; | |
public static final String FUNCTION_REGEX = "sin|cos"; | |
private static final String DELIMITER = " "; | |
private static final List<String> operators = new ArrayList<>(new String[]{"^", "*", "/", "+", "-"}); | |